You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Initiate the file with a .tmp extension and subsequently rename it. However, potential challenges could arise with Windows' move or when deploying to a FUSE file system.
Implement an internal Semaphore, given this is a Q2 method. While this seems more streamlined initially, it could pose issues if multiple Q2s utilize the same deploy. This scenario, albeit unusual, is still possible.
Both methods come with their respective advantages and limitations.
In
Q2.deployElement
we create the file directly in thedeploy
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?jPOS/jpos/src/main/java/org/jpos/q2/Q2.java
Lines 813 to 832 in f047169
The text was updated successfully, but these errors were encountered: