core icon indicating copy to clipboard operation
core copied to clipboard

Constraint violation when executing Task04115LowercaseIdentifierUrls

Open dsilvam opened this issue 9 years ago • 5 comments

This is because of duplicated records after applying the lower.

Error in the log: java.sql.BatchUpdateException: Batch entry 28 UPDATE identifier SET parentpath = ‘/design/images/template/‘, assetname = ‘logo(old).png’ WHERE id = ‘e18e86db-060d-4480-80f2-aa1ec6857155’ was aborted. Call getNextException to see the cause.

Real error: [2017-05-18 17:27:20] [23505] ERROR: duplicate key value violates unique constraint “identifieruniquekey” [2017-05-18 17:27:20] Detail: Key (parentpath, assetname, host_inode)=(/design/images/template/, logo(old).png, c355915b-94cb-4fb2-8ffb-a0a0576fadb1) already exists.

dsilvam avatar May 22 '17 15:05 dsilvam

PR: https://github.com/dotCMS/core/pull/11670

oarrietadotcms avatar May 22 '17 20:05 oarrietadotcms

Records on identifer: 1.771.853 Records to lower/update: 246.074 Failed records: 1.803 Time: 10:46:42.422 -> 10:50:15:961

oarrietadotcms avatar May 22 '17 20:05 oarrietadotcms

PR release 4.1.0: https://github.com/dotCMS/core/pull/11676

oarrietadotcms avatar May 23 '17 13:05 oarrietadotcms

Note to QA: test against Postgres DB dump.

oarrietadotcms avatar May 23 '17 13:05 oarrietadotcms

Passed QA. Tested on upgraded from dotcms 3.6 to 4.1.0 against client's DB in postgres. No isssues with task04115 registered on logs: https://gist.github.com/shaydotcms/932742096246aa18c7e58add170464b8

(Dotcms 4.1.0 distribution generated from realease-4.1 after commit 7bfb5dc5c7c460fcd0628978cb4468aaf7283d67 Mac OS 10.10 / Postgres 9.3.5 / Tomcat 8 / Java 8)

shaydotcms avatar May 26 '17 21:05 shaydotcms