archiver-appliance / epicsarchiverap

This is an implementation of an archiver for EPICS control systems that aims to archive millions of PVs.
Other
38 stars 37 forks source link

NPE during archive PV workflow #142

Closed slacmshankar closed 1 year ago

slacmshankar commented 1 year ago

This seems to happen if we add more than 1000 PV's at the same point in time. This seems to kill the the archive PV thread and stop further archive requests from being fulfilled until a restart.

java.lang.NullPointerException: Cannot invoke "java.sql.Timestamp.getTime()" because the return value of "org.epics.archiverappliance.mgmt.archivepv.ArchivePVState.getMetaInfoRequestedSubmitted()" i
s null
        at org.epics.archiverappliance.mgmt.MgmtRuntimeState$3.run(MgmtRuntimeState.java:287)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:831)
slacmshankar commented 1 year ago

Fixed with commit 16bf7e946f5eefcea850502db8021fd712c2f0b7