Skip to content

Commit

Permalink
HBASE-27117 Update the method comments for RegionServerAccounting (#4532
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tomscut authored and virajjasani committed Jun 17, 2022
1 parent b2f71f2 commit e21f164
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,14 @@ private boolean refreshStoreFilesAndReclaimMemory(Region region) {
}

/**
* Return true if global memory usage is above the high watermark
* Return the FlushType if global memory usage is above the high watermark
*/
private FlushType isAboveHighWaterMark() {
return server.getRegionServerAccounting().isAboveHighWaterMark();
}

/**
* Return true if we're above the low watermark
* Return the FlushType if we're above the low watermark
*/
private FlushType isAboveLowWaterMark() {
return server.getRegionServerAccounting().isAboveLowWaterMark();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public void decGlobalMemStoreSize(long dataSizeDelta, long heapSizeDelta, long o
}

/**
* Return true if we are above the memstore high water mark
* @return the flushtype
* Return the FlushType if we are above the memstore high water mark
* @return the FlushType
*/
public FlushType isAboveHighWaterMark() {
// for onheap memstore we check if the global memstore size and the
Expand Down Expand Up @@ -185,7 +185,8 @@ public FlushType isAboveHighWaterMark() {
}

/**
* Return true if we're above the low watermark
* Return the FlushType if we're above the low watermark
* @return the FlushType
*/
public FlushType isAboveLowWaterMark() {
// for onheap memstore we check if the global memstore size and the
Expand Down

0 comments on commit e21f164

Please sign in to comment.