Repository navigation
Native get_stats returns only counters, and three tests fit engine 26.12.1 - #520
Merged
Merged
Conversation
….12.1 The weekly snapshot run failed four tests on 26.12.1-SNAPSHOT. get_stats (native): engine 26.12.1 adds a `metadata` map to the `schema:index:<name>` row (https://redirect.github.com/ArcadeData/arcadedb/pull/13097). The native wheel returned every column outside a fixed list, so the map showed up as a counter. It now keeps integer columns outside that list, which matches the map of longs that the JVM wheel returns, and a later descriptive column of another type is left out too. Facets: the test called `rs.facets()`, but `facets` is a property. The branch only runs on an engine with FACETS, so it never ran on 26.11.1. Async callback ids: from 26.12.1 a transaction that read a page it had written is refused when another transaction committed to that page (https://redirect.github.com/ArcadeData/arcadedb/pull/11671). With several workers the test's scan_type shares a worker batch with a create_record, which is not run again, so the callbacks got ConflictError. The test is about callback ids, so it uses one worker. A new test pins the engine rule on both engines, and the async executor page says what a caller sees.
tae898
force-pushed
the
fix/516-snapshot-engine
branch
from
November 27, 2026 11:46
87464b5 to
c1114d4
Compare
This was referenced Nov 27, 2026
Merged
Open
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.
What does this PR do?
It fixes the four tests that fail when the native build links upstream's
26.12.1-SNAPSHOTengine (run 45981445735). Two of the failures are one bug in the bindings, and the other two are problems in the tests.test_vector.py::test_lsm_index_statsandtest_vector_index_introspection.py::test_values_are_plain_scalars...metadatamap to theschema:index:<name>row (upstream #13097). The nativeget_stats()returned it as if it were a counter.get_stats()keeps only the integer counters. The introspection test is stricter, and a new test covers the filter.test_native_count.py::test_count_then_facets_of_a_facets_query_returns_the_facetsrs.facets(), butfacetsis a property. This branch runs only on an engine withFACETS, so it never ran on 26.11.1.test_native_async_callbacks.py::test_wait_completion_gives_back_the_ids_of_every_kind_of_callscan_typecan share its transaction with acreate_record, which is not run again.test_concurrency.pypins the engine rule on both engines.Verification
The weekly snapshot workflow (native build,
linux-x86_64, engine26.12.1-SNAPSHOT), dispatched twice on 2026-11-27:mainatadfdbbf87464b5The branch was then rebased onto
63ced32(#519, CI only, no conflict). The pull request checks on the rebased head pass: the native shards on engine26.11.1(4443 passed, 0 failed) and the JVM shards on a26.12.1-SNAPSHOTimage (4385 passed, 0 failed).The JVM package on the same engine version: the push run on
mainafter #508 (run 45982508091, image26.12.1-SNAPSHOT) was green, with 4360 passed and 0 failed onlinux/amd64, Python 3.12. Itsget_stats()reads the engine's counters directly, so the new column does not reach it.For the async test, the new
test_concurrency.pycase shows the engine rule itself (refused on26.12.1-SNAPSHOT, merged on26.11.1). That this rule is what failed the async test is my reading of the engine code: the test failed in both snapshot runs onmainand passed with one worker.Related issues
Closes #516
Docs
The async executor page now says what a caller sees at parallel level 2 or higher, including the new rule of engine 26.12.1.
get_stats()is back to what its docs already say, counters only.Checklist
black,isort, andruff-checkhooks pass on the changed files, and Bandit is clean