-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-25679 Size of log queue metric is incorrect #3071
Conversation
@@ -256,7 +256,6 @@ private void dequeueCurrentLog() throws IOException { | |||
logQueue.remove(walGroupId); | |||
setCurrentPath(null); | |||
setPosition(0); | |||
metrics.decrSizeOfLogQueue(); |
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.
We already decrement the size of logqueue metric at line#256 on logQueue#remove(walGroupId) so no need to decrement again.
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.
I see it in here...
public void remove(String walGroupId) {
PriorityBlockingQueue<Path> queue = getQueue(walGroupId);
if (queue == null || queue.isEmpty()) {
return;
}
queue.remove();
// Decrease size logQueue.
this.metrics.decrSizeOfLogQueue();
// Re-compute age of oldest wal metric.
this.metrics.setOldestWalAge(getOldestWalAge());
}
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.
Yes thats correct. On line#256 we call this method only.
@apurtell @sandeepvinayak could you please review the patch ? |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Co-authored-by: Rushabh <rushabh.shah@salesforce.com> Signed-off-by: stack <stack@apache.org>
Co-authored-by: Rushabh <rushabh.shah@salesforce.com> Signed-off-by: stack <stack@apache.org>
https://issues.apache.org/jira/browse/HBASE-25679?filter=-2