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

MGET with repeating cross-slot keys does not return all results [DATAREDIS-756] #1337

spring-projects-issues opened this issue Jan 19, 2018 · 0 comments
in: jedis type: bug


Copy link

spring-projects-issues commented Jan 19, 2018

HUANG Wei opened DATAREDIS-756 and commented

The behavior can be observed by adding the following test code in src/test/java/org/springframework/data/redis/connection/jedis/

	public void duplicateKeyMget() {

		nativeConnection.set(KEY_1_BYTES, VALUE_1_BYTES);
		nativeConnection.set(KEY_2_BYTES, VALUE_2_BYTES);
		nativeConnection.set(KEY_3_BYTES, VALUE_3_BYTES);

		List<byte[]> result = clusterConnection.mGet(KEY_1_BYTES, KEY_2_BYTES, KEY_1_BYTES, KEY_3_BYTES);
		assertThat(result, contains(VALUE_1_BYTES, VALUE_2_BYTES, VALUE_1_BYTES, VALUE_3_BYTES));

result actual is (VALUE_1_BYTES, VALUE_2_BYTES, VALUE_3_BYTES)

Affects: 1.8.9 (Ingalls SR9), 2.0.2 (Kay SR2)

Referenced from: pull request #303

Backported to: 2.0.3 (Kay SR3), 1.8.10 (Ingalls SR10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: jedis type: bug
None yet

No branches or pull requests

2 participants