Iter Failure Caused by BadPadding

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 由于BadPadding导致的Iter失败

| username: ethanlee

[TiKV Usage Environment] Production Environment
[TiKV Version] v6.5.0
[Reproduction Path] Unknown
[Client SDK] golang client 2.0.5
[Encountered Issue: Phenomenon and Impact]

Previously written data (transaction set) later encountered an error [ERROR] [errors.rs:467] [“txn aborts”] [err_code=KV:Codec:BadPadding] [err=Error(Txn(Error(Codec(KeyPadding))))] when iterating (transaction Iter).

It was eventually determined that there was an issue with the encoding of certain keys.
The following abnormal key was found (this key was scanned using tikv-cli scan):
195C9BD2E32AFE6AFFBA5883313B1C40BCFF5FBB8C713232714D063772536E2E747300FE
But it should have been:
195C9BD2E32AFE6AFFBA5883313B1C40BCFF5FBB8C713232714DFF3772536E2E747300FE

In other words, the final delimiter should be FF but is actually 06.

| username: Billmay表妹 | Original post link

Already looking at it

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.