HBASE-27117 Update the method comments for RegionServerAccounting (#4532)

This commit is contained in:
litao 2022-06-17 08:18:18 +08:00 committed by Viraj Jasani
parent 591fda9fe4
commit fa1b3eed99
No known key found for this signature in database
GPG Key ID: 08E70F70AB71C5A1
2 changed files with 6 additions and 5 deletions

View File

@ -428,14 +428,14 @@ public class MemStoreFlusher implements FlushRequester {
}
/**
* 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();

View File

@ -161,8 +161,8 @@ public class RegionServerAccounting {
}
/**
* 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
@ -193,7 +193,8 @@ public class RegionServerAccounting {
}
/**
* 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