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

Get(Get get) is not copying the row key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 0.98.12
    • 1.0.1, 1.1.0, 0.98.12, 2.0.0
    • API
    • None
    • Reviewed

    Description

      I tried this:

          Get get1 = new Get(Bytes.toBytes("row1"));
          get1.addColumn(Bytes.toBytes("colfam1"), Bytes.toBytes("qual1"));
      
          Get get2 = new Get(get1);
          Result result = table.get(get2);
      

      It fails (eventually) with:

      Mar 20, 2015 1:47:13 PM org.apache.hadoop.hbase.client.RpcRetryingCaller callWithRetries
      INFO: Call exception, tries=13, retries=35, started=170167 ms ago, cancelled=false, msg=row 'null' on table 'testtable' at null
      

      And since you cannot assign a row key other than using the only other constructor Get(byte[] row) it means that above copy of get seems useless.

      Need to fix so that row is copied too.

      Attachments

        1. HBASE-13305.patch
          2 kB
          Ashish Singhi

        Activity

          People

            ashish singhi Ashish Singhi
            larsgeorge Lars George
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: