-
Notifications
You must be signed in to change notification settings - Fork 11.9k
[ISSUE #2535] Use one variable value to log info when eventQueue's size more than 10000. #2536
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
Conversation
…e's size more than 10000.
Codecov Report
@@ Coverage Diff @@
## develop #2536 +/- ##
=============================================
- Coverage 45.97% 45.94% -0.03%
+ Complexity 4318 4316 -2
=============================================
Files 547 547
Lines 36236 36237 +1
Branches 4808 4808
=============================================
- Hits 16658 16648 -10
- Misses 17491 17503 +12
+ Partials 2087 2086 -1 Continue to review full report at Codecov.
|
this.eventQueue.add(event); | ||
} else { | ||
log.warn("event queue size[{}] enough, so drop this event {}", this.eventQueue.size(), event.toString()); | ||
log.warn("event queue size[{}] enough, so drop this event {}", currentSize, event.toString()); |
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.
IMO, print currentSize and maxSize will be better.
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.
agree
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.
please take a look the new msg.
* [ISSUE apache#2535] Use one variable value to log info when eventQueue's size more than 10000. * add the queue limit value when evenQueue size is enough.
* [ISSUE apache#2535] Use one variable value to log info when eventQueue's size more than 10000. * add the queue limit value when evenQueue size is enough.
* [ISSUE apache#2535] Use one variable value to log info when eventQueue's size more than 10000. * add the queue limit value when evenQueue size is enough.
What is the purpose of the change
Fix-#2535
Use one variable value to log info when eventQueue's size more than 10000.