Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
ZKDatabase.txnCount logged non transactional requests
public boolean append(Request si) throws IOException { txnCount.incrementAndGet(); return this.snapLog.append(si); }
snaplog.append may return false, but txnCount increased
maybe it would be better
public boolean append(Request si) throws IOException { if (this.snapLog.append(si)) { txnCount.incrementAndGet(); return true; } return false; }
Attachments
Issue Links
- causes
-
ZOOKEEPER-4446 branch-3.6 txnLogCountTest use wrong version of Junit Assert import
- Closed
- links to