Uploaded image for project: 'Phoenix Tephra'
  1. Phoenix Tephra
  2. TEPHRA-221

If the invalid list is empty, we hit an ArrayIndexOutOfBoundsException when printing an info message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0-incubating
    • 0.11.0-incubating
    • None
    • None

    Description

      I see the following stack trace when the tx invalid list is empty.

      2017-02-17 01:11:55,412 - ERROR [tephra-pruning-thread:o.a.t.t.TransactionPruningRunnable@121] - Got exception during invalid list prune run
      java.lang.ArrayIndexOutOfBoundsException: 0
              at org.apache.tephra.txprune.TransactionPruningRunnable.run(TransactionPruningRunnable.java:96) ~[org.apache.tephra.tephra-core-0.11.0-incubating-SNAPSHOT.jar:0.11.0-incubating-SNAPSHOT]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_75]
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_75]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_75]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_75]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
      

      Attachments

        Activity

          People

            poorna Poorna Chandra
            gokulavasan Gokul Gunasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: