Hello Team,
Getting below messages in neo4j.log while loading data from oracle db using jdbc connection -
2020-04-22 11:33:28.166+0000 WARN Retrying operation 0 of 3
2020-04-22 11:33:28.290+0000 WARN Retrying operation 0 of 3
2020-04-22 11:33:28.414+0000 WARN Retrying operation 1 of 3
2020-04-22 11:33:28.540+0000 WARN Retrying operation 2 of 3
2020-04-22 11:33:28.696+0000 WARN Retrying operation 0 of 3
2020-04-22 12:01:20.132+0000 WARN Error during iterate.commit:
2020-04-22 12:01:20.133+0000 WARN 1083 times: org.neo4j.graphdb.TransactionFailureException: Transaction was marked as successful, but unable to commit transaction so rolled back.
2020-04-22 12:01:20.133+0000 WARN 6236 times: java.lang.NullPointerException
Below is the detail snapshot after query execution is completed-
Once data load is completed , We can observed that there are less number of records loaded in label of neo4j as compared to clean data available in oracle db table.
Below is the script used to load data:
CALL apoc.periodic.iterate('
with "jdbc:oracle:thin:sqmread/Qwcbd4#g@10.147.161.47:1522/XCOMSTB2" as url
CALL apoc.load.jdbc(url,"select * from RJILCUSTOMISATIONS.RIL_UTM_L3PORT_PORT_V") YIELD row return row','
MERGE (POmw:L3PORT { L3PORTCONFIGNAME: row.L3PORTCONFIGNAME})
ON CREATE SET
POmw.PHYSICALPORT=row.PHYSICALPORT,
POmw.CREATED_DATE=datetime(),
POmw.MODIFIED_DATE=datetime()'
,{batchSize:1000, iterateList:true, retries:3,parallel:true})
YIELD batches, total , timeTaken , failedOperations , failedBatches , errorMessages , committedOperations , operations
RETURN batches, total , timeTaken , failedOperations , failedBatches , errorMessages , committedOperations , operations;
Regards
Akshat