mongodb allanbank async driver durability timeout -
does happen know waittimeoutmillis
in durability constructor argument in allanbank async driver (or 10gen driver matter)?
if set timeout of 0
wait forever? if set low timeout (e.g. 1
) , timeout triggered cancel transaction or throw exception , return before transaction completes?
the timeout handled @ server part of getlasterror command (or gle).
see http://docs.mongodb.org/manual/reference/command/getlasterror/#dbcmd.getlasterror :
wtimeout (integer) – optional. milliseconds. specify value in milliseconds control how long wait write propagation complete. if replication not complete in given timeframe, getlasterror command return error status.
based on 10gen driver javadoc believe waittimeout of 0 blocks forever have test verify.
hth - rob.
Comments
Post a Comment