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

testDeleteByQueryFields seems incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.2
    • Fix Version/s: 1.0
    • Component/s: testing
    • Labels:
      None

      Description

      While writing the Accumulo backend I have been trying to run some of the existing test against it. It seems that the test DataStoreTestUtil.testDeleteByQueryFields() has two problems.

      • The test does not flush the store after calling deleteByQuery(). This is needed for accumulo since deletes are just inserts and must be flushed.
      • The test expects the last key in a range that was deleted to be present. As far as I can tell the end key in a query should be inclusive, but the test treats as exclusive.

      I will submit a patch.

        Attachments

        1. GORA-66-1.patch
          2 kB
          Keith Turner

          Activity

            People

            • Assignee:
              kturner Keith Turner
              Reporter:
              kturner Keith Turner
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: