tidb-incubator / tidis

A distributed transactional large-scale NoSQL database powered by TiKV
Apache License 2.0
444 stars 30 forks source link

set command can overwrite data structure of hash #91

Open han-ian opened 1 year ago

han-ian commented 1 year ago

May be this is a bug.

How to reporduce the test:

image

Diving into the code, can see that string and hash meta key has the same key format. For the set command, may be it need to check if there is a existing key ? image image

han-ian commented 1 year ago

If this is a bug, I guess the sub_key may be out of control because the meta_key is lost.