Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ERR MULTI calls can not be nested" when using rbatch in cluster mode #5707

Open
Jacsonliu opened this issue Mar 22, 2024 · 2 comments
Open
Labels
Milestone

Comments

@Jacsonliu
Copy link

Jacsonliu commented Mar 22, 2024

when i used rbatch to execute a batch of orders in cluster mode just like this :
RBatch rBatch = getRedisson().createBatch(batchOptions); rBatch.getSetCache("", LongCodec.INSTANCE).addAsync(packId, 3, TimeUnit.DAYS); rBatch.getTopic("").publishAsync(packId); rBatch.execute();

these orders should've been sent to different redis cluster ,as the redis keys that i used belong to different slots。
one of the orders was executed normally and the other one redis recieved looks like this:
image

the second redis cluster printed double "MULTI" orders,and returned an errror "ERR MULTI calls can not be nested"

reverting the version of redisson to V3.19.3 will solve the problem.

@mrniko mrniko added this to the 3.27.3 milestone Mar 22, 2024
@Jacsonliu
Copy link
Author

Jacsonliu commented Mar 24, 2024

image

this "for" loop may be the cause of this issue, cuz every batch of command would be add "multi" and "exec" for twice before sending to redis.
@mrniko

@mrniko mrniko modified the milestones: 3.28.0, 3.28.1 Apr 11, 2024
@mrniko
Copy link
Member

mrniko commented Apr 11, 2024

Let me check that

@mrniko mrniko modified the milestones: 3.29.0, 3.29.1 Apr 23, 2024
@mrniko mrniko modified the milestones: 3.30.0, 3.30.1 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants