Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-12

Semantics of DataStore.delete*

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.2
    • storage
    • None

    Description

      Behavior of delete* calls in DataStore is insufficiently defined. Some unit tests in DataStoreUtil seem to indicate that after a successful call to delete the subsequent queries should not return deleted items. Other tests indicate that an additional DataStore.flush() call is needed.

      If we could rely on the latter assumption this would allow for some important optimizations in the implementations of DataStore - bulk updates that are visible only after an update transaction is finished are usually much less expensive to perform than equivalent multiple item by item transactions.

      Therefore I propose to strengthen the meaning of delete* calls, so that their effects are guaranteed to be visible to get/execute ONLY after a subsequent flush() call.

      Attachments

        1. GORA-12.patch
          4 kB
          Andrzej Bialecki

        Issue Links

          Activity

            People

              chrismattmann Chris A. Mattmann
              ab Andrzej Bialecki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: