[jcifs] SmbFile.copyTo - how reliable under heavy load

Volker Schmelich volker at quadnova.com
Thu Jun 2 11:17:24 MDT 2011


Hi there,

We are using the latest jCIFS on Windows within two applications. Both
applications are multithreaded and do work which includes a lot of file
copy operations with jCIFS.

So for example, app 1 has 5 worker threads which in turn copy let's say
50 files on average from one share to another share on the same box.
App2 also has 5 worker threads and is doing the same, basically waiting
for app1 to signal done, then pick up the files and copy from a share to
another. This is a development scenario - in production both apps will
run on different servers.

Under this heavy load, some copied files do not appear in the target.
There is no SmbException thrown. It seems like the copyTo is called,
does not work, throws no Exception to indicate it did not work.

When I wrap the copyTo call in a retry loop and check the target file
existence, the copyTo succeeds after the first or second retry.

So my question is: Is it possible, that jCIFS (or specifically the copy
thread) dies but no SmbException is thrown? Maybe because the thread
died?

Regards,
Volker


More information about the jCIFS mailing list