今天遇到一个错误,在事务写的的时候(乐观锁,事务中包含2个put动作),第一次发生了resolve lock错误: [There was a write conflict or resolve lock error: Failed to resolve lock],乐观锁冲突的时候很正常,那我就重试嘛,然后第二次碰到了这个错误:
[There was a problem when accessing the underlying store: KeyError { locked: None, retryable: "", abort: "Error(Txn(Error(Mvcc(Error(Committed{ start_ts: TimeStamp(461847508362986035), commit_ts: TimeStamp(461847508362986058), key: [116, 0, 0, 0, 15, 95, 114, 1, 53, 55, 97, 98, 102, 55, 56, 97, 255, 45, 100, 50, 99, 48, 45, 52, 55, 255, 57, 54, 45, 97, 50, 55, 54, 45, 255, 52, 52, 98, 102, 49, 97, 53, 50, 255, 99, 100, 50, 102, 46, 53, 52, 53, 255, 56, 54, 55, 52, 46, 49, 46, 114, 255, 103, 119, 46, 109, 97, 105, 110, 0, 254, 1, 49, 54, 52, 51, 0, 0, 0, 0, 251] })))))", conflict: None, already_exist: None, deadlock: None, commit_ts_expired: None, txn_not_found: None, commit_ts_too_large: None, assertion_failed: None, primary_mismatch: None }]
Committed这个错误我是第一次见,之前都是resolve lock error 和 write conflict错误,不太能理解committed错误到底是什么意思,和write conflict (start_ts < committed_ts) 相比,committed代表了什么呢?