Skip to content

[SCB-2589] fix spans is null sometimes#3104

Merged
hezhangjian merged 2 commits intoapache:masterfrom
david6969xin:branch_master_2589
Jun 21, 2022
Merged

[SCB-2589] fix spans is null sometimes#3104
hezhangjian merged 2 commits intoapache:masterfrom
david6969xin:branch_master_2589

Conversation

@david6969xin
Copy link
Copy Markdown
Contributor

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install -Pit to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

List<Span> spans = zipkin.getTrace(traceId(loggedIds));
List<Span> spans;
do {
spans = zipkin.getTrace(traceId(loggedIds));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we need to sleep in case of cpu 100%, also we need a reasonable timeout.
Howerver, instead of write our impl, we can use https://github.com/awaitility/awaitility library

Awaitility.await().atMost(10, SECONDS).until(() -> xxxxxx);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just testing code, that almost never happens, don't need to think so much. of course, it's better to be strict !

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #3104 (8dc0647) into master (d298ced) will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #3104   +/-   ##
=========================================
  Coverage     77.49%   77.50%           
  Complexity     1431     1431           
=========================================
  Files          1612     1612           
  Lines         43268    43268           
  Branches       3645     3645           
=========================================
+ Hits          33532    33534    +2     
+ Misses         8233     8232    -1     
+ Partials       1503     1502    -1     
Impacted Files Coverage Δ
...ervicecomb/foundation/vertx/stream/PumpCommon.java 77.77% <0.00%> (+7.40%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d298ced...8dc0647. Read the comment docs.

@hezhangjian hezhangjian merged commit 771e750 into apache:master Jun 21, 2022
@hezhangjian
Copy link
Copy Markdown
Member

Great work!

@david6969xin david6969xin deleted the branch_master_2589 branch June 24, 2022 08:02
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