Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-1118

Add/Remove operations on a VDB should block other operations on the VDB

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce Bug
    • Affects Version/s: 7.4.2
    • Fix Version/s: 7.7.2, 8.0
    • Component/s: VDB & Execution
    • Labels:
      None

      Description

      As adding/removing objects from a VDB results in filesystem operations of adding/removing indexes, this should result in a blocking of additional operations against the VDB. If latency with the filesystem is large enough (for example, on a network filesystem) and no blocking is performed, multiple operations can be performed on the VDB resulting in the below exception:
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 0
      at org.teiid.designer.vdb.VdbModelEntry.synchronizeModelEntry(VdbModelEntry.java:435)
      at org.teiid.designer.vdb.Vdb.addModelEntry(Vdb.java:244)
      at com.metamatrix.modeler.internal.vdb.ui.editor.VdbEditor$25.selected(VdbEditor.java:1709)
      at com.metamatrix.ui.table.TableAndToolBar$2.run(TableAndToolBar.java:79)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

        Gliffy Diagrams

          Activity

          Hide
          lfabriko Lucie Fabrikova added a comment -

          Encountered a problem with adding web service models to VDB

          Show
          lfabriko Lucie Fabrikova added a comment - Encountered a problem with adding web service models to VDB
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          Lucie Fabrikova <lfabriko@redhat.com> changed the Status of bug 781035 from ON_QA to ASSIGNED

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - Lucie Fabrikova <lfabriko@redhat.com> changed the Status of bug 781035 from ON_QA to ASSIGNED
          Hide
          blafond Barry LaFond added a comment -

          The newly attached logs seem to indicate multiple issues and not related to his original bug.

          If you can reproduce each one, please log separate jiras.

          log1 - please reproduce and log separate jira.

          log2 - trace is not related to Designer source

          log3 - I could not reproduce using the "Define VDB" guides action

          log4 - I could not reproduce. I assumed you had vdb1.vdb already defined and re-launched the Define VDB action.

          I was able to create a new VDB, adding the WS model and all dependent models were added.

          Note that there is an issue with Create WS action, 4 of the 5 operations ended up with SQL validation errors. Double-clicking each operation to open the editor fixed the problems. So this would be a work-around.

          Show
          blafond Barry LaFond added a comment - The newly attached logs seem to indicate multiple issues and not related to his original bug. If you can reproduce each one, please log separate jiras. log1 - please reproduce and log separate jira. log2 - trace is not related to Designer source log3 - I could not reproduce using the "Define VDB" guides action log4 - I could not reproduce. I assumed you had vdb1.vdb already defined and re-launched the Define VDB action. I was able to create a new VDB, adding the WS model and all dependent models were added. Note that there is an issue with Create WS action, 4 of the 5 operations ended up with SQL validation errors. Double-clicking each operation to open the editor fixed the problems. So this would be a work-around.
          Hide
          blafond Barry LaFond added a comment -

          per my last comments, not reproducable

          Show
          blafond Barry LaFond added a comment - per my last comments, not reproducable
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          Van Halbert <vhalbert@redhat.com> changed the Status of bug 781035 from ASSIGNED to CLOSED

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - Van Halbert <vhalbert@redhat.com> changed the Status of bug 781035 from ASSIGNED to CLOSED

            People

            • Assignee:
              mdrillin Mark Drilling
              Reporter:
              mshirley Marc Shirley
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development