merge from hbase-11339-core.
Refine the code.
Merge remote-tracking branch 'origin/hbase-11339-core-snapshot' into hbase-11339-sweep-tool
change Bytes.SIZEOF_LONG to Bytes.SIZEOF_INT
merge from hbase-11339-sweep-tool.