Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4633

ArithmeticException on TabletServerBatchWriter#logStats

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.3
    • Fix Version/s: 1.7.4, 1.9.0, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Getting the below divide by zero error. It is related to replication, but I imagine it could occur at any stage.

      Error trying to close write-ahead logs for replication table
      	java.lang.ArithmeticException: / by zero
      		at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.logStats(TabletServerBatchWriter.java:418)
      		at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.close(TabletServerBatchWriter.java:369)
      		at org.apache.accumulo.core.client.impl.BatchWriterImpl.close(BatchWriterImpl.java:54)
      		at org.apache.accumulo.gc.replication.CloseWriteAheadLogReferences.updateReplicationEntries(CloseWriteAheadLogReferences.java:271)
      		at org.apache.accumulo.gc.replication.CloseWriteAheadLogReferences.run(CloseWriteAheadLogReferences.java:154)
      		at org.apache.accumulo.gc.SimpleGarbageCollector.run(SimpleGarbageCollector.java:569)
      		at org.apache.accumulo.gc.SimpleGarbageCollector.main(SimpleGarbageCollector.java:159)
      		at org.apache.accumulo.gc.GCExecutable.execute(GCExecutable.java:34)
      		at org.apache.accumulo.start.Main$1.run(Main.java:120)
      		at java.lang.Thread.run(Thread.java:745)
      
      Caught Exception trying to remove finished Replication records
      	java.lang.ArithmeticException: / by zero
      		at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.logStats(TabletServerBatchWriter.java:418)
      		at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.close(TabletServerBatchWriter.java:369)
      		at org.apache.accumulo.core.client.impl.BatchWriterImpl.close(BatchWriterImpl.java:54)
      		at org.apache.accumulo.master.replication.RemoveCompleteReplicationRecords.run(RemoveCompleteReplicationRecords.java:100)
      		at org.apache.accumulo.master.replication.ReplicationDriver.run(ReplicationDriver.java:110)
      

        Attachments

          Activity

            People

            • Assignee:
              milleruntime Michael Miller
              Reporter:
              adamjshook Adam J Shook
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 0.5h
                0.5h