Finally, we have found the real cause. We are working on an Oracle RAC database.Alfresco defines the SEQUENCE as follows on install:
CREATESEQUENCE ALFRESCO_OWNER.ALF_NODE_SEQ
MAXVALUE 9999999999999999999999999999
MINVALUE 1
NOCYCLE
CACHE 20
NOORDER;
We've observed behaviours on node-dbid retrieval like this:Session 1 at node-A: nextval -> 101 Session 2 at node-A: nextval -> 102 Session 1 at node-B: nextval -> 121 Session 1 at node-B: nextval -> 122 Session 1 at node-A: nextval -> 103 Session 1 at node-A: nextval -> 104 Which will produce disordered settings (103 seems to be greater than 122).Alfresco Enterprise defines SEQUENCES as ORDER at AlfrescoCreate-RepoTables.sql, so this issue will not be reproduced on a real environment.<CODE>CREATE SEQUENCE alf_node_seq START WITH 1 INCREMENT BY 1 ORDER;</CODE>
Hyland Developer Evangelist