When adding ~200 documents to a collection using the Bulk Action Framework, a Concurrent update PostgreSQL error can occasionally occur. See the attached log file.
To reproduce the issue, extract the attached file in a directory and execute script NXP.sh, which performs the following actions:
- it creates 200 documents in a new workspace
- it creates a collection
- it attaches the 200 documents to the collection
- it deletes the workspace if requested at the end
During my tests, I noticed the error happens more often in LTS 2021 than in LTS 2019.