Having a weird behavior on Java SDK 2.2.7,2.2.8,2.3.2,2.3.0:
running this simple test:
Observable.range(1, 100, Schedulers.computation()) .concatMap(i -> bucketProvider.getBucket().async() .counter("test::" + i, 1, 1, PersistTo.NONE) .map(doc -> i) ) .toBlocking() .subscribe(i -> System.out.println("Successful " + i), throwable -> throwable.printStackTrace());
just hangs on one machine and works correctly on another.
Behavior is following:
either it hangs completely (70% chance)
either it shows: com.couchbase.client.java.error.DocumentDoesNotExistException: null on counter which has initialization parameter (10% chance)
either it works normally (20% chance)
if counter already exists it properly increments it.
This behavior begun after updated target machine from 4.1 to 4.5.
What can it be and how to solve this?
Both machines are Ubuntu 14.04 (on is on EC2, another is local) running 4.5.0-2601 Enterprise Edition (build-2601), firewalls disabled. No issues seen on JSON docs or any other functionality, just counters. One difference between machine exists: CPU on EC2 is about 95% used permanently by ‘memcached’ process
Thank you for your time.