-
Couldn't load subscription status.
- Fork 43
Add recommendations on non-idempotent operations to vshard docs #5252
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
base: latest
Are you sure you want to change the base?
Conversation
9db369a to
d0c7e23
Compare
d0c7e23 to
e601387
Compare
e601387 to
acd7589
Compare
acd7589 to
d3b7c4a
Compare
d3b7c4a to
8269db6
Compare
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.
Thanks for the detailed description!
Please, consider my comments below. I also suggest asking @Totktonada to take a look at this doc.
8269db6 to
85d5ad4
Compare
85d5ad4 to
9131155
Compare
|
@sergepetrenko review this PR please |
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.
Thanks for the detailed description!
LGTM. Only one comment left.
636af76 to
3173f40
Compare
| Currently, deduplication can be only implemented by the user in the application code. | ||
|
|
||
| For example, when you add a new tuple to a space, you can use a unique insert ID to check the request. | ||
| In the example below within a single transaction: |
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.
| In the example below within a single transaction: | |
| In the example below, within a single transaction: |
| In the example below, within a single transaction: | ||
|
|
||
| 1. It is checked whether the ``deduplication_key`` request ID exists in the ``deduplication`` space. | ||
| 2. If there is no such ID, The ID is added to the deduplication space. |
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.
| 2. If there is no such ID, The ID is added to the deduplication space. | |
| 2. If there is no such ID, the ID is added to the deduplication space. |
| shard with the specified ``bucket_id``, it will retry until the timeout is reached. | ||
|
|
||
| * ``request_timeout`` (since ``vshard`` 0.1.28) — timeout in seconds that serves as a protection against hung replicas. | ||
| The parameter is used in the read requests only (``mode=read``). |
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 parameter is used in the read requests only (``mode=read``). | |
| The parameter is used in read requests only (``mode=read``). |
Resolves #5242
Resolves #5286
Deployment: https://docs.d.tarantool.io/en/doc/5242-deduplication/platform/sharding/vshard_admin/#deduplication-of-non-idempotent-requests