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 GitHub
parent b365748485
commit 5e5d18bf21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -432,14 +432,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