Skip to content

continuous Java IndexOutOfBoundsException on postgres container #10

@agallo

Description

@agallo

I just installed the Postgres container and I'm seeing a continuous stream of these errors from the command docker logs -f openbmp_psql

java.lang.IndexOutOfBoundsException: Index: 31, Size: 31
	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
	at java.util.ArrayList.get(ArrayList.java:433)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseRecord(UnicastPrefix.java:91)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseData(UnicastPrefix.java:42)
	at org.openbmp.api.parsed.processor.UnicastPrefix.<init>(UnicastPrefix.java:33)
	at org.openbmp.ConsumerRunnable.run(ConsumerRunnable.java:500)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
java.lang.IndexOutOfBoundsException: Index: 31, Size: 31
	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
	at java.util.ArrayList.get(ArrayList.java:433)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseRecord(UnicastPrefix.java:91)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseData(UnicastPrefix.java:42)
	at org.openbmp.api.parsed.processor.UnicastPrefix.<init>(UnicastPrefix.java:33)
	at org.openbmp.ConsumerRunnable.run(ConsumerRunnable.java:500)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
java.lang.IndexOutOfBoundsException: Index: 31, Size: 31
	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
	at java.util.ArrayList.get(ArrayList.java:433)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseRecord(UnicastPrefix.java:91)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseData(UnicastPrefix.java:42)
	at org.openbmp.api.parsed.processor.UnicastPrefix.<init>(UnicastPrefix.java:33)
	at org.openbmp.ConsumerRunnable.run(ConsumerRunnable.java:500)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
java.lang.IndexOutOfBoundsException: Index: 31, Size: 31
	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
	at java.util.ArrayList.get(ArrayList.java:433)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseRecord(UnicastPrefix.java:91)
	at org.openbmp.api.parsed.processor.UnicastPrefix.parseData(UnicastPrefix.java:42)
	at org.openbmp.api.parsed.processor.UnicastPrefix.<init>(UnicastPrefix.java:33)
	at org.openbmp.ConsumerRunnable.run(ConsumerRunnable.java:500)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

These messages are logged a few per second

The container logs are also very verbose:

{"log":"\u0009at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n","stream":"stderr","time":"2020-09-21T13:15:34.404250825Z"}
{"log":"\u0009at java.lang.Thread.run(Thread.java:748)\n","stream":"stderr","time":"2020-09-21T13:15:34.404255352Z"}
{"log":"java.lang.IndexOutOfBoundsException: Index: 31, Size: 31\n","stream":"stderr","time":"2020-09-21T13:15:34.404260968Z"}
{"log":"\u0009at java.util.ArrayList.rangeCheck(ArrayList.java:657)\n","stream":"stderr","time":"2020-09-21T13:15:34.404268374Z"}
{"log":"\u0009at java.util.ArrayList.get(ArrayList.java:433)\n","stream":"stderr","time":"2020-09-21T13:15:34.404272875Z"}
{"log":"\u0009at org.openbmp.api.parsed.processor.UnicastPrefix.parseRecord(UnicastPrefix.java:91)\n","stream":"stderr","time":"2020-09-21T13:15:34.404277233Z"}
{"log":"\u0009at org.openbmp.api.parsed.processor.UnicastPrefix.parseData(UnicastPrefix.java:42)\n","stream":"stderr","time":"2020-09-21T13:15:34.404281667Z"}
{"log":"\u0009at org.openbmp.api.parsed.processor.UnicastPrefix.\u003cinit\u003e(UnicastPrefix.java:33)\n","stream":"stderr","time":"2020-09-21T13:15:34.404286404Z"}
{"log":"\u0009at org.openbmp.ConsumerRunnable.run(ConsumerRunnable.java:500)\n","stream":"stderr","time":"2020-09-21T13:15:34.404290972Z"}

I limited dockers logging to prevent the disks from filling up. I'm seeing about 100MB of logs per 45 minutes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions