Community

Multiple JBPM4_VARIABLE records pointing to same LOB_ and different EXECUTIONID_

reply from Jorge Ferreira in jBPM - View the full discussion

After looking into jBPM source code I get a concrete impression that there should not be two jbpm4_variable (Variable and class hierarchy) that share the same Lob. The Lob constructors take care (because generateDbId is true) of assigning a new id to the record.

 

My best guess is something with the DatabaseDbIdGenerator but looking into the source code I have found nothing strange. More, the LOB_ that are duplicated as FK in jbpm4_variable table seem unrelated:

 

1970117,
1970123,
1970218,
2260229,
2260232

 

So a guess on edge cases, boundaries of block size, is off by now. I put a little test with two JVM for concurrency but the block generation is done inside a transaction and the behavior seems correct. One JVM fails but it is on a cycle of attempts and it peeks the next available block.

 

Any ideas from the people that coded jBPM, maybe I am missing something.

 

-- Jorge

Reply to this message by going to Community

Start a new discussion in jBPM at Community