Skip to content

Commit fb9fa04

Browse files
committed
Revert "HBASE-23668 Master log start filling with "Flush journal status" messages"
Premature commit. This reverts commit 1047246.
1 parent 58b0e0f commit fb9fa04

File tree

3 files changed

+10
-23
lines changed

3 files changed

+10
-23
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/procedure2/store/region/RegionFlusherAndCompactor.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ class RegionFlusherAndCompactor implements Closeable {
120120
flushThread.start();
121121
compactExecutor = Executors.newSingleThreadExecutor(new ThreadFactoryBuilder()
122122
.setNameFormat("Procedure-Region-Store-Compactor").setDaemon(true).build());
123-
LOG.info("Constructor flushSize={}, flushPerChanges={}, flushIntervalMs={}, " +
124-
"compactMin=", flushSize, flushPerChanges, flushIntervalMs, compactMin);
125123
}
126124

127125
// inject our flush related configurations
@@ -132,8 +130,6 @@ static void setupConf(Configuration conf) {
132130
conf.setLong(HRegion.MEMSTORE_FLUSH_PER_CHANGES, flushPerChanges);
133131
long flushIntervalMs = conf.getLong(FLUSH_INTERVAL_MS_KEY, DEFAULT_FLUSH_INTERVAL_MS);
134132
conf.setLong(HRegion.MEMSTORE_PERIODIC_FLUSH_INTERVAL, flushIntervalMs);
135-
LOG.info("Injected flushSize={}, flushPerChanges={}, flushIntervalMs={}", flushSize,
136-
flushPerChanges, flushIntervalMs);
137133
}
138134

139135
private void compact() {
@@ -184,7 +180,6 @@ private void flushLoop() {
184180
changesAfterLastFlush.set(0);
185181
try {
186182
region.flush(true);
187-
lastFlushTime = EnvironmentEdgeManager.currentTime();
188183
} catch (IOException e) {
189184
LOG.error(HBaseMarkers.FATAL, "Failed to flush procedure store region, aborting...", e);
190185
abortable.abort("Failed to flush procedure store region", e);
@@ -212,14 +207,8 @@ private void flushLoop() {
212207
}
213208

214209
private boolean shouldFlush(long changes) {
215-
boolean flush = region.getMemStoreHeapSize() + region.getMemStoreOffHeapSize() >= flushSize ||
210+
return region.getMemStoreHeapSize() + region.getMemStoreOffHeapSize() >= flushSize ||
216211
changes > flushPerChanges;
217-
if (flush && LOG.isTraceEnabled()) {
218-
LOG.trace("shouldFlush memStoreSize={}, flushSize={}, changes={}, flushPerChanges={}",
219-
region.getMemStoreHeapSize() + region.getMemStoreOffHeapSize(), flushSize, changes,
220-
flushPerChanges);
221-
}
222-
return flush;
223212
}
224213

225214
void onUpdate() {
@@ -248,4 +237,4 @@ public void close() {
248237
flushThread.interrupt();
249238
compactExecutor.shutdown();
250239
}
251-
}
240+
}

hbase-server/src/main/java/org/apache/hadoop/hbase/procedure2/store/region/RegionProcedureStore.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private void tryMigrate(FileSystem fs) throws IOException {
306306
if (!fs.exists(procWALDir)) {
307307
return;
308308
}
309-
LOG.info("The old WALProcedureStore wal directory {} exists, migrating...", procWALDir);
309+
LOG.info("The old procedure wal directory {} exists, start migrating", procWALDir);
310310
WALProcedureStore store = new WALProcedureStore(conf, leaseRecovery);
311311
store.start(numThreads);
312312
store.recoverLease();
@@ -347,7 +347,7 @@ public void handleCorrupted(ProcedureIterator procIter) throws IOException {
347347
}
348348
}
349349
});
350-
LOG.info("The WALProcedureStore max pid is {}, and the max pid of all loaded procedures is {}",
350+
LOG.info("The max pid is {}, and the max pid of all loaded procedures is {}",
351351
maxProcIdSet.longValue(), maxProcIdFromProcs.longValue());
352352
// Theoretically, the maxProcIdSet should be greater than or equal to maxProcIdFromProcs, but
353353
// anyway, let's do a check here.
@@ -358,13 +358,12 @@ public void handleCorrupted(ProcedureIterator procIter) throws IOException {
358358
PROC_QUALIFIER, EMPTY_BYTE_ARRAY));
359359
}
360360
} else if (maxProcIdSet.longValue() < maxProcIdFromProcs.longValue()) {
361-
LOG.warn("The WALProcedureStore max pid is less than the max pid of all loaded procedures");
361+
LOG.warn("The max pid is less than the max pid of all loaded procedures");
362362
}
363363
if (!fs.delete(procWALDir, true)) {
364-
throw new IOException("Failed to delete the WALProcedureStore migrated proc wal directory " +
365-
procWALDir);
364+
throw new IOException("Failed to delete the migrated proc wal directory " + procWALDir);
366365
}
367-
LOG.info("Migration of WALProcedureStore finished");
366+
LOG.info("Migration finished");
368367
}
369368

370369
@Override
@@ -383,8 +382,7 @@ public void recoverLease() throws IOException {
383382
if (conf.get(USE_HSYNC_KEY) != null) {
384383
conf.set(HRegion.WAL_HSYNC_CONF_KEY, conf.get(USE_HSYNC_KEY));
385384
}
386-
conf.setInt(AbstractFSWAL.RING_BUFFER_SLOT_COUNT,
387-
IntMath.ceilingPowerOfTwo(16 * numThreads));
385+
conf.setInt(AbstractFSWAL.RING_BUFFER_SLOT_COUNT, IntMath.ceilingPowerOfTwo(16 * numThreads));
388386

389387
walRoller = RegionProcedureStoreWALRoller.create(conf, server, fs, rootDir, globalWALRootDir);
390388
walRoller.start();

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ public FlushResultImpl flushcache(boolean forceFlushAllStores, boolean writeFlus
24012401
flushesQueued.reset();
24022402
}
24032403

2404-
status.markComplete("Flush successful " + fs.toString());
2404+
status.markComplete("Flush successful");
24052405
return fs;
24062406
} finally {
24072407
synchronized (writestate) {
@@ -8871,4 +8871,4 @@ static void decorateRegionConfiguration(Configuration conf) {
88718871
}
88728872
}
88738873
}
8874-
}
8874+
}

0 commit comments

Comments
 (0)