Fixed ALF-10280: Slow to report « Duplicate entry » in database.

- DuplicateChildNodeNameException implements DoNotRetryException
 - Must be merged back to V3.4


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30468 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-09-13 12:40:21 +00:00
parent f0014de603
commit e40265f1a1
4 changed files with 83 additions and 3 deletions

View File

@@ -19,16 +19,20 @@
package org.alfresco.service.cmr.repository;
import org.springframework.extensions.surf.util.I18NUtil;
import org.alfresco.repo.transaction.DoNotRetryException;
import org.alfresco.service.namespace.QName;
/**
* Thrown when a child node <b>cm:name</b> property violates the data dictionary
* <b>duplicate</b> child association constraint.
* <p/>
* Note that this exception may be triggered by database constraints but must
* still NOT trigger transaction retries.
*
* @author Derek Hulley
*/
public class DuplicateChildNodeNameException extends RuntimeException
public class DuplicateChildNodeNameException extends RuntimeException implements DoNotRetryException
{
private static final long serialVersionUID = 5143099335847200453L;