hhuijser/liferay-portal — pull request #1778 by yuhai (2014-03-07 06:50:08+00:00)
Title: LPS-44751 Missing logic: Add keys.add(key)

The current issue was caused by SF.

The original issue was caused by existing the same data in these fields "groupId, companyId, userId, modifiedDate,resourcePrimKey" of different wikipage versions. n 5.2.8 version, we created "unique index IX_8F32DEC9 on SocialActivity (groupId, userId, createDate, classNameId, classPK, type_, receiverUserId);" When upgrade to 6.2, due to existed the duplicated data indexed in "unique index IX_8F32DEC9" so that the issue occured.

As for the detailed explanation regarding original issue, please refer to the below link:

https://issues.liferay.com/browse/LPP-10304?focusedCommentId=423575&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-423575

As for the current fix logic, in the process of upgrading, I think we modified modifiedDate for duplicate modifiedDate of different wikipage versions.

Please help check it.