GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Document that selecting a protocol is strict and needs HELLO by ggivo · Pull Request #4852 · redis/jedis

Conversation

@ggivo

@ggivo ggivo commented Nov 25, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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
All reactions
  • 👍 1 reaction
@ggivo
Document that selecting a protocol is strict and needs HELLO
c9f379d
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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 25, 2026
Default Jedis RESP2 connections require HELLO spring-projects/spring-data-redis#3511
Open
Compatibility request: explicit RESP2 connections without requiring HELLO #4849
Open
@ggivo
ggivo requested a review from uglide November 25, 2026 09:47
@ggivo ggivo added the documentation label Nov 25, 2026
@ggivo
ggivo merged commit 3269df1 into master Nov 25, 2026
17 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@uglide uglide Awaiting requested review from uglide

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

documentation

Projects

None yet

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.

1 participant

@ggivo
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.