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

Table#checkAndPut() docs are too vague

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • documentation
    • Reviewed

    Description

      The docs for our CAS operations that accept a CompareOp are too vague. They're copied from the part that implies CompareOp.EQUAL, which means they don't tell you how your op, the provided value, and any present value are compared.

      Only by digging into HRegion.java can I see that the operation is, for example with CompareOp.GREATER, we get value.compareTo(existingKeyValue) > 0. Javadocs should be explicit about the order of operands.

      Attachments

        1. hbase-16000.patch
          2 kB
          Csaba Skrabak

        Activity

          People

            cskrabak Csaba Skrabak
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: