Skip to content

DOC-7337 Document Lettuce 8.0 time series and count-min sketch cell size [PARKED] - #4646

Draft
andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7337-lettuce-8-0
Draft

andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7337-lettuce-8-0

Conversation

@andy-stark-redis

Copy link
Copy Markdown
Contributor

Documents what Lettuce 8.0.0.BETA2 adds that is worth a client page, and records the result of auditing the existing Lettuce docs against the 8.0 breaking changes. Ticket: DOC-7337.

Warning

Do not merge yet. The docs describe Lettuce 8.0, which is in beta (8.0.0.BETA2; latest stable is 7.9.0.RELEASE). The Redis 8.12 docs are already on main (#4518), so the only blocker is the Lettuce release.

Verification. All three TimeSeriesExample files were compiled and run against 8.0.0.BETA2 and redis:8.12-rc3, and every >>> output comment is captured output. The remaining claims on the page were probed: tsAddNow, a null element for a rejected tsMAdd sample, one value per aggregation, tsGet returning null on an empty series, and a tsRead block timing out with an empty list. Multiple aggregations were confirmed on redis:8.8.0 and rejected on redis:8.6.2. The CMS cell size, default of 4 and negative increment (5 to 3) were run on rc3. Links pass build/check_uncanonicalized_links.py. No Hugo build was run.

What the breaking-change audit found.

  • All 55 local Lettuce example files compile unchanged on 8.0.0.BETA2. A negative control (removed EventBus.get() and TokenBasedRedisCredentialsProvider.credentials()) fails on 8.0 and compiles on 7.9.0, so the zero is not a broken detector.
  • Running every example against rc3 gave the same pass/fail on 7.9.0 and 8.0.0.BETA2. The 7 failures on both are environmental: the embedding-model examples, CmdsCnxmgmt (AUTH with no password configured) and ConnectBasicTest (no run() method for my runner).
  • The amr.md snippets compile against 8.0.0.BETA2 with redis-authx-entraid:0.1.1-beta1.
  • No page code uses the removed event bus, tracing, RedisCredentialsProvider or JSON root-path APIs.

For review

  • The TimeSeries page carries a bannerText beta note that must go at unpark.
  • Cluster claims (tsMAdd split by slot, a blocking tsRead stalling a shared connection) come from the upstream guide and were not run on a cluster.
  • Not changed, but worth a decision: the ts.range command page doesn't mention that several aggregations need Redis 8.8, and cms.incrby doesn't mention negative increments.
  • redis/redis has an 8.12.0 release dated 2026-11-22, but there is no redis:8.12 image on Docker Hub yet, so nothing here was run on GA.
  • The branch was cut from feature-oss-8.12 and rebased onto main after Redis OSS 8.12 release branch > main #4518 merged and deleted that branch.

🤖 Generated with Claude Code

Park manifest

Ticket: DOC-7337
Parked at: 2026-11-23
Trigger to pick up: Lettuce 8.0.0 is released as a non-prerelease tag whose history contains the beta2 commit (gh api repos/redis/lettuce/compare/3f11e6b7d077...<tag> returns behind_by: 0). Redis 8.12 is already out (release tag 2026-11-22, docs merged to main in #4518), so this half is met. The examples still need one re-run on a redis:8.12 GA image once Docker Hub has it.
Labels: parked, do not merge yet

Pinned sources (state observed at park time, 2026-11-23)

Source Snapshot Re-fetch
Lettuce 8.0.0.BETA2 Pre-release, tag 3f11e6b7d077 = main head at park time. Latest stable is 7.9.0.RELEASE (2026-10-14); 8.0.0.BETA1 (2026-10-14) is the only other 8.0 build. gh release list -R redis/lettuce --exclude-pre-releases -L 3
lettuce#3978 (TimeSeries) merged to main, merge ba5d2eb2190f, ancestor of BETA2 (behind_by: 0) gh api repos/redis/lettuce/pulls/3978
lettuce#3918 (CMS CELL_SIZE) merged to main, merge b9497f572b05 gh api repos/redis/lettuce/pulls/3918
Upstream guide docs/user-guide/timeseries.md blob f31c33870e72 at main 3f11e6b7d077 gh api repos/redis/lettuce/contents/docs/user-guide/timeseries.md --jq .sha
Upstream What's new in Lettuce 8.0 read at main 3f11e6b7d077 gh api repos/redis/lettuce/contents/docs/new-features.md
Redis 8.12 8.12.0 release 2026-11-22, 8.12-rc3 pre-release 2026-11-12; docker pull redis:8.12 fails (manifest unknown). 8.12 docs merged to main in #4518. gh release list -R redis/redis -L 4

Observed shape the page assumes

Confidence: MEDIUM for what each call does (every behavior on the page was run on beta2 and rc3); LOW for identifiers, because they come from a beta.

  • Calls: tsCreate, tsAdd, tsAddNow, tsMAdd, tsGet, tsRange, tsRevRange, tsCreateRule, tsQueryIndex, tsMGet, tsMRange, tsRead on RedisTimeSeriesCommands and its async and reactive flavors.
  • Argument and result types: TsCreateArgs.Builder.retention/label, TsRangeArgs.Builder.aggregation/count, TsMGetArgs.Builder.withLabels, TsMRangeArgs.Builder.groupBy, TsFilter.equal, TsMAddValue.of, TsAggregationType.AVG/MIN/MAX, TsReducerType.MAX, TsReadOffset.earliest/from/newSamples, TsReadArgs.Builder.block/maxCount, TsSample, TsMGetValue, TsSeries.
  • CMS: CmsCellSize.ONE_BYTE/TWO_BYTES/FOUR_BYTES/EIGHT_BYTES, cmsInitByDim/cmsInitByProb overloads, CMSInfoValue.getCellSize(), IncrementPair.of.
  • Reactive tsMAdd returns Value<Long>, so a rejected sample is Value.empty.
  • Where the upstream guide and the source could disagree: cluster behavior is taken from the guide only.

Re-check checklist

  • Highest risk: re-read every identifier above at the stable 8.0.0 tag (javap on the jar); beta names move.
  • Re-run the three timeseries_tutorial files and the CMS snippet against stable 8.0.0 on redis:8.12 GA.
  • Re-run the whole Lettuce example audit (compile all 55 files on both versions, then run them); expect the same 7 environmental failures.
  • Bump 7.9.0.RELEASE to the stable 8.0.0 coordinates in _index.md, vecsearch.md and vecsets.md, and in build/example-test-harness/pom-lettuce-*.xml.
  • Remove the bannerText beta note from timeseries.md.
  • Re-diff the upstream timeseries.md guide (blob f31c33870e72) and the 8.0 breaking-changes list against the stable release; BETA2 changed AsyncNodeSelection stream returns since BETA1, so more can move.
  • Run the cluster claims (tsMAdd per-slot split, blocking tsRead on a shared cluster connection) on a local cluster, or soften them.
  • Decide whether to fix the ts.range (8.8 multiple aggregations) and cms.incrby (negative increments) command pages.
  • Check the Lettuce rows in DOC-7292 Add API mappings for the new Redis 8.12 commands #4525 and DOC-7335 Add redis-py, redis-rb and node-redis API mappings for ZMOVE, BZMOVE, ZMOVEMEMBER and BACKUP #4643 against the stable 8.0.0 signatures (not checked here).
  • Decide whether CipherCodec IV storage needs a mention.

On unpark, then

Run /unpark with this PR's number. /unpark Steps 4-5 own the closing sequence; /finalize is deferred until then.

…ize [PARKED]

Adds a Lettuce time series page with a runnable timeseries_tutorial example
(Lettuce-Sync, Java-Async, Java-Reactive) and a CELL_SIZE section in prob.md. The 8.0
breaking changes needed no page edits: all 55 local Lettuce examples compile unchanged
on 8.0.0.BETA2, and a negative control (removed EventBus.get() and
TokenBasedRedisCredentialsProvider.credentials()) fails on 8.0 but compiles on 7.9.0,
so the zero is real. The AMR page snippets compile on the beta too. Running every
example against redis:8.12-rc3 gave the same pass/fail on 7.9.0 and 8.0.0.BETA2; the
seven failures on both are environmental (embedding models, AUTH with no password).

The first compaction example created the rule after most samples existed, so it showed
a single 9.6 bucket and looked wrong. It now uses a fresh series with the rule created
first and values that average exactly. The 8.8 multi-aggregation gate is not on the
ts.range command page; I confirmed it on redis:8.6.2 (rejected) and redis:8.8.0
(accepted). I left out prose for set member expiration, BLESS and BITRANGEINTARRAY
because PR 4525 already carries Lettuce mapping rows for them.

Learned: Lettuce 8.0.0.BETA2 breaks no existing doc example; its value is the new time series and CMS cell size surface
Constraint: The page and examples were run on 8.0.0.BETA2 and redis:8.12-rc3 only, so pin both when re-checking
Rejected: Prose for the 8.12 set expiration, BLESS and BITRANGEINTARRAY commands | PR 4525 already maps their Lettuce methods
Directive: Keep the compaction example's rule created before the samples are added, or the output shows a partial bucket
Gaps: Cluster behavior (tsMAdd split by slot, blocking tsRead stalling a shared connection) comes from the upstream guide and was not run; no Hugo build
Recheck: when Lettuce 8.0.0 and Redis 8.12 are GA, bump the 7.9.0 coordinates and re-run the examples
Ticket: DOC-7337
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@andy-stark-redis andy-stark-redis added do not merge yet parked PR speculatively added based on pre-release info. Check validity when release goes ahead. labels Nov 23, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


sim seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7337

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history (5 new this commit):

Memory updated at 9817239

@dwdougherty dwdougherty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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

Labels

clients Client library docs do not merge yet parked PR speculatively added based on pre-release info. Check validity when release goes ahead.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants