[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shellcommands not executing - lock problem?
From: |
Mark . Burgess |
Subject: |
Re: shellcommands not executing - lock problem? |
Date: |
Wed, 25 Feb 2004 17:26:03 +0100 (MET) |
Hash is a good idea. I'll give it some thought.
M
On 25 Feb, Pete Ehlke wrote:
> On Tue Feb 24, 2004 at 12:10:25 -0800, Eric Sorenson wrote:
>>
>>This would be lots better; this problem has come up several times and
>>is always a frustrating stumper. 50 characters is clearly not long enough
>>for uniqueness when variable expansion is taken into account. Doubling
>>it would help somewhat but it would just be postponing the problem. Note
>>this is not just true for shellcommands: but copy: also
>>
> Yup. Eric and I have talked at some length about this off-list. There's
> really no good way to make locking work reliably using the current
> algorithm: absolute path names of, say, 1024 characters are pathological
> and gross, but they're certainly legal. And in my environment, I have a
> fair number of copy: items whose absolute path names do not diverge
> until well after 100 characters.
>
> The real solution is to modify the locking scheme to generate a hash of
> some sort from the variable name, but that's a somewhat less than
> trivial modification. It's on my list of round tuit items, but given my
> current schedule and work responsibilities, I doubt that I'll be able to
> make any significant progress on a patch for several months.
>
> -Pete
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- shellcommands not executing - lock problem?, Kurt Lieber, 2004/02/24
- Re: shellcommands not executing - lock problem?, Mark . Burgess, 2004/02/24
- Re: shellcommands not executing - lock problem?, Kurt Lieber, 2004/02/24
- Re: shellcommands not executing - lock problem?, Russell Adams, 2004/02/24
- Re: shellcommands not executing - lock problem?, Chip Seraphine, 2004/02/24
- Re: shellcommands not executing - lock problem?, Eric Sorenson, 2004/02/24
- Re: shellcommands not executing - lock problem?, Pete Ehlke, 2004/02/25
- Re: shellcommands not executing - lock problem?,
Mark . Burgess <=
- Re: shellcommands not executing - lock problem?, Adrian Phillips, 2004/02/25
Re: shellcommands not executing - lock problem?, Russell Adams, 2004/02/24