GeezerVison is showing github.com — Document that selecting a protocol is strict and needs HELLO by ggivo · Pull Request #4852 · redis/jedis
Conversation
ggivo
commented
Nov 25, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
The API docs did not say that protocol(), resp2() and resp3() select the protocol strictly and need the HELLO command, or how they relate to auto-negotiation and the server default. This PR documents that in the Javadoc and adds a user-guide page.
Related to #4849. The issue stays open for the follow-up discussion.
Key Decisions & Assumptions
JedisClientConfig.getRedisProtocol() is the main description. It holds the table of supported protocol and autoNegotiateProtocol combinations, and the builder methods link to it.
- One vocabulary throughout: strict protocol, negotiated protocol, server default protocol. A strict protocol takes precedence over auto-negotiation.
- The
RedisProtocol Javadoc now describes only the enum. The configuration rules it used to list live on the config methods.
Notes
- Documentation only, no behavior change, so there is no release-notes entry.
- New page
docs/protocol-selection.md, added to the MkDocs navigation.
- The v7-to-v8 guide now points to
serverDefaultProtocol() for servers without HELLO.
RedisProtocol.from() documented the wrong exception; the Javadoc now matches the code.
- Checked locally: formatter, Javadoc build on JDK 8 and 17, MkDocs build, unit tests on JDK 8.
Note Low Risk
Documentation and Javadoc only; no runtime behavior changes.
Overview
Documents RESP2/RESP3 protocol selection so it’s clear that protocol(), resp2(), and resp3() are strict choices that require the server’s HELLO command, and how that interacts with auto-negotiation versus serverDefaultProtocol() (no HELLO, assumes RESP2).
Adds a new user guide docs/protocol-selection.md (linked from MkDocs and the v7→v8 migration guide), and expands Javadoc on JedisClientConfig, DefaultJedisClientConfig.Builder, RedisProtocol, and JedisProtocolNotSupportedException using shared vocabulary (strict, negotiated, server default). RedisProtocol enum docs are trimmed so configuration rules live on the config API; RedisProtocol.from() Javadoc now matches code (IllegalArgumentException).
Reviewed by Cursor Bugbot for commit c9f379d. Bugbot is set up for automated code reviews on this repo. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
The API docs did not say that protocol(), resp2() and resp3() select the
protocol strictly and need the HELLO command, nor how they relate to
auto-negotiation and the server default. See #4849.
- Describe the supported protocol and auto-negotiation combinations on
JedisClientConfig.getRedisProtocol() and link the builder methods to it.
- Add a Protocol Selection page to the user guide.
- Point the v7-to-v8 guide to serverDefaultProtocol() for servers
without HELLO.
- Fix the exception documented for RedisProtocol.from().
Documentation only, no behavior change.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-25T09:13:15.053702Z |
c9f379d |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
uglide
Awaiting requested review from uglide
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
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.
|