HBASE-2054 memstore size 0 is >= than blocking -2.0g size
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@892650 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c609d25614
commit
e1bc106ffa
|
@ -431,9 +431,9 @@ public class HTableDescriptor implements WritableComparable<HTableDescriptor> {
|
||||||
/**
|
/**
|
||||||
* @param memstoreFlushSize memory cache flush size for each hregion
|
* @param memstoreFlushSize memory cache flush size for each hregion
|
||||||
*/
|
*/
|
||||||
public void setMemStoreFlushSize(int memstoreFlushSize) {
|
public void setMemStoreFlushSize(long memstoreFlushSize) {
|
||||||
setValue(MEMSTORE_FLUSHSIZE_KEY,
|
setValue(MEMSTORE_FLUSHSIZE_KEY,
|
||||||
Bytes.toBytes(Integer.toString(memstoreFlushSize)));
|
Bytes.toBytes(Long.toString(memstoreFlushSize)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -108,10 +108,10 @@ public class UnmodifyableHTableDescriptor extends HTableDescriptor {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.apache.hadoop.hbase.HTableDescriptor#setMemStoreFlushSize(int)
|
* @see org.apache.hadoop.hbase.HTableDescriptor#setMemStoreFlushSize(long)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setMemStoreFlushSize(int memstoreFlushSize) {
|
public void setMemStoreFlushSize(long memstoreFlushSize) {
|
||||||
throw new UnsupportedOperationException("HTableDescriptor is read-only");
|
throw new UnsupportedOperationException("HTableDescriptor is read-only");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue