-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#691] test :fix flaky test CoordinatorMetricsTest#testCoordinatorMetrics #694
Conversation
Please don't merge first. I will trigger GA more times. Thanks ! |
bbb5b3d
to
3712096
Compare
I tried to find out why The result as follow:
|
I think we can remove this test case. it doesn't make sense. |
We can filter them. |
3712096
to
a2a3adc
Compare
PTAL @jerqi @xianjingfeng |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merged. thanks @smallzhongfeng
assertEquals(10, actualObj.get("metrics").size()); | ||
int actualMetrics = 0; | ||
for (JsonNode metrics : actualObj.get("metrics")) { | ||
if (CoordinatorMetrics.APP_NUM_TO_USER.equals(metrics.get("name").textValue())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this change.
The better way is to call org.apache.uniffle.coordinator.metric.CoordinatorMetrics#clear
in @beforeAll
of this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smallzhongfeng tried, but it doesn't matter. This test is so flaky that we should fix this issue asap. So we use the simplest to fix first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your advice, I have tried this method, but it still doesn't work. I don't think it's the reason why the monitoring didn't clean up, but when I ran the GA, it seems like reading the latest indicators of other uts. I tried to modify the default JETTY_ HTTP_ PORT
and RPC_ SERVER_ PORT
, but still not effective.
What changes were proposed in this pull request?
Do not start quotaManager when performing ut test of indicators.
Why are the changes needed?
Fix: #691
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Fix ut.