Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14242

RESP server can send results in incorrect order if a non blocking client is used

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 14.0.2.Final, 15.0.0.Final
    • 14.0.1.Final
    • RESP
    • None

      The RESP handler can return results in the incorrect order, causing responses to be incorrect to a client if the client uses a proper non blocking implementation.

      For example with lettuce you can do the following:

      RedisAsyncCommands<String, String> redis = ...;
      RedisFuture<String> setFuture = redis.set("1","a");
      RedisFuture<String> getFuture = redis.get("foo");
      

      When checking the above results it is possible for the set to receive the result of the get and vice versa depending on the order that they complete. We need to return results in the same order that they were received on the server.

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: