isudana commented on code in PR #117:
URL: https://github.com/apache/synapse/pull/117#discussion_r4310195195
##########
modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSUtils.java:
##########
@@ -128,10 +144,15 @@ public synchronized static boolean
acquireLock(FileSystemManager fsManager, File
}
FileObject lockObject = fsManager.resolveFile(fullPath + ".lock");
if (lockObject.exists()) {
- log.debug("There seems to be an external lock, aborting the
processing of the file "
+ long lockAge = getLockAge(lockObject);
+ log.warn("There seems to be an external lock, aborting the
processing of the file "
+ maskURLPassword(fo.getName().getURI())
+ ". This could possibly be due to some other party
already "
- + "processing this file or the file is still being
uploaded");
+ + "processing this file or the file is still being
uploaded"
+ + (lockAge >= 0 ? ". The lock file is " + lockAge +
"ms old" : ""));
+ if (paramDTO != null && paramDTO.isAutoLockRelease()) {
Review Comment:
Shall we print a debug log when releasing the lock?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]