Details
-
Bug
-
Resolution: Fixed
-
Major
-
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
- relates to
-
JCBC-2078 Support for Subdocument Read from Replica
- Closed