jPOS
jPOS copied to clipboard
Q2.deployElement doesn't write the destination file atomically, which can make the deploy polling to fail
In Q2.deployElement we create the file directly in the deploy directory. I believe this may be causing what's reported in this stack overflow question.
Maybe we should do the same that is advised, of writing the file in a temporary file, maybe with a .tmp extension, and then move it to the final deploy name?
https://github.com/jpos/jPOS/blob/f0471696043559b51e3b075d22a6944b932df9f8/jpos/src/main/java/org/jpos/q2/Q2.java#L813-L832