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

Bug in HTable#incrementColumnValue implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.6.1, 1.0.1
    • 0.98.14, 1.0.2, 1.2.0, 1.1.2, 1.3.0
    • Client
    • None
    • Reviewed
    • HBASE-13881 Correct HTable incrementColumnValue implementation

    Description

      The exact method I'm talking about is:

      @Deprecated
        @Override
        public long incrementColumnValue(final byte [] row, final byte [] family,
            final byte [] qualifier, final long amount, final boolean writeToWAL)
        throws IOException {
          return incrementColumnValue(row, family, qualifier, amount,
            writeToWAL? Durability.SKIP_WAL: Durability.USE_DEFAULT);
        }
      

      Setting writeToWAL to true, Durability will be set to SKIP_WAL which does not make much sense unless the meaning of SKIP_WAL is negated.

      Attachments

        1. HBASE-13881.branch-1.1.patch
          1 kB
          Gabor Liptak

        Activity

          People

            gliptak Gabor Liptak
            superwai Jerry Lam
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: