Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1136

Lock and unlock requests are not being batched correctly

    XMLWordPrintable

Details

    Description

      When working on MODE-1135 and reviewing existing code in Graph, it was noticed that several of the Graph.Batch operations were creating and immediately invoking requests against the connector. Changing these caused regressions in the unit and TCK tests related to locking and observation. After a bit of investigation, it became obvious that when locking and unlocking operations were performed within the same batch as other operations (e.g., setting properties), events for the other operations were not fired.

      Having the locking and unlocking operations be performed outside of the batch means that what was coded to be a single batch operation actually results in the batch operation plus at least one non-batch operation. IOW, the number of distinct operation sets sent to the connector is doubled, and this would likely (at least slightly) reduce performance.

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: