Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: support to force send non-idempotent write when doing duplication #1908
base: master
Are you sure you want to change the base?
feat: support to force send non-idempotent write when doing duplication #1908
Changes from 8 commits
e60dc0a
31a4271
61b446f
0d1152d
0db1a56
cef197a
a4f510a
538090b
c5e39ca
11c013f
b521752
0e19a01
e827c78
bb56598
3d0694f
7833e8c
95953ac
d8e26b1
3831f7a
01fa7af
c400ef7
8dc378f
fcaabfe
cc853e7
5d35724
76faaa7
2f90f2e
884aabe
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is it necessary to add it here?
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 think it's necessary . Cause once I remove this line , compilation can not be passed.
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.
The DSN_DECLARE_xxx macros are recommended to move to cpp files where actually use it, don't make the header files to be too large.
The same to
DSN_DECLARE_uint32(duplicate_log_batch_bytes);
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.
Will the non-idempotent request be retried twice here?
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,it will. So I record specific
raw_key
into log.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.
Add some comments to describe what's you aim here.