Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-1798

Dead code in transaction layer confusing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • transactions
    • None

    Description

      In geode the transaction code always has a collection of "pendingCallbacks". But the code makes some special calls if this collection is null. This code should be cleaned up to only handle an existing collection.

      Also BucketRegion has an implementation of invokeTXCallbacks that is wrong. If it ever is called it will cause extra events. But it should never be invoked since pendingCallbacks is never null. Instead PartitionedRegion.invokeTXCallbacks will be invoked.
      So the implementation of BucketRegion invokeTXCallbacks should be changed to throw an exception. If tests find any code paths that call it they should be changed to instead call PartitionedRegion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dschneider Darrel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: