Repository navigation
[release-8.0] Restore blob granule compatibility stubs for old multiversion clients - #14239
Merged
spraza merged 9 commits intoOct 14, 2026
Conversation
Contributor
|
Here's some suggestions from local llm @mengxu-oai
Thanks |
mengxu-oai
commented
Oct 7, 2026
mengxu-oai
marked this pull request as ready for review
October 7, 2026 22:29
Contributor
Author
|
@saintstack ptal. It should have addressed the comment! Thanks for the improvement suggestions! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Collaborator
|
@mengxu-oai can you sync this PR with #14238? |
Sync PR apple#14239 release notes with merged PR apple#14238
Contributor
Author
@spraza thanks for the reminder! just done! ptal. |
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
ploxiln
approved these changes
Oct 13, 2026
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
Contributor
Result of foundationdb-pr-macos on macOS 14.x
|
spraza
approved these changes
Oct 14, 2026
akshay-v-kaushik
pushed a commit
that referenced
this pull request
Nov 2, 2026
… the loader The upgrade tests always load the current build's libfdb_c as the tester's primary library, so the multi-version client code that loads the external libraries is always the newest. An application still on an older release runs that release's loader against the newer library, which no test covered. 8.0.0 shipped without blob granule exports that 7.x loaders require, and 7.x applications failed in fdb_setup_network once 8.0.0 was added as an external client (#14227, #14239). Add --primary-version to upgrade_test.py: the shim-linked tester then loads the given release's libfdb_c as its primary library, with the API version capped at that release's. Register copies of the upgrade tests that use the previous release as the primary library.
saintstack
pushed a commit
that referenced
this pull request
Nov 4, 2026
… the loader (#14417) The upgrade tests always load the current build's libfdb_c as the tester's primary library, so the multi-version client code that loads the external libraries is always the newest. An application still on an older release runs that release's loader against the newer library, which no test covered. 8.0.0 shipped without blob granule exports that 7.x loaders require, and 7.x applications failed in fdb_setup_network once 8.0.0 was added as an external client (#14227, #14239). Add --primary-version to upgrade_test.py: the shim-linked tester then loads the given release's libfdb_c as its primary library, with the API version capped at that release's. Register copies of the upgrade tests that use the previous release as the primary library. (cherry picked from commit e4da558)
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.
Problem
Older multiversion clients resolve blob granule C functions during network setup. FoundationDB 8.0 removed those exports, so setup can fail even when the application only performs ordinary reads and writes.
This is a backport of PR #14238 to
release-8.0.Solution
Restore the 22 blob granule C exports required by the inspected 7.2, 7.3, and 7.4 multiversion loaders. Symbol lookup succeeds, but invoking any restored function prints its name and immediately aborts. The removed feature remains unsupported.
The backport includes the focused export and invocation tests, plus startup and read/write tests with older primary clients. The read/write smoke uses
onError(), fresh transactions, and bounded transaction timeouts. It passes only if a successful commit and fresh readback finish within 10 seconds.Testing
Passed on Linux x86_64 with Clang and warnings treated as errors:
fdb_c_setup_tests: 1 test case and 6 assertions passed.fdb_c_blob_granule_fatal_exportsafter selecting API 730: all 22 exports were present, and every isolated invocation produced the expected diagnostic andSIGABRT.fdb_c_shim_library_testssuite against the built 8.0.1 server. The new 7.2.9, 7.3.79, and 7.4.8 primary-client cases all ran and passed network setup, a checked commit, and fresh readback with the backport external client and local database use disabled. The old libraries matched their public release checksums.MixedApiWorkloadMultiThr.tomlupgrade workload through the shim with an unmodified 7.3.79 primary, API 730, and three local server processes. The same tester process passed progress checks before and after the real server upgrade from 7.3.79 to 8.0.1, then exited cleanly. Client traces recorded selection of the old and backport external libraries.The upgrade exercise checks mixed-workload progress across the restart. It does not validate every language binding or removed feature. Direct compatibility of an older binding with 8.0 as the primary library requires separate validation.