Skip to content

[MINOR] test: flaky test GrpcServerTest.testGrpcExecutorPool - #1321

Merged
xianjingfeng merged 2 commits into
apache:masterfrom
xianjingfeng:flaky_test2
Nov 17, 2023
Merged

[MINOR] test: flaky test GrpcServerTest.testGrpcExecutorPool#1321
xianjingfeng merged 2 commits into
apache:masterfrom
xianjingfeng:flaky_test2

Conversation

@xianjingfeng

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

fix flaky test GrpcServerTest.testGrpcExecutorPool

Why are the changes needed?

GrpcServerTest.testGrpcExecutorPool:83 expected: <1.0> but was: <0.0>

The cause of the problem:
The metric GRPC_SERVER_EXECUTOR_BLOCKING_QUEUE_SIZE_KEY is updated only when there is thread be executed. So if the first two threads have already started executing, and then the third thread is submitted, this metric will not be updated.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Repeat it for 100 times in my development enviroment.

@codecov-commenter

codecov-commenter commented Nov 17, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (acfec30) 53.39% compared to head (ff1e4cf) 54.40%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1321      +/-   ##
============================================
+ Coverage     53.39%   54.40%   +1.01%     
  Complexity     2695     2695              
============================================
  Files           411      391      -20     
  Lines         23640    21283    -2357     
  Branches       2006     2006              
============================================
- Hits          12622    11580    -1042     
+ Misses        10242     8997    -1245     
+ Partials        776      706      -70     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roryqi roryqi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@xianjingfeng
xianjingfeng merged commit 60e3be8 into apache:master Nov 17, 2023
@xianjingfeng
xianjingfeng deleted the flaky_test2 branch November 17, 2023 09:00
xianjingfeng added a commit that referenced this pull request Nov 20, 2023
### What changes were proposed in this pull request?
fix flaky test GrpcServerTest.testGrpcExecutorPool

### Why are the changes needed?
GrpcServerTest.testGrpcExecutorPool:83 expected: <1.0> but was: <0.0>

The cause of the problem:
The metric GRPC_SERVER_EXECUTOR_BLOCKING_QUEUE_SIZE_KEY is updated only when there is thread be executed. So if the first two threads have already started executing, and then the third thread is submitted, this metric will not be updated.

### Does this PR introduce any user-facing change?
No.

### How was this patch tested?
Repeat it for 100 times in my development enviroment.

(cherry picked from commit 60e3be8)
zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Jan 18, 2024
…1321)

### What changes were proposed in this pull request?
fix flaky test GrpcServerTest.testGrpcExecutorPool

### Why are the changes needed?
GrpcServerTest.testGrpcExecutorPool:83 expected: <1.0> but was: <0.0>

The cause of the problem:
The metric GRPC_SERVER_EXECUTOR_BLOCKING_QUEUE_SIZE_KEY is updated only when there is thread be executed. So if the first two threads have already started executing, and then the third thread is submitted, this metric will not be updated.

### Does this PR introduce any user-facing change?
No.

### How was this patch tested?
Repeat it for 100 times in my development enviroment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants