shikhar/sshj — Issue #56: Multithreading sftp uploading leads to incorrect DEBUG log messages
Author: Eugene932
Created: 2012-01-27 13:53:52+00:00
State: open

Hi Shikhar,

I use spring scheduler (based on quartz when tasks are executed in different threads).
So each task uploads a different file but to the same host and folder.
For example:
task1 ---------------------------------------------->
taks2 -------------------------------------------->
task3 ------------------------------------>
So as you can see when task1 is in the middle of uploading, task2 starts to upload another file to the same host and even to the same folder. It seems that all files are transfered successfully but I get strange debug logs like the below. 182% transfered! For more information I can send you full logs. I don't see how to attach files here.

DEBUG [LoggingTransferListener] transferred 182% of `XXXXXXXX.txt`
[SFTPEngine] Sending Request{2666;WRITE}
DEBUG [Window$Remote] Consuming by 32768 down to 65536
DEBUG [Promise] Awaiting <>