Skip to content

ManagedFile is platform dependent #24622

Closed
@dmatej

Description

@dmatej

After we made a quick fix of the FileLockTest in #24606 (original test just printed errors to the stdout, but did not fail), it made visible problem in ManagedFile class - it is platform dependent and the file locking mechanism generally doesn't work.

FileLockTest passes on Linux systems, now it passes also on Windows, but we had to duplicate the test so now it has different results on Windows and Linux. And now @arjantijms found that there's another failure on Mac.

FileLockTest.lockAndRenameTest:364 File renaming blocked ==> expected: <true> but was: <false>

~/which_java.sh 
/dev/stdin: Mach-O 64-bit executable arm64

uname -a
Darwin Arjans-MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

Then we should to this:

  • Investigate if we really need the ManagedFile class and classes around that
  • Investigate if it can be fixed so the mechanism would work on all operating systems.
  • Make the decision and do the work required.

See also #24623 , where we tried to avoid another test failure on one operating system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions