Skip to content

Commit 0c2a345

Browse files
committed
Regenerate v5preview/opensearchapi for partial-failure errors
Mechanical output of cmd/osgen against the spec patched in the parent commit. Two flavors of change: 1. clients_gen.go now declares `errors errmask.ErrorMask` on Client and clientInit takes the mask as a second arg, matching the hand-written api.go callers from the parent commit. 2. 19 operation dispatch files emit a per-wrapper post-do() block that returns a typed error when the corresponding errmask bit is unset and the wire data carries a partial failure. Wrappers covered today: BulkItems, SearchShards, WriteShards, MultiSearchItems. Wrappers in the catalog without hand-written emission yet (BroadcastShards, NodeFailures, BulkByScrollFailures, TaskFailures, MultiDocItems, Snapshot{Create,Get}ShardFailures, SimulateDocFailures, RankEvalFailures, IngestionShardFailures, PitNodeFailures) have their bits reserved by the spec annotation but produce no generated check until detection logic is added in a follow-up. Operations whose typed response shape is missing the field path a wrapper needs (CreateResp lacks _shards; msearch's union response items lack a top-level Shards) are silently skipped by the dispatch fragment's Applies guard. The annotation stays in the spec so the emission will start automatically once the response types catch up. Ref: #816 Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent ee8f19d commit 0c2a345

167 files changed

Lines changed: 996 additions & 267 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

v5preview/opensearchapi/bulk_gen.go

Lines changed: 45 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/bulk_stream_gen.go

Lines changed: 45 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-aliases_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-all_pit_segments_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-allocation_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-cluster_manager_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-count_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-fielddata_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-health_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v5preview/opensearchapi/cat-help_gen.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)