You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2017/04/27 23:07:04 UTC

[jira] [Commented] (ACCUMULO-4633) ArithmeticException on TabletServerBatchWriter#logStats

    [ https://issues.apache.org/jira/browse/ACCUMULO-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15987854#comment-15987854 ] 

Keith Turner commented on ACCUMULO-4633:
----------------------------------------

I suspect this is happening when trace logging is enabled and nothing was written to the batch writer.

> ArithmeticException on TabletServerBatchWriter#logStats
> -------------------------------------------------------
>
>                 Key: ACCUMULO-4633
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4633
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.7.3
>            Reporter: Adam J Shook
>            Priority: Minor
>
> Getting the below divide by zero error.  It is related to replication, but I imagine it could occur at any stage.
> {code}
> 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)
> {code}
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)