HBASE-25345 [Flakey Tests] branch-2 TestReadReplicas#testVerifySecondaryAbilityToReadWithOnFiles (#2727)
Check TEST_SKIP_REPORTING_TRANSITION and if true, skip trying to talk to update master on state transition -- i.e. reportFileArchivalForQuotas -- as we allow for reportRegionStateTransition (For tests only) Signed-off-by: Huaxiang Sun <huaxiangsun@apache.com>
This commit is contained in:
parent
dfe3672266
commit
7da90a1e23
|
@ -3790,6 +3790,9 @@ public class HRegionServer extends Thread implements
|
||||||
@Override
|
@Override
|
||||||
public boolean reportFileArchivalForQuotas(TableName tableName,
|
public boolean reportFileArchivalForQuotas(TableName tableName,
|
||||||
Collection<Entry<String, Long>> archivedFiles) {
|
Collection<Entry<String, Long>> archivedFiles) {
|
||||||
|
if (TEST_SKIP_REPORTING_TRANSITION) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
RegionServerStatusService.BlockingInterface rss = rssStub;
|
RegionServerStatusService.BlockingInterface rss = rssStub;
|
||||||
if (rss == null || rsSpaceQuotaManager == null) {
|
if (rss == null || rsSpaceQuotaManager == null) {
|
||||||
// the current server could be stopping.
|
// the current server could be stopping.
|
||||||
|
|
Loading…
Reference in New Issue