[
https://issues.apache.org/jira/browse/HDDS-16758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-16758:
------------------------------------
Description:
{code}
Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 39.10 s <<<
FAILURE! -- in
org.apache.hadoop.ozone.om.TestOzoneManagerHAFollowerReadWithAllRunning
org.apache.hadoop.ozone.om.TestOzoneManagerHAFollowerReadWithAllRunning.testClientWithLocalLeaseEnabled
-- Time elapsed: 0.016 s <<< FAILURE!
java.lang.AssertionError:
Expecting actual:
0L
to be greater than:
0L
at
org.apache.hadoop.ozone.om.TestOzoneManagerHAFollowerReadWithAllRunning.testClientWithLocalLeaseEnabled(TestOzoneManagerHAFollowerReadWithAllRunning.java:655)
{code}
testClientWithLocalLeaseEnabled records the local-lease success count on
getCurrentProxy() before listing volumes. LOCAL_LEASE routing skips the known
leader, and retries may select another OM. A successful read can therefore
leave the checked OM's count unchanged and fail the assertion.
Record each OM's count before the request, then use getLastProxy() to check the
count on the OM that actually served the request. Preserve normal routing and
the local-lease assertion.
Reproduced with a Mini HA cluster on upstream d246fff3f3: when the initial
proxy was the known leader, its count stayed 0 while the serving follower's
count increased to 1. The original assertion failed; the fix passed under the
same initial condition. The complete test class (15 tests), checkstyle and
module PMD passed.
CI failure:
[https://github.com/rich7420/ozone/actions/runs/37608060782/job/112823872954]
was:
testClientWithLocalLeaseEnabled records the local-lease success count on
getCurrentProxy() before listing volumes. LOCAL_LEASE routing skips the known
leader, and retries may select another OM. A successful read can therefore
leave the checked OM's count unchanged and fail the assertion.
Record each OM's count before the request, then use getLastProxy() to check the
count on the OM that actually served the request. Preserve normal routing and
the local-lease assertion.
Reproduced with a Mini HA cluster on upstream d246fff3f3: when the initial
proxy was the known leader, its count stayed 0 while the serving follower's
count increased to 1. The original assertion failed; the fix passed under the
same initial condition. The complete test class (15 tests), checkstyle and
module PMD passed.
CI failure:
https://github.com/rich7420/ozone/actions/runs/37608060782/job/112823872954
> Intermittent failure in testClientWithLocalLeaseEnabled due to checking the
> wrong OM metrics
> --------------------------------------------------------------------------------------------
>
> Key: HDDS-16758
> URL: https://issues.apache.org/jira/browse/HDDS-16758
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Huang Kuan Hao
> Assignee: Huang Kuan Hao
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> {code}
> Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 39.10 s <<<
> FAILURE! -- in
> org.apache.hadoop.ozone.om.TestOzoneManagerHAFollowerReadWithAllRunning
> org.apache.hadoop.ozone.om.TestOzoneManagerHAFollowerReadWithAllRunning.testClientWithLocalLeaseEnabled
> -- Time elapsed: 0.016 s <<< FAILURE!
> java.lang.AssertionError:
> Expecting actual:
> 0L
> to be greater than:
> 0L
> at
> org.apache.hadoop.ozone.om.TestOzoneManagerHAFollowerReadWithAllRunning.testClientWithLocalLeaseEnabled(TestOzoneManagerHAFollowerReadWithAllRunning.java:655)
> {code}
>
> testClientWithLocalLeaseEnabled records the local-lease success count on
> getCurrentProxy() before listing volumes. LOCAL_LEASE routing skips the known
> leader, and retries may select another OM. A successful read can therefore
> leave the checked OM's count unchanged and fail the assertion.
> Record each OM's count before the request, then use getLastProxy() to check
> the count on the OM that actually served the request. Preserve normal routing
> and the local-lease assertion.
> Reproduced with a Mini HA cluster on upstream d246fff3f3: when the initial
> proxy was the known leader, its count stayed 0 while the serving follower's
> count increased to 1. The original assertion failed; the fix passed under the
> same initial condition. The complete test class (15 tests), checkstyle and
> module PMD passed.
> CI failure:
> [https://github.com/rich7420/ozone/actions/runs/37608060782/job/112823872954]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]