weim0000 opened a new pull request, #2686: URL: https://github.com/apache/kvrocks/pull/2686
reset the value of expired key to prevent the following parsing and calculation. `127.0.0.1:6003> set k v OK 127.0.0.1:6003> expire k 1 (integer) 1 after 2 seconds 127.0.0.1:6003> get k (nil) 127.0.0.1:6003> setrange k 1 aa (integer) 10 127.0.0.1:6003> get k (nil) 127.0.0.1:6003> exists k (integer) 0 127.0.0.1:6003>` 1 set value with expire time. 2 wait until the key expires 3 use setrange to this key. The cmd be successful, but get k return nil **What did you expect to see?** `127.0.0.1:6003> set k v OK 127.0.0.1:6003> expire k 1 (integer) 1 127.0.0.1:6003> get k (nil) 127.0.0.1:6003> setrange k 0 aa (integer) 10 127.0.0.1:6003> get k aa 127.0.0.1:6003> exists k (integer) 1 127.0.0.1:6003>` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
