[jcifs] RE: copyTo method
Michael B. Allen
miallen at eskimo.com
Sun Oct 27 15:15:45 EST 2002
On Sat, 26 Oct 2002 21:36:31 -0400
"Sujit Jagdev" <sujit.jagdev at casero.com> wrote:
> Thanks for replying.
> I am using jcifs version 0.7.0b3.
> Sujit
>
> -----Original Message-----
> From: Christopher R. Hertel [mailto:crh at ubiqx.mn.org]
> Sent: Saturday, October 26, 2002 9:35 PM
> To: Sujit Jagdev
> Cc: jcifs at lists.samba.org
> Subject: copyTo method
>
> Which version of jCIFS are you using?
>
> On Sat, Oct 26, 2002 at 09:06:28PM -0400, Sujit Jagdev wrote:
> > Dear All,
> >
> > At certain times, when I use the copyTo method of SmbFile class to
> copy
> > jpegs or mp3, they become corrupted.
> > Anyone else have the same problem.
> > Sujit
I noticed a serious concurrency issue with copyTo yesterday but I'm not
sure if it goes back to 0.7.0b3. How hard is it to reproduce the problem?
The examples/Torture1.java uses copyTo and then traverses every file
comparing things (size for one) and 0.7.0b6 passes right now. Perhaps you
can get that program to trip up more reliably? Are you using multiple
threads to do copies? Are you copying over old files? What are you copying
from/to? Is it across hosts or just shares etc? If hosts, what are the
servers (e.g. Win98 <--> Samba?).
I will have a new jar with the concurrency fix tommarrow (~10pm NYT).
Perhaps you can try that.
--
A program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the potential for it to be applied to tasks that are
conceptually similar and, more important, to tasks that have not
yet been conceived.
More information about the jcifs
mailing list