I don't think there is an antivirus running on that machine, but there might be 
other things that does something similar.
I doubt that that is the problem though - it has been failing every day since 
May 1st, on just one machine. It is possible, but seems unlikely. We've seen 
similar cases where another Windows won't allow you to rename / remove a file 
saying it is locked, while it is not locked. Except that those times the retry 
did not work.
However, I agree that a retry might be a good idea.

Charl

-----Original Message-----
From: Greg Thomas [mailto:greg.d.tho...@gmail.com]
Sent: Tuesday, May 10, 2016 10:37 AM
To: Log4J Users List
Subject: Re: time based file roller anomoly

On 10 May 2016 at 14:30, Van Jaarsveldt, Charl <cvanjaarsve...@dandh.com> wrote:
> I then tried to shut down the service and rename the file. It gave an error 
> and told me the file was open by the system. I clicked retry, and it worked 
> fine. Very strange.

Do you have some sort of anti-virus running on the machine in question? That 
sounds like typical AV behaviour; it locks the file while it scans for viruses, 
preventing the rename/delete/etc., but by the time you get around to re-trying 
it the AV scan is complete and the retry succeeds.

ISTR that Subversion has/had a built-in retry-loop on Windows platforms to 
avoid this exact problem. Perhaps it's something that
log4j2 needs to implement?

Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



NOTICE: The foregoing message contains confidential information (including
attachments) intended only for the use of the addressee(s) named above. If you
are not the addressee, or the person responsible for delivering it to the
addressee, you are hereby notified that reading, disseminating, distributing,
printing, or copying this message is strictly prohibited. If you have received
this message in error, please notify us by replying to the message immediately.
Please also proceed to delete the original message directly following your
reply.   Not responsible for typographical errors.  Prices
subject to change without notice.  Prices for backordered product are not
guaranteed.   If you do not wish to receive future promotional
announcements, please reply to this email with "Remove" as your subject.







Reply via email to