Details
Description
The server sometimes gives us odd numbers for ttp if the response is not actually persisted. This leads to weird results when trying to calculate the poll time based on the reply from the server. I've gotten odd response times.
This only works when the response is 'FOUND' and not 'PERSISTED'. This may very well be a server 'bug', but I'm putting it past our team first before we escalate:
mnunberg@mbp15 ~/Source/libcouchbase $ echo 'hi' | ./inst/bin/cbc create foo; ./inst/bin/cbc observe foo
Stored "foo" CAS:818395c0b5ea0000
FOUND "foo" CAS:818395c0b5ea0000 IsMaster:true TimeToPersist:258027803 TimeToReplicate:0
mnunberg@mbp15 ~/Source/libcouchbase $ echo 'hi' | ./inst/bin/cbc create foo; ./inst/bin/cbc observe foo
Stored "foo" CAS:bb641413b6ea0000
FOUND "foo" CAS:bb641413b6ea0000 IsMaster:true TimeToPersist:258066347 TimeToReplicate:0