About 개발~~

[Redis] Jedis exist() 사용 관련 오류

wizardee 2013. 12. 16. 21:18

jedis 사용시 여러 스레드에서 동시에 jedis.exist() 를 호출할 경우, 아래의 예외가 간헐적으로 발생..


jedis git(https://github.com/xetorthio/jedis)에 가 보니 2.2.x 버전에서는 버그가 해결되었다 하던데, 이 버전은 현재 개발중인 버전임.

안정화 버전은 2.1.0이라.. 2.2.x 버전이 나오면 패치를 해야 할 것 같다.

일단, 코드내에서 exist() 를 빼 보니 예외가 더이상 발생 안하는 것 같음.(물론 더 테스트를 해 봐야겠지만..)


** 다운로드 버전(https://github.com/xetorthio/jedis/downloads)은 2.1이 stable 버전이지만, maven 사용시에는 2.2.1을 사용할 수 있다.

Or use it as a maven dependency:

<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.2.1</version> <type>jar</type> <scope>compile</scope>  </dependency>