MIRS571 opened a new pull request, #1012:
URL: https://github.com/apache/burr/pull/1012
Passing `redis_client_kwargs={"decode_responses": True}` currently lets the
Redis persisters save a checkpoint, but loading it raises `KeyError: b'state'`
and listing applications raises `AttributeError` on `str.decode()`. Support
both decoded strings and the default byte responses.
## Changes
- Normalize hash keys/values and application IDs with the client's encoder
in both sync and async read paths, respecting its encoding.
- Keep client configuration, storage format, sequence lookup, and
`None`/empty partition aliases unchanged.
- Add parametrized integration regressions for both response modes,
UTF-8/Latin-1, namespaces, Unicode, empty positions, sequence zero versus
latest, and missing records.
## How I tested this
- Before the fix: 36 failures / 29 passes in the Redis test module. After
the fix: **65 passed**.
- Local Redis-module execution used redis-py 8.1.0 against fakeredis
2.40.0's TCP server. This exercises the real sync/async clients, but **a real
Redis server was not available locally**. The committed tests use the existing
localhost Redis integration setup and add no dependency.
- **454 passed, 4 deselected** across `tests/core` and the aiosqlite
persister tests; the four deselected cases require the unavailable Graphviz
`dot` executable.
- Another 48 local regressions using directly injected clients passed,
including independent load/list checks and Chinese text.
- Applicable pre-commit checks and `git diff --check` passed. The unrelated
frontend hook was skipped.
## Notes
No migration or new configuration is required.
## Checklist
- [x] PR has an informative and human-readable title
- [x] Changes are limited to a single goal
- [x] Applicable pre-commit checks passed (scope noted above)
- [x] Change in functionality is tested
- [x] Response-mode support is documented in the persister docstrings
- [x] No placeholder code or new TODOs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]