tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <peter.crowt...@melandra.com>
Subject Re: 6.0.20 - New behavior on conf/Catalina/<host>/<ctxpath>.xml update. Why redeploy?
Date Fri, 16 Oct 2009 08:54:14 GMT
2009/10/1 Mark Thomas <markt@apache.org>

> > 2009/9/30 Peter Crowther <peter.crowther@melandra.com>:
> >> I wonder whether this is a race condition with some text editors.  For
> >> example, if vi operated in the following way:
> >> 1) Rename context.xml to context.xml~
> >> 2) Create context.xml, write contents, close file
> >> ... then a poll of the state of context.xml between 1 and 2 would show
> >> context.xml as missing.
> >
> > A swift perusal of the vim/gvim sources indicates that at least those
> > two editors operate in exactly this way.  There's a small period when
> > the file would appear not to be present if polled.
>
> That could explain what Igor saw although the odds of it happening must
> be pretty small. Could you raise a bug for this in Bugzilla? For the fix
> I'm thinking along the lines of waiting 500ms if the file appears to be
> deleted to check that it doesn't re-appear before continuing.
>

https://issues.apache.org/bugzilla/show_bug.cgi?id=48009

- Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message