----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17592/#review33331 -----------------------------------------------------------
/trunk/qpid/cpp/src/qpid/broker/DtxManager.h <https://reviews.apache.org/r/17592/#comment62771> Rather than passing the default timeout through on each call, why not pass it in to the constructor of DtxManager, and then simply use a member variable from createWork()? - Gordon Sim On Jan. 31, 2014, 4:16 p.m., Pavel Moravec wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/17592/ > ----------------------------------------------------------- > > (Updated Jan. 31, 2014, 4:16 p.m.) > > > Review request for qpid, Chug Rolke, Cliff Jansen, Kim van der Riet, and > Steve Huston. > > > Bugs: https://issues.apache.org/jira/browse/QPID-5531 > > https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/QPID-5531 > > > Repository: qpid > > > Description > ------- > > If a rogue external Transaction Manager forgets to commit/rollback a prepared > DTX, Tpl store keeps an orphaned enqueue record. To prevent it, every DTX > transaction should have a default timeout after that the broker automatically > aborts the transaction. > > QPID-5531 adds broker option dtx-default-timeout for that. > > My concerns for review: > - is 3600 seconds as default value proper? Isn't it too high? > - ms-sql and/or ms-clfs store part of the patch (recoverTransaction method) > has not been even compiled > > > Diffs > ----- > > /trunk/qpid/cpp/src/qpid/broker/Broker.h 1562753 > /trunk/qpid/cpp/src/qpid/broker/Broker.cpp 1562753 > /trunk/qpid/cpp/src/qpid/broker/DtxManager.h 1562753 > /trunk/qpid/cpp/src/qpid/broker/DtxManager.cpp 1562753 > /trunk/qpid/cpp/src/qpid/broker/RecoveryManager.h 1562753 > /trunk/qpid/cpp/src/qpid/broker/RecoveryManagerImpl.h 1562753 > /trunk/qpid/cpp/src/qpid/broker/RecoveryManagerImpl.cpp 1562753 > /trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp 1562753 > /trunk/qpid/cpp/src/qpid/legacystore/MessageStoreImpl.cpp 1562753 > /trunk/qpid/cpp/src/qpid/linearstore/MessageStoreImpl.cpp 1562753 > /trunk/qpid/cpp/src/qpid/store/ms-clfs/MSSqlClfsProvider.cpp 1562753 > /trunk/qpid/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp 1562753 > > Diff: https://reviews.apache.org/r/17592/diff/ > > > Testing > ------- > > > Thanks, > > Pavel Moravec > >
