GeezerVison is showing github.com — bindings: the #9242 and #9274 tripwires become plain tests (PRs #9270 and #9276), a refused GraphBatch close() keeps the wrapper open by tae898 · Pull Request #192 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Conversation
tae898
commented
Oct 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
ArcadeDB ArcadeData#9270 (26.10.1) makes GraphBatch.createVertices, flush, close, and a newEdge that fills the buffer refuse to run inside a transaction the caller opened. The snapshot image CI uses already carries it, so the seven strict xfail tripwires for ArcadeData#9242 XPASS and fail the suite on every PR.
- The seven tripwires are plain tests now, and each also asserts the refusal itself (an
ArcadeDBError caused by IllegalStateException), not only the untouched transaction.
- Bindings fix:
GraphBatch.close() set _closed in a finally block, so a close() the engine refused inside the caller's transaction marked the wrapper closed while the Java batch stayed open. The retry was then a no-op: the pending edges were never written (2 edges where 3 are expected), and db.graph_batch() on that database failed with 'A GraphBatch is already in progress'. close() now leaves the wrapper open when the refusal came from the caller's transaction.
- New tests: the retried
close(), the refusal before any commit attempt (the retry path that rolled the caller's transaction back needs one), and the caller's WAL setting (a new transaction has isUseWAL() true while the batch is open; it was false on 26.9.1).
- Docs (known issues, GraphBatch API page, transactions guide) say what 26.10.1 does and what 26.9.1 and earlier do, and keep the order that works on every version.
Also in this PR: the ArcadeData#9274 tripwires
The snapshot image now carries upstream ArcadeData#9276 as well (a null equality is decided at execution, so a plan cached by a run with a value no longer returns the records without a value for a null parameter), so the five strict xfail tests for ArcadeData#9274 XPASS. Each flip alone fails CI on the other's tripwires, so both are in this PR (it replaces #194). They are plain tests now, and the known-issues entry for ArcadeData#9238 and ArcadeData#9274 and the queries guide say what 26.10.1 does and keep the workaround for 26.9.1 and earlier snapshots. Verified in Java on both JDKs with the byte-identical repro (before 111aa40 [1] [2, 3] [1] [2, 3], after d36b4ca [1] [] [1] []) and through the bindings (35 passed in tests/test_null_index_known_issues.py).
Verification
Through the bindings on the CI jar of upstream 5a90b0f (JDK 25 bundled with the wheel): tests/test_graph_batch.py 28 passed. With the 26.9.1 engine jars the new tests fail where they should (the refusal tests, the retried close, the WAL test), so they distinguish the two engines. The full suite in that hybrid environment fails only in numpy and stale-bridge-jar tests that do not touch GraphBatch; CI runs the real image.
Closes #191.
Closes #193.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…): the ArcadeData#9242 tripwires become plain tests, a refused close() keeps the wrapper open
The engine now raises IllegalStateException from createVertices, flush, close and a newEdge that fills the buffer when the caller has a transaction open, and leaves it untouched. The seven strict xfail tests XPASS on the snapshot image, so they become plain tests that also assert the refusal. A close() the engine refused set the wrapper's closed flag in a finally block while the Java batch stayed open: the retry did nothing, the pending edges were never written, and graph_batch() on the database failed with 'already in progress'. close() now leaves the wrapper open when the refusal came from the caller's transaction. New tests cover the retried close, the refusal before any commit attempt, and the caller's WAL setting. Docs say what 26.10.1 does and what 26.9.1 and earlier do.
Closes #191.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
…Data#9276), known-issues says a null equality matches nothing whichever run planned it
Five strict xfail tests (the statement run with a value, then None, then the value, through an LSM, hash, and ERROR-strategy index, and the DELETE form) pass on the engine with PR ArcadeData#9276, which decides a null equality at execution instead of at planning. They are plain tests now. The known-issues entry for ArcadeData#9238 and ArcadeData#9274 and the queries guide say what 26.10.1 does and keep the workaround for 26.9.1 and earlier snapshots.
Closes #193.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
tae898
changed the title
bindings: GraphBatch refuses a caller's transaction (PR #9270): the #9242 tripwires become plain tests, a refused close() keeps the wrapper open
bindings: the #9242 and #9274 tripwires become plain tests (PRs #9270 and #9276), a refused GraphBatch close() keeps the wrapper open
Oct 5, 2026
This was referenced Oct 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|