jonahgao opened a new issue, #3148:
URL: https://github.com/apache/kvrocks/issues/3148

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   unstable 
https://github.com/apache/kvrocks/commit/9c9ffb82de7fd70e02ae0244faf05677d27f53b0
   
   ### Minimal reproduce step
   
   ```sh
   redis-cli -p 6666
   127.0.0.1:6666> auth pass
   OK
   127.0.0.1:6666> namespace add ns1 token1
   OK
   127.0.0.1:6666> namespace add ns2 token2
   OK
   127.0.0.1:6666> namespace get *
   1) "ns1"
   2) "token1"
   3) "ns2"
   4) "token2"
   5) "__namespace"
   6) "pass"
   127.0.0.1:6666> namespace set ns2 token1
   OK
   127.0.0.1:6666> namespace get *
   1) "ns2"
   2) "token1"
   3) "__namespace"
   4) "pass"
   ```
   
   ### What did you expect to see?
   
   Return an error if the new token is occupied by another namespace.
   
   ### What did you see instead?
   
   SET was successful and deleted another namespace.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
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]

Reply via email to