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

Enable Jedis Lua usage in transaction and pipeline #1455

Closed
spring-projects-issues opened this issue Oct 17, 2018 · 1 comment
Closed

Enable Jedis Lua usage in transaction and pipeline #1455

spring-projects-issues opened this issue Oct 17, 2018 · 1 comment
Assignees
Labels
in: jedis Jedis driver type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

Mikael Carlstedt opened DATAREDIS-882 and commented

Both eval() and evalSha() methods in JedisScriptingCommands throw UnsupportedOperationException when called from inside a transaction or pipeline. However, LUA script execution works fine inside transactions when using native Jedis API (I stumbled across this restriction while migrating working code from native Jedis with evalSha inside transactions to RedisTemplate). Is this some historical restriction?


No further details from DATAREDIS-882

@spring-projects-issues spring-projects-issues added type: bug A general bug in: jedis Jedis driver labels Dec 30, 2020
@mp911de mp911de changed the title Jedis driver does not allow LUA script execution inside transaction or pipeline [DATAREDIS-882] Enable Jedis Lua usage in transaction and pipeline Sep 11, 2024
@mp911de mp911de assigned mp911de and unassigned christophstrobl Sep 11, 2024
@mp911de mp911de added type: enhancement A general enhancement and removed type: bug A general bug labels Sep 11, 2024
@mp911de mp911de added this to the 3.4 M1 (2024.1.0) milestone Sep 11, 2024
@mp911de
Copy link
Member

mp911de commented Sep 11, 2024

To add a bit of detail: Jedis didn't support SCRIPT … commands for quite a while. Only starting with Jedis 4, SCRIPT … commands have been added to the pipelining/transaction API.

mp911de added a commit that referenced this issue Sep 11, 2024
Enable SCRIPT FLUSH and SCRIPT KILL for pipelining/transaction usage. Use lambdas where possible.

Original pull request: #2988
See #1455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: jedis Jedis driver type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants