Integrated: 8337283: configure.log is truncated when build dir is on different filesystem

Aleksey Shipilev shade at openjdk.org
Mon Aug 5 14:07:36 UTC 2024


On Fri, 26 Jul 2024 16:21:33 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> I noticed that `build/$confname/configure.log` was truncated on some of my build nodes. Turns out, we are moving configure.log from tree root to that place a bit prematurely.
> 
> We move `configure.log` here:
> https://github.com/openjdk/jdk/blob/4f194f10a1481cdc9df4e6338f6cabd07a34c84c/make/autoconf/basic.m4#L594-L618
> 
> ...and that is called here:
> https://github.com/openjdk/jdk/blob/4bcb8f04ed3623da7c84dda28017f473cbc97e53/make/autoconf/configure.ac#L314-L321
> 
> Or, before we print configuration summary.
> 
> Now, this works most of the time by accident: when root dir and build dir are on the same filesystem, the file move does not interfere with inodes/FDs, and we are still able to write to the same file _after_ we moved. But if build dir is on _another_ filesystem, then we miss writing the configuration summary when file moves away.
> 
> Apparently, my systems fall into that trap, since build dir is on RAM disk.

This pull request has now been integrated.

Changeset: 7e925d72
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7e925d727f716e5c366b0d85b9c0de24efe43103
Stats:     4 lines in 1 file changed: 3 ins; 1 del; 0 mod

8337283: configure.log is truncated when build dir is on different filesystem

Reviewed-by: phh, stuefe, clanger, ihse

-------------

PR: https://git.openjdk.org/jdk/pull/20356


More information about the build-dev mailing list