Duplicate Lead ID in multi-node
Hi All, we are generating a unique ID for Lead ID when running a campaign on Pega marketing with system random like this function:
com.pega.pegarules.pub.util.Random rnd = ThreadContainer.get().getSystemRandom(); String AB = "0123456789"; int charLen = 9; StringBuilder sb = new StringBuilder(charLen); for(int i = 0; i < charLen; i++){ sb.append(AB.charAt(rnd.nextInt(AB.length()))); } String uniqueID = sb.toString(); return uniqueID; |
Lead ID is duplicated only in the PROD environment. In the lower environment, it does not occur and the difference between them is that only the PROD environment has a multi-node. We tried running the activity with 5000 iterations in both the development and UAT environments and converted the result to a CSV file. The results did not show a duplicate Lead ID, indicating that we assume a duplicate Lead ID may occur when running on a multi-node. Does anyone face this issue? Any ideas on what else might be the cause and fix for this? Thanks for replying.
Thanks, Anggun