Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-756

MGET with repeating cross-slot keys does not return all results

    XMLWordPrintable

    Details

      Description

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

      	@Test
      	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)

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            entertainyou HUANG Wei
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: