Issue 17607

Fail to import GNUB checklist

17607
Reporter: mdoering
Type: Bug
Summary: Fail to import GNUB checklist
Priority: Major
Status: Open
Created: 2015-06-01 12:15:58.847
Updated: 2015-06-01 12:16:32.579
        
Description: The GNUB checklist is currently mapped pretty badly when it comes to (foreign) keys, but we should not see a fatal import exception like this:
http://www.gbif-dev.org/dataset/77c6c95b-d745-4cde-b937-89d77a3738f8
-----

INFO  [2015-05-29 22:12:01,120+0200] [pool-9-thread-2] org.gbif.checklistbank.cli.importer.Importer: Synced 200000 usages from dataset 77c6c95b-d745-4cde-b937-89d77a3738f8, latest usage key=146432006
ERROR [2015-05-29 22:21:33,941+0200] [pool-9-thread-2] org.gbif.checklistbank.neo.NeoMapper: Unable to read parent relation for Scalpellum Hoek 1907 with node 3536
ERROR [2015-05-29 22:21:33,987+0200] [pool-9-thread-2] org.gbif.checklistbank.index.NameUsageDocConverter: Error converting usage 146511060 to solr document: NodeId not in CLB yet: 3536
ERROR [2015-05-29 22:21:33,988+0200] [pool-9-thread-2] org.gbif.checklistbank.cli.importer.Importer: Failed to sync Scalpellum Hoek 1907 taxonID '7c161615-3fbd-4e1a-9cbd-d5f9032a4cbf' from dataset 77c6c95b-d745-4cde-b937-89d77a3738f8
ERROR [2015-05-29 22:21:33,988+0200] [pool-9-thread-2] org.gbif.checklistbank.cli.importer.Importer: Aborting sync of dataset 77c6c95b-d745-4cde-b937-89d77a3738f8
ERROR [2015-05-29 22:21:34,019+0200] [pool-9-thread-2] org.gbif.checklistbank.cli.common.RabbitBaseService: Failed to process dataset 77c6c95b-d745-4cde-b937-89d77a3738f8
java.lang.RuntimeException: java.lang.IllegalStateException: NodeId not in CLB yet: 3536
	at org.gbif.checklistbank.index.NameUsageDocConverter.toObject(NameUsageDocConverter.java:133) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.index.NameUsageIndexServiceSolr.insertOrUpdate(NameUsageIndexServiceSolr.java:98) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.importer.DatasetImportServiceCombined.syncUsage(DatasetImportServiceCombined.java:33) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.importer.Importer.syncDataset(Importer.java:96) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.importer.Importer.run(Importer.java:69) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.importer.ImporterService.process(ImporterService.java:57) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.importer.ImporterService.process(ImporterService.java:26) ~[checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.common.RabbitBaseService.handleMessage(RabbitBaseService.java:96) [checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.checklistbank.cli.common.RabbitBaseService.handleMessage(RabbitBaseService.java:27) [checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.common.messaging.MessageConsumer.handleCallback(MessageConsumer.java:101) [checklistbank-cli.jar:2.15-SNAPSHOT]
	at org.gbif.common.messaging.MessageConsumer.handleDelivery(MessageConsumer.java:65) [checklistbank-cli.jar:2.15-SNAPSHOT]
	at com.rabbitmq.client.impl.ConsumerDispatcher$4.run(ConsumerDispatcher.java:121) [checklistbank-cli.jar:2.15-SNAPSHOT]
	at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:76) [checklistbank-cli.jar:2.15-SNAPSHOT]
	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]
Caused by: java.lang.IllegalStateException: NodeId not in CLB yet: 3536
]]>