My saga continues. I turned on INFO message output on my mysql 5.18.1 install and I could not reproduce the duplicate key error. I then went ahead and setup a psql version of dcm4chee-arc 5.18.1 and I was able to catch an instance of the duplicate key error. See output below. I then went through some performance testing and got the psql server working as optimally as I could. I then proceeded to import my dcm4chee-arc 2 data archive but could not reproduce another duplicate key error. Either by running the dcm4chee-arc 5.18.1 psql setup with or without the INFO messages being dumped to the log file. One does get a factor of ~2 improvement in data importation rates when you turn off the INFO messages. I was achieving about 200 objects/second importation rate. I did turn off the digest algorithm (set it to -).
I'm going to run a few more tests before I start the official 3.5T migration of my dicom archive, and I'll post any more glitches, but I'm getting the warm fuzzies right now that the data migration should go OK.
2019-09-08 09:13:37,120 INFO [org.dcm4chee.arc.store.impl.StoreServiceEJB] (default task-132) 127....@127.0.0.1->MIPPACS: Create Location[pk=2309, systemID=fs1, path=2018/1/12/14/BE638A92/C3D6A535\
/0B3C2EA3, tsuid=1.2.840.10008.1.2.1, size=8192, status=OK, objectType=DICOM_FILE]
2019-09-08 09:13:37,121 INFO [org.dcm4chee.arc.store.impl.StoreServiceEJB] (default task-131) 127....@127.0.0.1->MIPPACS: Create Series[pk=47, uid=1.2.840.113619.2.25.4.
2147483647.1515785070.701, \
no=13, mod=PT]
2019-09-08 09:13:37,121 INFO [org.dcm4chee.arc.store.impl.StoreServiceEJB] (default task-131) 127....@127.0.0.1->MIPPACS: Create Instance[pk=2310, uid=1.2.840.113619.2.5.4250306284.85621.151578505\
3.261, class=1.2.840.10008.5.1.4.1.1.128, no=34]
2019-09-08 09:13:37,121 INFO [org.dcm4chee.arc.store.impl.StoreServiceEJB] (default task-131) 127....@127.0.0.1->MIPPACS: Create Location[pk=2310, systemID=fs1, path=2018/1/12/14/BE638A92/C1BF27F0\
/0B1FF8D2, tsuid=1.2.840.10008.1.2.1, size=8192, status=OK, objectType=DICOM_FILE]
2019-09-08 09:13:37,128 INFO [org.dcm4chee.arc.stow.ImportStorageRS] (default task-133) Process POST /dcm4chee-arc/aets/MIPPACS/rs/instances/storage/fs1?null from
nu...@127.0.0.12019-09-08 09:13:37,156 INFO [org.dcm4chee.arc.stow.ImportStorageRS] (default task-134) Process POST /dcm4chee-arc/aets/MIPPACS/rs/instances/storage/fs1?null from
nu...@127.0.0.12019-09-08 09:13:37,195 INFO [org.dcm4chee.arc.stow.ImportStorageRS] (default task-135) Process POST /dcm4chee-arc/aets/MIPPACS/rs/instances/storage/fs1?null from
nu...@127.0.0.12019-09-08 09:13:37,237 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-105) 127....@127.0.0.1->MIPPACS: Updated DB in 199 ms
2019-09-08 09:13:37,237 INFO [org.dcm4chee.arc.stow.ImportStorageRS] (default task-136) Process POST /dcm4chee-arc/aets/MIPPACS/rs/instances/storage/fs1?null from
nu...@127.0.0.12019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-100) 127....@127.0.0.1->MIPPACS: Updated DB in 176 ms
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-97) 127....@127.0.0.1->MIPPACS: Updated DB in 162 ms
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-115) 127....@127.0.0.1->MIPPACS: Updated DB in 169 ms
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-132) 127....@127.0.0.1->MIPPACS: Updated DB in 144 ms
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-101) 127....@127.0.0.1->MIPPACS: Updated DB in 262 ms
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-112) 127....@127.0.0.1->MIPPACS: Updated DB in 158 ms
2019-09-08 09:13:37,245 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (default task-131) SQL Error: 0, SQLState: 23505
2019-09-08 09:13:37,246 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (default task-131) ERROR: duplicate key value violates unique constraint "uk_pt5qn20x278wb1f7p2t3lcxv"
Detail: Key (study_iuid)=(1.2.840.113619.2.25.4.2147483647.1515785051.612) already exists.2019-09-08 09:13:37,246 INFO [org.dcm4chee.arc.export.mgt.impl.ExportManagerEJB] (default task-126) Create ExportTask[pk=47, exporterID=CalculateQueryAttributes, studyUID=1.2.840.113704.7.1.0.212210\
8768171.1516810556.0, seriesUID=*, objectUID=*]
2019-09-08 09:13:37,246 INFO [org.dcm4chee.arc.export.mgt.impl.ExportManagerEJB] (default task-127) Create ExportTask[pk=48, exporterID=CalculateQueryAttributes, studyUID=1.2.840.113704.7.1.0.212210\
8768171.1516810556.0, seriesUID=*, objectUID=*]
2019-09-08 09:13:37,246 INFO [org.dcm4chee.arc.export.mgt.impl.ExportManagerEJB] (default task-108) Create ExportTask[pk=49, exporterID=CalculateQueryAttributes, studyUID=1.2.826.0.1.3680043.2.1237.\
680599246919.20171030214526.1.398, seriesUID=*, objectUID=*]
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-98) 127....@127.0.0.1->MIPPACS: Updated DB in 169 ms
2019-09-08 09:13:37,246 ERROR [org.hibernate.internal.ExceptionMapperStandardImpl] (default task-131) HHH000346: Error during managed flush [org.hibernate.exception.ConstraintViolationException: coul\
d not execute statement]
2019-09-08 09:13:37,245 INFO [org.dcm4chee.arc.store.impl.StoreServiceImpl] (default task-119) 127....@127.0.0.1->MIPPACS: Updated DB in 169 ms
2019-09-08 09:13:37,247 WARN [com.arjuna.ats.arjuna] (default task-131) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffff0a8584c7:49b15d8a:5d74fd4d:8778, o\
rg.wildfly.transaction.client.AbstractTransaction$AssociatingSynchronization@6850d577 >: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execut\
e statement at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)