RFC Title
To be Reviewed By: October 26, 2020
Authors: Dale Emery
Status: Draft Draft | Discussion | Active | Dropped | Superseded
...
Numerous Geode classes resolve relative file paths against the JVM’s working directory—the value of the user.dir
system property. Some classes do this explicitly, by resolving paths against the value of user.dir
. Other classes refer to to the JVM’s working directory implicitlyindirectly, either by using relative paths or by resolving paths against “.”
or “”
.
...
Every Gradle test worker JVM for a given task type (e.g. distributedTest) has the same working directory. When tests run in parallel outside of a container, if multiple tests write to the same file path relative to the JVM’s working directory, those tests all write to the same file. The tests interfere with each other's files, causing swarms of failures.
...
Optionally (TBD): These methods can ensure that the returned path is canonical (as defined by the java.io.File
documentation)absolute and normalized, and that it refers to an existing directory.
...