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

Possible divide-by-zero exception when closing BatchWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.6.5, 1.7.2
    • None
    • core
    • None

    Description

      TabletServerBatchWriter.logStats will throw a divide-by-zero exception if numBatches is 0 (i.e., no batches have been written).

      There are actually no checks for 0 divisors anywhere in the method, so other such exceptions are possible, as are lesser issues ("Average send rate" and some other stats come out as NaN when no batches have been written, for example).

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblum@bbn.com Daniel Blum
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: