Skip to content

Commit ef0ff27

Browse files
tomscutvirajjasani
authored andcommitted
HBASE-27117 Update the method comments for RegionServerAccounting (#4532)
1 parent 3b9491b commit ef0ff27

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
@@ -428,14 +428,14 @@ private boolean refreshStoreFilesAndReclaimMemory(Region region) {
428428
}
429429

430430
/**
431-
* Return true if global memory usage is above the high watermark
431+
* Return the FlushType if global memory usage is above the high watermark
432432
*/
433433
private FlushType isAboveHighWaterMark() {
434434
return server.getRegionServerAccounting().isAboveHighWaterMark();
435435
}
436436

437437
/**
438-
* Return true if we're above the low watermark
438+
* Return the FlushType if we're above the low watermark
439439
*/
440440
private FlushType isAboveLowWaterMark() {
441441
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
@@ -161,8 +161,8 @@ public void decGlobalMemStoreSize(long dataSizeDelta, long heapSizeDelta, long o
161161
}
162162

163163
/**
164-
* Return true if we are above the memstore high water mark
165-
* @return the flushtype
164+
* Return the FlushType if we are above the memstore high water mark
165+
* @return the FlushType
166166
*/
167167
public FlushType isAboveHighWaterMark() {
168168
// for onheap memstore we check if the global memstore size and the
@@ -193,7 +193,8 @@ public FlushType isAboveHighWaterMark() {
193193
}
194194

195195
/**
196-
* Return true if we're above the low watermark
196+
* Return the FlushType if we're above the low watermark
197+
* @return the FlushType
197198
*/
198199
public FlushType isAboveLowWaterMark() {
199200
// for onheap memstore we check if the global memstore size and the

0 commit comments

Comments
 (0)