Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1351

lookupInAnyReplica hangs when too many operations are specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.4.10
    • None
    • None
    • None
    • 0
    • SDK32

    Description

      A common user error is to pass more than 16 operations to lookupIn. Currently, if the user passes too many operations, lookupInAnyReplica hangs forever.

      Instead, the SDK should report an error that indicates too many operations were specified.

       

      Reproducer:

      Cluster cluster = Cluster.connect("127.0.0.1", "Administrator", "password");
      Bucket bucket = cluster.bucket("travel-sample");
      bucket.waitUntilReady(ofSeconds(10));
       
      List<LookupInSpec> specs = new ArrayList<>();
      for (int i = 0; i < 17; i++) {
      specs.add(LookupInSpec.get("x" + i));
      }
       
      LookupInReplicaResult r = bucket.defaultCollection().lookupInAnyReplica("airline_10", specs);
      System.out.println(r);
      System.out.println("done");
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              michael.reiche Michael Reiche
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty