OpenTSDB/asynchbase

Integer should be used for hbase.nsre.high_watermark & hbase.nsre.low_watermark instead of Short

rchzzjcn opened this issue · 0 comments

According to the document(http://opentsdb.github.io/asynchbase/docs/build/html/configuration.html), the following two properties should be Integer:

  1. hbase.nsre.high_watermark
  2. hbase.nsre.low_watermark

But now the code in HbaseClient.java is expecting to be Short:

  public HBaseClient(final Config config, 
      final ClientSocketChannelFactory channel_factory) {
   ...
    nsre_low_watermark = config.getShort("hbase.nsre.low_watermark");
    nsre_high_watermark = config.getShort("hbase.nsre.high_watermark");
  }

This will cause runtime exception if we config it to be larger than 32767.