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

get_counter value is never used.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.96.2, 0.98.1, 0.99.0, 1.0.0
    • 1.0.1, 1.1.0, 0.98.12, 2.0.0
    • None
    • None
    • Incompatible change
    • Hide
      for 0.98 and 1.0 changes are compatible (due to mitigation by HBASE-13433):

      * The "get_counter" command no longer requires a dummy 4th argument. Downstream users are encouraged to migrate code to not pass this argument because it will result in an error for HBase 1.1+.
      * The "incr" command now outputs the current value of the counter to stdout.
      ex:
      {code}
      jruby-1.6.8 :005 > incr 'counter_example', 'r1', 'cf1:foo', 10
      COUNTER VALUE = 1772
      0 row(s) in 0.1180 seconds
      {code}

      for 1.1+ changes are incompatible:

      * The "get_counter" command no longer accepts a dummy 4th argument. Downstream users will need to update their code to not pass this argument.
      ex:
      {code}
      jruby-1.6.8 :006 > get_counter 'counter_example', 'r1', 'cf1:foo'
      COUNTER VALUE = 1772

      {code}
      * The "incr" command now outputs the current value of the counter to stdout.
      ex:
      {code}
      jruby-1.6.8 :005 > incr 'counter_example', 'r1', 'cf1:foo', 10
      COUNTER VALUE = 1772
      0 row(s) in 0.1180 seconds
      {code}
      Show
      for 0.98 and 1.0 changes are compatible (due to mitigation by HBASE-13433 ): * The "get_counter" command no longer requires a dummy 4th argument. Downstream users are encouraged to migrate code to not pass this argument because it will result in an error for HBase 1.1+. * The "incr" command now outputs the current value of the counter to stdout. ex: {code} jruby-1.6.8 :005 > incr 'counter_example', 'r1', 'cf1:foo', 10 COUNTER VALUE = 1772 0 row(s) in 0.1180 seconds {code} for 1.1+ changes are incompatible: * The "get_counter" command no longer accepts a dummy 4th argument. Downstream users will need to update their code to not pass this argument. ex: {code} jruby-1.6.8 :006 > get_counter 'counter_example', 'r1', 'cf1:foo' COUNTER VALUE = 1772 {code} * The "incr" command now outputs the current value of the counter to stdout. ex: {code} jruby-1.6.8 :005 > incr 'counter_example', 'r1', 'cf1:foo', 10 COUNTER VALUE = 1772 0 row(s) in 0.1180 seconds {code}

    Attachments

      1. 0001-HBASE-10728-get_counter-value-is-never-used.patch
        2 kB
        Lars George
      2. 0001-HBASE-10728-get_counter-value-is-never-used-0.98.patch
        6 kB
        Lars George
      3. 0001-HBASE-10728-get_counter-value-is-never-used-branch-1.0.patch
        6 kB
        Lars George
      4. 0001-HBASE-10728-get_counter-value-is-never-used-branch-1.patch
        7 kB
        Lars George
      5. 0002-HBASE-10728-get_counter-value-is-never-used.patch
        3 kB
        Lars George
      6. HBASE-10728-v0-0.96.patch
        0.7 kB
        Jean-Marc Spaggiari
      7. HBASE-10728-v0-0.98.patch
        0.7 kB
        Jean-Marc Spaggiari
      8. HBASE-10728-v0-trunk.patch
        0.7 kB
        Jean-Marc Spaggiari
      9. HBASE-10728-v1-0.96.patch
        0.7 kB
        Jean-Marc Spaggiari
      10. HBASE-10728-v1-0.98.patch
        0.7 kB
        Jean-Marc Spaggiari
      11. HBASE-10728-v1-trunk.patch
        0.7 kB
        Jean-Marc Spaggiari
      12. HBASE-10728-v2-trunk.patch
        0.6 kB
        Jean-Marc Spaggiari

      Issue Links

        Activity

          People

            larsgeorge Lars George
            jmspaggi Jean-Marc Spaggiari
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: