-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][txn] PIP-160 admin api coordinatorStats append batch info #16748
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
codelipenghui
left a comment
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.
LGTM, please check the failed test.
| /** | ||
| * If enabled the feature-batch, this attribute means maximum wait time(in millis) for the first record in a batch. | ||
| */ | ||
| private int batchedWriteMaxDelayInMillis; |
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 help check the naming of the above fields @momo-jun
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 made a few suggestions for the annotation.
liangyepianzhou
left a comment
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 do not understand why the users need the admin API to get the configuration of the transaction batch. The configuration is what the user configures in broker.conf, isn't it?
| /** Whether to enable the batch feature when writing to Bookie. **/ | ||
| private boolean batchEnabled = false; | ||
|
|
||
| /** If enabled the feature-batch, this attribute means maximum log records count in a batch. **/ |
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.
| /** If enabled the feature-batch, this attribute means maximum log records count in a batch. **/ | |
| /** If the batch feature is enabled, this attribute means the maximum count of log records in a batch. **/ |
| private int batchedWriteMaxSize; | ||
|
|
||
| /** | ||
| * If enabled the feature-batch, this attribute means maximum wait time(in millis) for the first record in a batch. |
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.
| * If enabled the feature-batch, this attribute means maximum wait time(in millis) for the first record in a batch. | |
| * If the batch feature is enabled, this attribute means the maximum wait time (in milliseconds) for the first record in a batch. |
| /** If enabled the feature-batch, this attribute means maximum log records count in a batch. **/ | ||
| private int batchedWriteMaxRecords = 512; | ||
|
|
||
| /** If enabled the feature-batch, this attribute means bytes size in a batch. **/ |
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.
| /** If enabled the feature-batch, this attribute means bytes size in a batch. **/ | |
| /** If the batch feature is enabled, this attribute means the maximum size of bytes in a batch. **/ |
OK, I have make this PR to "draft" |
Master Issue: #15370
Motivation
see #15370
Modifications
I will complete proposal #15370 with these pull requests( current pull request is a part of step-6 ):
TxnLogBufferedWriterGET /admin/v3/transactions/coordinatorStats
GET /admin/v3/transactions/pendingAckStats/:tenant/:namespace:/:topic:/:subName
Documentation
doc-requireddoc-not-neededdocdoc-complete