GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bindings: GraphBatch and a caller's transaction (#9242), vector search during compaction (#9241): docs, known issues, tripwires by tae898 · Pull Request #175 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
ConversationCloses #174. Two engine issues filed upstream on 2026-10-04 reach Python users. This PR documents both, adds a known-issues entry for each, corrects a wrapper comment that said the opposite of what happens, and adds strict ArcadeData#9242. Changes for ArcadeData#9242. The comment in Tests for ArcadeData#9242. Why document rather than refuse or warn: the docs never promised that a caller's transaction is kept, the issue lists three acceptable fixes (keep it open, refuse, or document) and upstream has not chosen yet, and the bindings raise no Python warnings anywhere. A caller who commits after the call already gets an error; the silent cases, a rollback that undoes nothing and the retry that drops the caller's writes, are what the docs and the known-issues entry cover. ArcadeData#9241. While Checks: the full suite, run as CI runs it ( 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…, vector search during COMPACT INDEX (ArcadeData#9241) ArcadeData#9242: GraphBatch.create_vertices(), flush() and close() commit a transaction the caller opened, and so do new_edge() and new_edges() when the buffer fills, and leaving a `with db.graph_batch()` block. Reproduced through the bindings with identical results on 26.9.1, the 2026-10-03 snapshot (b22b5e9) and upstream main 1addb51: after begin(), a saved document and create_vertices(), no transaction is active, rollback() leaves the document in place (also after a reopen), and commit() or the end of `with db.transaction():` raises "Transaction not begun" after the document has been committed, with the batch's WAL setting (0 WAL bytes against 4,133). On a retryable failure of the first vertex commit the engine rolls back the caller's transaction, commits only the vertices and returns normally: the caller's document is gone. - graph_batch.py: the create_vertices comment said a caller's transaction "is theirs and is left alone", true only of the failure path; it now says what the engine does. Docstrings of the class, create_vertices, flush and close say they commit the open transaction. No behavior change: the docs never promised to keep a caller's transaction, and upstream may keep it, refuse, or document. - docs/api/graph_batch.md: a Transactions section (call the batch outside your own transactions; create_vertex() and new_vertex() are the exceptions; while a batch is open, every commit on the thread uses its WAL setting, 0 bytes against 4,135 before its first call), with pointers from create_vertices, new_vertex, flush and close. docs/guide/core/transactions.md: one sentence. - known-issues.md: an entry with the workaround (commit your own writes first, call the batch outside any transaction of yours). - tests: test_graph_batch_outside_the_callers_transactions checks the workaround, including a retried vertex commit through the engine's test hook (asserted to fire on attempts 1 and 2). Three strict xfail tripwires (raises=AssertionError, 7 cases: create_vertices by count, JSON bulk and property matrix; flush, a full buffer and close; the retry path) assert what a fix gives: the caller's transaction is still active after the call, or the call is refused, and the caller's rollback undoes the caller's write. Each case fails on the reported symptom on both b22b5e9 and 1addb51, and passes against a stub batch that leaves the transaction alone or refuses. ArcadeData#9241: while COMPACT INDEX runs on an LSM_VECTOR index, a search with a record's own vector misses the records added since the last graph build, on snapshots from upstream PR ArcadeData#9132 (2026-10-03) on. Through the bindings on 1addb51, 20,000 vectors plus 300 added one per transaction: up to 300 of 300 missed in 47 of 48 search passes during an 8.4 s compaction, none before or after; the same run on 26.9.1 and b22b5e9 missed nothing. Known-issues entry (compact while nothing searches; setting arcadedb.vectorIndex.compactionBloatFactor to 0 stops the engine's own compactions, which run the same code) and a pointer from the delta-buffer paragraph of docs/api/vector.md. No tripwire: the miss needs a compaction of seconds and searches inside it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi …ArcadeData#9252) Upstream PR ArcadeData#9252 (merge 9c329ca, in main 3543960) fixes ArcadeData#9241, the regression from ArcadeData#9132: a vector search no longer misses the records added since the last graph build while COMPACT INDEX rebuilds an LSM_VECTOR index. In Java on main 3543960, on JDK 21 and 25, no search pass missed a record during a compaction of 45 to 52 s, where 9fbef12 missed 495 to 500 of the 500 most recent records in 134 to 147 of 268 to 283 passes. known-issues.md: the entry says "Fixed in 26.10.1 (PR ArcadeData#9252, verified on upstream main 3543960)", and that only the 26.10.1 snapshots between ArcadeData#9132 and ArcadeData#9252 were affected. Its workaround (do not search during COMPACT INDEX; set compactionBloatFactor to 0) is kept for those snapshots. The exception in docs/api/vector.md says the same. The entry has no test, as before: the miss needs a compaction of seconds and searches that land inside it. The ArcadeData#9242 entry and its tests (GraphBatch commits the caller's transaction) are not touched: the issue is open, and its strict xfail tests stay. Checked: with the engine jars of upstream main 3543960 under this branch's bindings source, the full suite as CI runs it (pytest tests/, bundled JRE, the wheel's jar set) gives 653 passed, 3 skipped, 7 xfailed (the ArcadeData#9242 cases), 0 failed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
tae898
force-pushed
the
bindings-graphbatch-caller-tx
branch
from
3184249 to
38920a7
Compare
Uh oh!
There was an error while loading. Please reload this page.
tae898
added a commit
that referenced
this pull request
… budget (#260) (#262) ArcadeDB 26.10.1's arcadedb.queryMaxHeapRAM (default half the heap) refuses the TPC-H SF10 top_parts GROUP BY (about 2M groups) on both ArcadeDB arms of l1tpc tpch10 olap, which the September snapshot completed (upstream ArcadeData#9402, fix PR ArcadeData#9415 targets 26.11.1). DECISIONS #175: BENCH_ARCADE_QUERY_MAX_HEAP_RAM_MB (empty = off) adds -Darcadedb.queryMaxHeapRAM=N to the embedded JVM and the served arm's JAVA_OPTS, reads the value back from the engine onto the row (arcadedb_query_max_heap_ram_mb plus its source), and registers it in overrides.py with its disclosure sentence, the same escape-hatch pattern as queryMaxHeapElementsAllowedPerOp and the HTTP body limit. Unset, BACKENDS and the JVM args are unchanged (asserted in tests), so the running chain is unaffected. Verified on the laptop: suite 639 passed, 19 skipped; l1tpc tpch1 olap smoke at 6144 MB, both arms ok, the embedded row reads the value from GlobalConfiguration and the served row reads it over HTTP from the matched arcadedb-c25:d36b4ca3a server. Claude-Session: https://claude.ai/code/session_01WQegLio3qLR2dE6gBFhRK6 Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. bindings: GraphBatch commits the caller's transaction (upstream #9242); vector search during compaction (upstream #9241)Uh oh!
There was an error while loading. Please reload this page. 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. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |