diff options
author | shamteev <shamteev@yandex-team.com> | 2025-05-29 12:06:16 +0300 |
---|---|---|
committer | shamteev <shamteev@yandex-team.com> | 2025-05-29 12:32:42 +0300 |
commit | 25151c4698d52226d8b4882d2ef7fb2f04587b7c (patch) | |
tree | cfdbfaa8fe67864e850ac355821eb40a796b74d6 | |
parent | 7f3903f18f331c5be93a476a3ffe1049b7aafaa3 (diff) | |
download | ydb-25151c4698d52226d8b4882d2ef7fb2f04587b7c.tar.gz |
Fix stale read bug, YT-24851
Fixing stale read from ordered tables by adding transient OrderedDynamicStoreRotateEpoch. Throwing error if epoch after reading is not the same as before reading.
This should provide consistency. By default this fix is disabled in mount\_config ("retry\_read\_on\_ordered\_store\_rotation" : false).
The error is automatically retried on tab node.
Tested locally by jepsen.
commit_hash:c76d562b529bb9a7063bad90ee18219eca8355f6
-rw-r--r-- | yt/yt/client/tablet_client/public.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yt/yt/client/tablet_client/public.h b/yt/yt/client/tablet_client/public.h index 1dc6cfddc93..219ee4d3301 100644 --- a/yt/yt/client/tablet_client/public.h +++ b/yt/yt/client/tablet_client/public.h @@ -94,6 +94,7 @@ YT_DEFINE_ERROR_ENUM( ((TabletServantIsNotActive) (1740)) ((UniqueIndexConflict) (1741)) ((TabletReplicationEraMismatch) (1742)) + ((SetOfDynamicStoresHasChanged) (1743)) ); DEFINE_ENUM(EInMemoryMode, |