Repository navigation
drop(): a drop that raises because a file stayed leaves a closed handle - #567
Merged
Merged
Conversation
…le (#554) Since engine 26.12.1 (arcadedb#13609) LocalDatabase.drop() closes the database, deletes the files and then throws when an entry is left. The JVM build set its closed flag only after a drop that returned; the native build kept the closed database in its handle registry. Both now treat the handle as closed, which is what how-to/databases-and-queries.adoc already says. The regression test makes the drop fail with chmod 0o500 (not collected on Windows or as root) and xfails on an engine before 26.12.1, where drop only logs. Verified on the JVM build against the 26.12.1 snapshot; the native library change is covered by the native CI, whose engine still links 26.11.1 until the dev-engine bump.
…since a skip or xfail fails the parity gate (#554) On engine 26.11.1 drop() returns after logging, so the test does not expect a raise there; the handle must be closed either way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #554
After
db.drop()raised because the engine could not delete every file (engine 26.12.1, upstream PR 13609 closes the database before it throws), the handle still counted as open: the JVM build set_closedonly after a drop that returned, and the native library kept the closed database in its handle registry. Both now treat the handle as closed, which is whathow-to/databases-and-queries.adocalready promises, so no docs change.tests/test_drop_failure.pyon the JVM build against the 26.12.1 snapshot (engine26.12.1.dev0), with the fixcore.pyofmainThe test is not collected on Windows or as root (chmod cannot block a delete there) and xfails on an engine before 26.12.1, so the native legs, which still link 26.11.1, xfail until the dev-engine bump. The Java change in
ArcadeNative.javais not run locally: the native image is built by the native CI of this PR.