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

why using treeMap at default implement with class Batch.Callback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.92.0
    • None
    • Coprocessors
    • None
    • centos 6.2 hbase 0.92.0

    Description

      public <T extends CoprocessorProtocol, R> Map<byte[],R> coprocessorExec(
      Class<T> protocol, byte[] startKey, byte[] endKey,
      Batch.Call<T,R> callable)
      throws IOException, Throwable {

      final Map<byte[],R> results = new TreeMap<byte[],R>(
      Bytes.BYTES_COMPARATOR);
      coprocessorExec(protocol, startKey, endKey, callable,
      new Batch.Callback<R>(){
      public void update(byte[] region, byte[] row, R value)

      { results.put(region, value); }

      });
      return results;
      }

      when mulit region call the Batch.Callback ,the treemap should lockup.
      we meet this situation after we run 3 month.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              qus qiujaiwei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: