HBASE-1663 Request compaction only once instead of every time 500ms each time we cycle the hstore.getStorefilesCount() > this.blockingStoreFilesNumber loop
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@794788 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
64311a2922
commit
54d3670219
|
@ -267,6 +267,9 @@ Release 0.20.0 - Unreleased
|
|||
anymore
|
||||
HBASE-1658 Remove UI refresh -- its annoying
|
||||
HBASE-1659 merge tool doesnt take binary regions with \x escape format
|
||||
HBASE-1663 Request compaction only once instead of every time 500ms each
|
||||
time we cycle the hstore.getStorefilesCount() >
|
||||
this.blockingStoreFilesNumber loop
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -229,13 +229,12 @@ class MemStoreFlusher extends Thread implements FlushRequester {
|
|||
finished = true;
|
||||
for (Store hstore: region.stores.values()) {
|
||||
if (hstore.getStorefilesCount() > this.blockingStoreFilesNumber) {
|
||||
// always request a compaction
|
||||
server.compactSplitThread.compactionRequested(region, getName());
|
||||
// only log once
|
||||
if (!triggered) {
|
||||
LOG.info("Too many store files for region " + region + ": " +
|
||||
hstore.getStorefilesCount() + ", requesting compaction and " +
|
||||
"waiting");
|
||||
this.server.compactSplitThread.compactionRequested(region, getName());
|
||||
triggered = true;
|
||||
}
|
||||
// pending compaction, not finished
|
||||
|
@ -257,6 +256,7 @@ class MemStoreFlusher extends Thread implements FlushRequester {
|
|||
LOG.warn("Tried to hold up flushing for compactions of region " + region +
|
||||
" but have waited longer than " + blockingWaitTime + "ms, continuing");
|
||||
}
|
||||
|
||||
synchronized (regionsInQueue) {
|
||||
// See comment above for removeFromQueue on why we do not
|
||||
// take the region out of the set. If removeFromQueue is true, remove it
|
||||
|
|
Loading…
Reference in New Issue