Page 1 of 1

Re: [Nagios-devel] nagios patches 3 old,

Posted: Wed May 11, 2011 8:04 pm
by Guest
Hi Michael,

Sorry it has taken so long to look at these. Thanks for persisting.

See comments below.

On 30 Apr 2011, at 13:11, Michael Friedrich wrote:

> since there was no further comments on those patches, i did a revision =
after moving to svn. because there isn't any official git mirror yet, =
i'm using http://git.weiss.in-berlin.de/repositories/nagios.git and =
latest HEAD.
>=20
> please refer to the already written threads for further information on =
the patches themselves.
>=20
>=20
> OLD
>=20
> [PATCH] core: fix race condition on flexible downtime commands when =
duration not set or zero
>=20
> =3D> added changelog entry
> 0001-fix-race-condition-on-flexible-downtime-commands-whe.patch

I'm going to push this one back to you to create a suitable test case. =
Use t-tap/test_commands.c and check return code is ERROR.

I'd vary the inputs too to include 0 or blank or nothing

>=20
> [PATCH] sanitize compiler warnings on size_t in common/macros.c
>=20
> =3D> left as it is, re-applied against head.
> 0002-sanitize-compiler-warnings-on-size_t-in-common-macro.patch

Applied, thanks.

>=20
> [PATCH] move thread safe macro function prototypes with suffix _r and =
restore old compatible prototypes again
>=20
> =3D> verified against latest t-tap tests, updated .gitignore
> 0003-move-thread-safe-macro-function-prototypes-with-suff.patch

I don't know enough around this area, but I know Andreas is keen on =
re-entrant functions, so I'll defer to him.

>=20
> =3D=3D=3D=3D=3D
>=20
> NEW
>=20
> fix flexible downtime on service hard state change doesn't get =
triggered/activated
>=20
> recently, there was a change on flexible downtime triggering,
> allowing soft state changes to active a flexible downtime.
>=20
> this change removed the condition on hard_state_change check,
> so it only triggered those from soft state changes but not
> the well known older behavior.
>=20
> the tricky part is, that those 2 vars are not the same on each
> state change, so the replacement fix needs a sanitized "near-by"
> addin, which this patch introduces.
>=20
> this bug has been evaluated and debugged in deep, the fix
> now runs>2 months on productive systems, allowing us to
> trigger flexible downtimes on hard state changes too, next
> to the soft state changes being detected.
>=20
> please check https://dev.icinga.org/issues/1228 for a deeper
> analysis on this.
>=20
>=20
> 0004-fix-flexible-downtime-on-service-hard-state-change-d.patch

This one requires a test case too, due to its complexity. See =
t-tap/test_checks.c which has tests in the handle_async_check_results =
routine.


> please consider them for future releases as it will ease the =
porting-patches-from-icinga-core procedure.

To be honest, that's not my problem. You can make an argument that it is =
better for Nagios users, but an argument to make your life easier for =
future patches is not going to sway me. If you choose to fork, then =
you're accepting a certain cost of maintenance.

Ton






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]