Esempio n. 1
0
 /** Resets the member state. */
 void resetState(Log log) {
   nextSnapshotIndex = 0;
   nextSnapshotOffset = 0;
   matchIndex = 0;
   nextIndex = log.lastIndex() + 1;
   commitTime = 0;
   commitStartTime = 0;
   failures = 0;
 }
Esempio n. 2
0
 /** Clears test logs. */
 @AfterMethod
 void afterMethod() throws Throwable {
   log.close();
   serverCtx.close();
 }