HBASE-15117 Resolve ICAST findbugs warnings in current codes (Yu Li)
This commit is contained in:
parent
46ea5494a5
commit
cb17c7a97a
|
@ -335,7 +335,7 @@ public abstract class Compactor {
|
|||
int minFilesToCompact = Math.max(2,
|
||||
conf.getInt(CompactionConfiguration.HBASE_HSTORE_COMPACTION_MIN_KEY,
|
||||
/* old name */ conf.getInt("hbase.hstore.compactionThreshold", 3)));
|
||||
long shippedCallSizeLimit = minFilesToCompact * HConstants.DEFAULT_BLOCKSIZE;
|
||||
long shippedCallSizeLimit = (long) minFilesToCompact * HConstants.DEFAULT_BLOCKSIZE;
|
||||
try {
|
||||
do {
|
||||
hasMore = scanner.next(cells, scannerContext);
|
||||
|
|
|
@ -270,7 +270,7 @@ public class ExportSnapshot extends Configured implements Tool {
|
|||
InputStream in = openSourceFile(context, inputInfo);
|
||||
int bandwidthMB = context.getConfiguration().getInt(CONF_BANDWIDTH_MB, 100);
|
||||
if (Integer.MAX_VALUE != bandwidthMB) {
|
||||
in = new ThrottledInputStream(new BufferedInputStream(in), bandwidthMB * 1024 * 1024);
|
||||
in = new ThrottledInputStream(new BufferedInputStream(in), bandwidthMB * 1024 * 1024L);
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue