Multi-threaded extract completes but throws exception, missing log summary
- Article Type: General
- Product: Voyager
- Product Version: 8.2.0
Symptoms
- No extract summary in logs for multi-threaded extract
- Error at command line similar to
622862 [Thread-3] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
Exception in thread "main" java.lang.NullPointerException
Defect Status
Exception in thread "main" java.lang.NullPointerException
Issue VYG-5574 is resolved for Voyager 9.1.0 and higher.
Replication steps
- Run a multi-threaded Selective extract:
cd /m1/voyager/xxxdb/sbin
Pprimoexp.sel -f ../ini/PrimoExp-Selective.ini -B1 -E250000 -T5
- The extract runs and finishes with messages similar to the following:
512027 [Thread-2] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
535627 [Thread-4] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
549621 [Thread-0] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
591564 [Thread-1] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
622862 [Thread-3] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
Exception in thread "main" java.lang.NullPointerException
at java.util.LinkedList$ListItr.next(LinkedList.java:891)
at com.endinfosys.util.Stats.dumpTimedEventsSummary(Stats.java:397)
at com.endinfosys.voyager.primo.PrimoExtract$StatGatherer.logStats(PrimoExtract.java:488)
at com.endinfosys.voyager.primo.PrimoExtract$StatGatherer.logResults(PrimoExtract.java:428)
at com.endinfosys.voyager.primo.PrimoExtract.runMultiThreaded(PrimoExtract.java:111)
at com.endinfosys.voyager.primo.PrimoExtract.main(PrimoExtract.java:57)
- In individual log files in /m1/voyager/xxxdb/primo/Selective/logs, none contain summary of records extracted at the end.
- Run 1 extract for same bib_id range.
- Logs contain summaries and no exceptions or errors are shown at command line.
2569938 [main] INFO com.endinfosys.voyager.extract.Extract - Disconnected from database
2569941 [main] INFO com.endinfosys.voyager.extract.Extract - Simple status
2569996 [main] INFO com.endinfosys.voyager.extract.Extract - ************************* START OF SUMMARY ***********************
BIB-Range-AvailabilityHistory
In 249438 visit(s) took 103207 millisecs for doing 399890 with 0 errors
BIB-Range
In 249438 visit(s) took 2433741 millisecs for doing 249438 with 0 errors
2569996 [main] INFO com.endinfosys.voyager.extract.Extract - ************************** END OF SUMMARY ************************
2569998 [main] INFO com.endinfosys.voyager.primo.PrimoExp - Wrote 249438 records to 250 files in /m1/voyager/bigdb/primo/Selective/bundled/
2569998 [main] INFO com.endinfosys.voyager.primo.PrimoExp - Extract completed in 42 minutes 49 seconds
- Article last edited: 17-Oct-2014