Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-861

get with timestamp will return a value if there is a version with an earlier timestamp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.2.0, 0.2.1, 0.18.0
    • 0.20.0
    • None
    • None

    Description

      When an explicit timestamp is specified, no results should be returned if there is no value stored at that timestamp.

      A value should be returned (as it currently is) if the timestamp is defaulted or is LATEST_TIMESTAMP (which is the same thing). This works correctly.

      Table name "web", columns: "contents:", "anchor:"

      store com.cnn.www/contents:/5 value = "t5"
      store com.cnn.www/anchor:my.look.ca:/8 value = "CNN.com"
      com.cnn.www/anchor:cnnsi.com/9 value = "CNN"

      get(com.cnn.www/contents:/8) should return nothing but returns value="t5", timestamp=5
      get(com.cnn.www/anchor:my.look.ca:/9) should return nothing, but returns value="CNN.com", timestamp=8

      Attachments

        1. TestGetTimestamp.java
          3 kB
          Jim Kellerman

        Issue Links

          Activity

            People

              streamy Jonathan Gray
              jimk Jim Kellerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: