Skip to content

Commit 2dbfab6

Browse files
tomscutStephen Wu
authored andcommitted
HBASE-27117 Update the method comments for RegionServerAccounting (apache#4532)
Change-Id: If652e9b3f2a8dc4eef4b7021806f9c3326ef4c94
1 parent ebd8b22 commit 2dbfab6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,14 @@ private boolean refreshStoreFilesAndReclaimMemory(Region region) {
425425
}
426426

427427
/**
428-
* Return true if global memory usage is above the high watermark
428+
* Return the FlushType if global memory usage is above the high watermark
429429
*/
430430
private FlushType isAboveHighWaterMark() {
431431
return server.getRegionServerAccounting().isAboveHighWaterMark();
432432
}
433433

434434
/**
435-
* Return true if we're above the low watermark
435+
* Return the FlushType if we're above the low watermark
436436
*/
437437
private FlushType isAboveLowWaterMark() {
438438
return server.getRegionServerAccounting().isAboveLowWaterMark();

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public void decGlobalMemStoreSize(long dataSizeDelta, long heapSizeDelta, long o
153153
}
154154

155155
/**
156-
* Return true if we are above the memstore high water mark
157-
* @return the flushtype
156+
* Return the FlushType if we are above the memstore high water mark
157+
* @return the FlushType
158158
*/
159159
public FlushType isAboveHighWaterMark() {
160160
// for onheap memstore we check if the global memstore size and the
@@ -185,7 +185,8 @@ public FlushType isAboveHighWaterMark() {
185185
}
186186

187187
/**
188-
* Return true if we're above the low watermark
188+
* Return the FlushType if we're above the low watermark
189+
* @return the FlushType
189190
*/
190191
public FlushType isAboveLowWaterMark() {
191192
// for onheap memstore we check if the global memstore size and the

0 commit comments

Comments
 (0)