-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BugFix] Fix table load metrics missing for transaction load #44991
base: main
Are you sure you want to change the base?
Conversation
bdc73e2
to
993eafc
Compare
Quality Gate passedIssues Measures |
@wyb could you review this pr? |
return; | ||
} | ||
long tableId = transactionState.getTableIdList().get(0); | ||
ManualLoadTxnCommitAttachment streamAttachment = (ManualLoadTxnCommitAttachment) attachment; |
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.
also need to process StreamLoadTxnCommitAttachment
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 didn't find StreamLoadTxnCommitAttachment
from any my production env's fe log, so I don't think I can handle StreamLoadTxnCommitAttachment
here correctly.
Maybe someone else uses StreamLoadTxnCommitAttachment
can start another pr to fix the metrics.
Currently, only ManualLoadTxnCommitAttachment
is handled and is just working fine.
We also encountered the same problem. Is this PR still maintained? If not, I will resubmit a PR to fix this problem. @wyb @kaijianding |
this pr is working fine in our production env. |
39c5982
to
c959c0c
Compare
6988b3a
to
d4f2a76
Compare
Signed-off-by: kaijian.ding <[email protected]>
d4f2a76
to
87a52f6
Compare
Quality Gate passedIssues Measures |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 16 / 18 (88.89%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
Why I'm doing:
A transaction stream load using prepare interface, the table metrics starrocks_fe_table_load_rows and starrocks_fe_table_load_bytes are missing.
What I'm doing:
Update table metrics in
GlobalTransactionMgr.commitPreparedTransaction()
which is called afterprepare
What type of PR is this:
Does this PR entail a change in behavior?
Checklist:
Bugfix cherry-pick branch check: