We are currently having an issue in one of our processes. In troubleshooting and reading the log, we come to a strange situation.
We have two branches in the process, in the first branch we call a subprocess that might be doing things that take some time. The log file implies that actions from the second branch got executed prior to the completion of the first branch.
My question is this:
- Is it possible that the messages inside the log file got mixed up or
- is it an issue with the process and the branches, so that the second branch does not properly wait for the conclusion of the first branch and starts to execute early.
To be specific, in the first branch we are writing a file to a local directory (tmp). This file could be large, it could take time to write it. The second branch kicks in trying to read that very file before the write is concluded (that is how the log implies).
Any help is much appreciated.