-
Notifications
You must be signed in to change notification settings - Fork 903
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
Bookie server lost some metrics of OrderedExecutor #4373
Labels
Comments
shoothzj
pushed a commit
that referenced
this issue
May 25, 2024
Ghatage
pushed a commit
to sijie/bookkeeper
that referenced
this issue
Jul 12, 2024
Fix [apache#4373](apache#4373) ### Motivation As shown in the issue. This is the first pr to fix the lost metric problem. And the other pr improve the metric in SingleThreadExecutor. Co-authored-by: fanjianye <fanjianye@bigo.sg>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BUG REPORT
Describe the bug
We found that bookie lost some metrics of OrderedExecutor. The problem is caused after #3546
The root cause is : If we disable traceTaskExecution, it is ok. But if we enable traceTaskExecution, SingleThreadExecutor would do addExecutorDecorators(). Then it can't go through the judge
if (thread instanceof SingleThreadExecutor)
. Therefore, singleThreadExecutor can not do registerMetrics.After diving into the code. I found that there are several areas need to be improved in OrderedExecutor and SingleThreadExecutor.
if (thread instanceof ThreadPoolExecutor)
. This part of code never triggerDuplicate metric and different metric format:
The text was updated successfully, but these errors were encountered: