You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now TiDB sets undetermined errors only when encounters RPC errors. It's possible a transaction is committed and TiDB doesn't return an undetermined error. Fortunately, TiDB cleans up the primary lock first, so it doesn't break the atomicity of transaction.
The text was updated successfully, but these errors were encountered:
The second case looks unlikely to happen. Transfer and region merge should not result in undetermined states before destroying the peer.
If a peer destroys itself after being orphan like tikv/tikv#9113, the problem can happen. But it shouldn't be a problem if we add timeout to callback.
Bug Report
A region error doesn't mean a write request is failed:
StaleCommand
to all proposed requests(gRPC server is shutdown asynchronously): https://github.com/tikv/tikv/blob/4ed382c21699596a84aa3342b27e3221c0741893/components/raftstore/src/store/fsm/apply.rs#L3006-L3010RegionNotFound
to all proposed requests: https://github.com/tikv/tikv/blob/4ed382c21699596a84aa3342b27e3221c0741893/components/raftstore/src/store/fsm/apply.rs#L1132-L1144Now TiDB sets undetermined errors only when encounters RPC errors. It's possible a transaction is committed and TiDB doesn't return an undetermined error. Fortunately, TiDB cleans up the primary lock first, so it doesn't break the atomicity of transaction.
The text was updated successfully, but these errors were encountered: