Repository navigation
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
Draft
andy-stark-redis wants to merge 1 commit into
andy-stark-redis wants to merge 1 commit into
Conversation
…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]>
|
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. |
Contributor
Contributor
Contributor
🧠 Redis MemoryFound 5 related items from repository history (5 new this commit):
Memory updated at 9817239 |
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.
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.timeseries.md: create, add, read, aggregate, compact and find series by label, with a runnabletimeseries_tutorialexample in Lettuce-Sync, Java-Async and Java-Reactive. Covers the 8.8 and 8.10 version gates, blockingtsRead()and Redis Cluster slot rules.prob.md:CmsCellSizeoverloads,getCellSize()and negativecmsIncrBy()increments.BLESSandBITRANGEINTARRAY, because DOC-7292 Add API mappings for the new Redis 8.12 commands #4525 already adds Lettuce mapping rows for them.ZMOVE,BZMOVEandZMOVEMEMBERare in DOC-7335 Add redis-py, redis-rb and node-redis API mappings for ZMOVE, BZMOVE, ZMOVEMEMBER and BACKUP #4643.CipherCodecIV storage is opt-in and undocumented today, so I left it out.Verification. All three
TimeSeriesExamplefiles were compiled and run against8.0.0.BETA2andredis:8.12-rc3, and every>>>output comment is captured output. The remaining claims on the page were probed:tsAddNow, anullelement for a rejectedtsMAddsample, one value per aggregation,tsGetreturningnullon an empty series, and atsReadblock timing out with an empty list. Multiple aggregations were confirmed onredis:8.8.0and rejected onredis:8.6.2. The CMS cell size, default of 4 and negative increment (5 to 3) were run on rc3. Links passbuild/check_uncanonicalized_links.py. No Hugo build was run.What the breaking-change audit found.
EventBus.get()andTokenBasedRedisCredentialsProvider.credentials()) fails on 8.0 and compiles on 7.9.0, so the zero is not a broken detector.CmdsCnxmgmt(AUTH with no password configured) andConnectBasicTest(norun()method for my runner).amr.mdsnippets compile against 8.0.0.BETA2 withredis-authx-entraid:0.1.1-beta1.RedisCredentialsProvideror JSON root-path APIs.For review
bannerTextbeta note that must go at unpark.tsMAddsplit by slot, a blockingtsReadstalling a shared connection) come from the upstream guide and were not run on a cluster.ts.rangecommand page doesn't mention that several aggregations need Redis 8.8, andcms.incrbydoesn't mention negative increments.redis/redishas an8.12.0release dated 2026-11-22, but there is noredis:8.12image on Docker Hub yet, so nothing here was run on GA.feature-oss-8.12and rebased ontomainafter 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>returnsbehind_by: 0). Redis 8.12 is already out (release tag 2026-11-22, docs merged tomainin #4518), so this half is met. The examples still need one re-run on aredis:8.12GA image once Docker Hub has it.Labels: parked, do not merge yet
Pinned sources (state observed at park time, 2026-11-23)
3f11e6b7d077=mainhead at park time. Latest stable is7.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 3main, mergeba5d2eb2190f, ancestor of BETA2 (behind_by: 0)gh api repos/redis/lettuce/pulls/3978CELL_SIZE)main, mergeb9497f572b05gh api repos/redis/lettuce/pulls/3918docs/user-guide/timeseries.mdf31c33870e72atmain3f11e6b7d077gh api repos/redis/lettuce/contents/docs/user-guide/timeseries.md --jq .shamain3f11e6b7d077gh api repos/redis/lettuce/contents/docs/new-features.md8.12.0release 2026-11-22,8.12-rc3pre-release 2026-11-12;docker pull redis:8.12fails (manifest unknown). 8.12 docs merged tomainin #4518.gh release list -R redis/redis -L 4Observed 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.
tsCreate,tsAdd,tsAddNow,tsMAdd,tsGet,tsRange,tsRevRange,tsCreateRule,tsQueryIndex,tsMGet,tsMRange,tsReadonRedisTimeSeriesCommandsand its async and reactive flavors.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.CmsCellSize.ONE_BYTE/TWO_BYTES/FOUR_BYTES/EIGHT_BYTES,cmsInitByDim/cmsInitByProboverloads,CMSInfoValue.getCellSize(),IncrementPair.of.tsMAddreturnsValue<Long>, so a rejected sample isValue.empty.Re-check checklist
javapon the jar); beta names move.timeseries_tutorialfiles and the CMS snippet against stable 8.0.0 onredis:8.12GA.7.9.0.RELEASEto the stable 8.0.0 coordinates in_index.md,vecsearch.mdandvecsets.md, and inbuild/example-test-harness/pom-lettuce-*.xml.bannerTextbeta note fromtimeseries.md.timeseries.mdguide (blobf31c33870e72) and the 8.0 breaking-changes list against the stable release; BETA2 changedAsyncNodeSelectionstream returns since BETA1, so more can move.tsMAddper-slot split, blockingtsReadon a shared cluster connection) on a local cluster, or soften them.ts.range(8.8 multiple aggregations) andcms.incrby(negative increments) command pages.CipherCodecIV storage needs a mention.On unpark, then
Run
/unparkwith this PR's number./unparkSteps 4-5 own the closing sequence;/finalizeis deferred until then.