Repository navigation
Object storage actions: stop_object_storage, slow_object_storage, start_object_storage (OS codes, v2.3) - #9
Merged
Conversation
…rt_object_storage (OS codes, v2.3) The simulator's v2.3 free play can stop, slow and start the object storage bucket behind every diskless implementation (the KIP draft, Inkless, KafScale and AutoMQ). Its action log writes these as OS:0, OS:s and OS:1 (actionLog.ts encodeOne/decodeOne, website PR #905). sim-link refused them. - actionlog: StopObjectStorage/SlowObjectStorage/StartObjectStorage encode and decode with the playground's wire form; any other OS payload is an error (the playground drops it). - mcpserver: build_playground_url accepts stop_object_storage, slow_object_storage and start_object_storage (no fields) and echoes them back; validate_actions previews them. - Tests: round-trips per kind, the wire form pinned to the playground's encoder output, malformed payloads, both property generators, and an MCP end-to-end build on diskless-3az, inkless-3az, kafscale-3b and automq-3az. - docs/mapping.md and the README list the kinds and codes.
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.
What
sim-link now understands the simulator's v2.3 object storage actions, so a free-play link can stop, slow and start the bucket behind any diskless implementation (the KIP draft
diskless-3az,inkless-3az,kafscale-3b,automq-3az).stop_object_storageOS:0slow_object_storageOS:sstart_object_storageOS:1actionlog:StopObjectStorage/SlowObjectStorage/StartObjectStorageencode and decode with the playground's wire form. Any otherOSpayload is an error (the playground drops it silently).mcpserver:build_playground_urlaccepts the three kinds (no fields, onlyat) and echoes them back;validate_actionspreviews them. Named by their MCP kinds as in website PR #885 (stop_etcd,stop_coordinator_db).OS:2,OS:S,OS:), both property generators, and an MCP build on all four diskless clusters.docs/mapping.mdand the README list the kinds and codes.Website side
The encoding comes from monedula-dev/monedula-website#905 (merged):
src/kafka-simulator/actionLog.tswritesOS:0/OS:1/OS:sfor thestop_object_storage/start_object_storage/slow_object_storageSimActions insrc/sim/types.ts, anddocs/playground-url-api.md§2 lists them. On a playground older than v2.3 the codes are dropped.Release notes for later (no release or tag here)
When this ships, these website surfaces would need updating:
src/content/flock-docs/sim-link/index.mdx: the install example pinsVERSION=0.20.0; bump it to the new sim-link release.src/content/flock-docs/sim-link/reference/mcp-tools.mdx: the object storage kinds are added in monedula-dev/monedula-website#913, to merge with the release.Verification
go vet ./...,go vet -tags e2e ./e2e/,go test ./...pass locally.e2e/run.sh(apache/kafka:4.3.1) passes locally.🤖 Generated with Claude Code