Details
-
Bug
-
Resolution: Incomplete
-
Minor
-
None
-
1.4.4
-
Security Level: Public
-
None
Description
It looks like that call leads to asyncObserveStore(key, setOp, req, rep, "Set", false) in CouchbaseClient.
Then if an exception is thrown from the observePoll at line 1443, it is handled and an OperationStatus object is made for the caller. But there is no status code set up. So the only way for the caller to tell what happened it to interrogate the message. Having my calling code looking for specific messages does not feel robust. Can we get some kind of fixed set of codes (perhaps new StatusCode values) to look for?
1442 try {
|
1443 observePoll(key, future.getCas(), req, rep, delete);
|
1444 observeFuture.set(true, future.getStatus());
|
1445 } catch (ObservedException e) {
|
1446 observeFuture.set(false, new OperationStatus(false, e.getMessage()));
|
1447 } catch (ObservedTimeoutException e) {
|
1448 observeFuture.set(false, new OperationStatus(false, e.getMessage()));
|
1449 } catch (ObservedModifiedException e) {
|
1450 observeFuture.set(false, new OperationStatus(false, e.getMessage()));
|
1451 }
|