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

error: cannot access JedisShardInfo with spring-data-redis:2.6.4 and Jedis 4.2.3 #2320

Closed
razorree opened this issue May 12, 2022 · 4 comments
Labels
status: duplicate A duplicate of another issue

Comments

@razorree
Copy link

razorree commented May 12, 2022

error: cannot access JedisShardInfo
    return new JedisConnectionFactory(connectionConfig);
           ^
  class file for redis.clients.jedis.JedisShardInfo not found

spring-data-redis uses removed JedisShardInfo, not possible to compile project with new Jedis lib.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 12, 2022
@christophstrobl
Copy link
Member

Due to the amount of breaking changes in Jedis 4, Spring Data Redis 2.x cannot be used with Jedis 4.x.
Jedis 4.x support will be part of Data Redis 3.0 (see: #2212).

@christophstrobl christophstrobl added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels May 12, 2022
@HengCC
Copy link

HengCC commented Aug 30, 2023

@christophstrobl I've encountered a similar issue as well. I actually raised this concern on the Spring Boot side before. spring-projects/spring-boot#37136 In version 2.7.15, Spring Boot includes jedis 4.x, which is causing this error to occur. I believe there are still many projects that cannot upgrade to Spring Boot 3.x. Are there any other feasible solutions to temporarily address this problem? The reason is that features like Redis search are only available in jedis 4 and later.

@christophstrobl
Copy link
Member

@HengCC I do not think there's a reasonable way to do this given the amount of breaking changes in Jedis 4.

@HengCC
Copy link

HengCC commented Aug 31, 2023

Thank you for your response. I'm now in the process of trying to upgrade JDK to version 17 and moving from Spring Boot 2 to 3. It's quite a massive undertaking.

@HengCC I do not think there's a reasonable way to do this given the amount of breaking changes in Jedis 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants