[teiid-designer-dev] [Teiid-Designer/teiid-designer] f85733: Stop the SWT thread calling clear children in the ...

Paul Richardson p.g.richardson at redhat.com
Fri Dec 7 11:35:27 EST 2012


  Branch: refs/heads/master
  Home:   https://github.com/Teiid-Designer/teiid-designer
  Commit: f8573309f5c848992d1d23acbe2811c2d39d8a52
      https://github.com/Teiid-Designer/teiid-designer/commit/f8573309f5c848992d1d23acbe2811c2d39d8a52
  Author: Paul Richardson <p.g.richardson at redhat.com>
  Date:   2012-12-07 (Fri, 07 Dec 2012)

  Changed paths:
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/TeiidServerContentProvider.java
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/content/AbstractTeiidFolder.java
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/content/ITeiidContainerNode.java
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/content/ITeiidResourceNode.java
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/content/TeiidResourceNode.java
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/content/TeiidServerContainerNode.java

  Log Message:
  -----------
  Stop the SWT thread calling clear children in the teiid view

* A deadlock is possible when the refresh thread is trying to
  display the master password dialog (via the SWT thread) and
  the SWT thread is trying to clear the current
  TeiidResourceNode's children (blocked by the synchronized
  blocks).

* Rather than the SWT thread doing any clearing at all, set a
  simple flag instead, causing the node to have a reload job
  scheduled instead. That way the node is cleared before reload
  but on the reload job thread instead.





More information about the teiid-designer-dev mailing list