Skip to content
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

Clarify deadlock panic message #2605

Merged
merged 2 commits into from
Oct 29, 2020
Merged

Conversation

yurishkuro
Copy link
Member

Fixes #2603.

@yurishkuro yurishkuro requested a review from a team as a code owner October 29, 2020 17:29
@@ -68,7 +68,8 @@ func newDeadlockDetector(metricsFactory metrics.Factory, logger *zap.Logger, int
time.Sleep(time.Second) // Allow time to flush metric

buf := make([]byte, 1<<20)
logger.Panic("No messages processed in the last check interval",
logger.Panic("No messages processed in the last check interval, possible deadlock, exiting. "+
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM - only one suggestion might be to remove the stack trace, so it doesn't look like an unexpected exit?

Signed-off-by: Yuri Shkuro <[email protected]>
@codecov
Copy link

codecov bot commented Oct 29, 2020

Codecov Report

Merging #2605 into master will decrease coverage by 0.25%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2605      +/-   ##
==========================================
- Coverage   95.31%   95.05%   -0.26%     
==========================================
  Files         208      209       +1     
  Lines        9285     9368      +83     
==========================================
+ Hits         8850     8905      +55     
- Misses        356      385      +29     
+ Partials       79       78       -1     
Impacted Files Coverage Δ
cmd/ingester/app/consumer/deadlock_detector.go 100.00% <100.00%> (ø)
pkg/testutils/logger.go 100.00% <100.00%> (ø)
cmd/anonymizer/app/anonymizer/anonymizer.go 61.25% <0.00%> (ø)
plugin/storage/integration/integration.go 77.90% <0.00%> (+0.55%) ⬆️
cmd/query/app/server.go 90.16% <0.00%> (+1.63%) ⬆️

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 ee3bbee...2e7271a. Read the comment docs.

@yurishkuro yurishkuro merged commit 26b6116 into jaegertracing:master Oct 29, 2020
@yurishkuro yurishkuro deleted the fix-2603 branch October 29, 2020 19:40
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.

ingester crash
2 participants