CAIQUM-8859: AIQUM acquisition via REST fails triggering DuplicateKeyException cascade and REST errors across all clusters
Issue
- AIQUM acquistion via REST with cloud agent enabled fails with DuplicateKeyException
- Performance graphs display flat lines — no new performance data is collected.
- ocumserver.log:
ERROR [oncommand]org.springframework.jms.listener.DefaultMessageListenerContainer#1-1 [c.n.i.s.r.dao.AcquisitionInfoDao] Data Acquistion Save exception: org.springframework.dao.DuplicateKeyException: PreparedStatementCallback; SQL [INSERT INTO opm.acquisition_info (time,success,clusterId,analysisDuration,collectionDuration,msgRcvTime,isHistorical) VALUES (?,?,?,?,?,?,?)]; (conn=41092) Duplicate entry '1763639667703-47135' for key 'acquisition_info.PRIMARY'; nested exception is java.sql.SQLIntegrityConstraintViolationException: (conn=41092) Duplicate entry '1763639667703-47135' for key 'acquisition_info.PRIMARY' [...]
Caused by: java.sql.SQLIntegrityConstraintViolationException: (conn=41092) Duplicate entry '1763639667703-47135' for key 'acquisition_info.PRIMARY' [...]
Caused by: org.mariadb.jdbc.internal.util.exceptions.MariaDbSqlException: Duplicate entry '1763639667703-47135' for key 'acquisition_info.PRIMARY' [...]
Caused by: java.sql.SQLException: Duplicate entry '1763639667703-47135' for key 'acquisition_info.PRIMARY' [...]- Additional DuplicateKeyException errors may appear for other tables including netapp_performance.update_history and multiple sample_* tables
- au.log shows a high rate of HTTP 500 errors from the server
