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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -