jPOS icon indicating copy to clipboard operation
jPOS copied to clipboard

Q2.deployElement doesn't write the destination file atomically, which can make the deploy polling to fail

Open alcarraz opened this issue 2 years ago • 6 comments

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

alcarraz avatar Oct 20 '23 20:10 alcarraz