Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4362

ZKDatabase.txnCount logged non transactional requests

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Unassigned Unassigned
              lan_ok LiAoNan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h