Repository navigation
sdk/python: fix native initialization and status arguments - #7903
Merged
jiefenghuang merged 4 commits intoNov 25, 2026
Merged
Conversation
jfs_init receives credential pointer and count before the client name. Decode the name at index 2 when native initialization returns 0, preserving the existing OSError behavior. Cover a real native rejection in the current SDK suite.
adenzhou1350
requested review from
CaitinChen and
jiefenghuang
as code owners
November 23, 2026 11:44
Signed-off-by: Xucheng Zhou <aden1350@outlook.com>
CaitinChen
reviewed
Nov 24, 2026
Co-authored-by: Caitin <34535727+CaitinChen@users.noreply.github.com>
jiefenghuang
approved these changes
Nov 25, 2026
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.
Fix two Python/native argument mismatches:
args[0]vsargs[2]), raisingAttributeError. Preserve the existing genericOSError, errno and message.status(session=2)passes a boolean and returns session 1. Pass the session ID asuint64, matchingjfs_status.Add one regression per bug to the existing SDK suite and brief usage notes. With real libjfs and private SQLite/file storage, the same four tests give original: 2 passed / 2 failed; fixed: 4 passed, with no errors/skips. Initialization failure and session lookups are not mocked; existing read/write controls pass in both arms.
Validation used Python 3.12 and reused libjfs from
331de6ea. Pinned whitespace checks pass. Official CI has also passed freshlibjfsbuilds and the complete source-treepysdk_test.pysuite on Redis, MySQL and TiKV. All 29 check runs, including the three complete SDK workflows, and the CLA check now pass.AI assisted the audit, patch and tests; native comparisons were independently executed.