feat(action): implement View, Ingestion, Scale and RemoteStore APIs#16
Merged
feat(action): implement View, Ingestion, Scale and RemoteStore APIs#16
Conversation
…or OpenSearch 3 Add HTTP action implementations for OpenSearch 3 APIs that were previously throwing UnsupportedOperationException: - View API: create, get, delete, update, search, and list view names - Streaming Ingestion API: pause, resume, and get ingestion state - Scale Index API: search-only scaling support - Remote Store Metadata API: cluster remote store metadata retrieval - CreateIndex: add support for context parameter in OpenSearch 3 Includes comprehensive unit tests for all new actions and ByteArrayStreamOutput.
- HttpGetIngestionStateAction: fully parse ingestion_state per-shard data and next_page_token instead of returning empty arrays - HttpRemoteStoreMetadataAction: fully parse indices/shards metadata instead of skipping the indices section - HttpListViewNamesAction: remove trailing slash from /views/ endpoint - HttpScaleIndexAction: add setAccessible for package-private class access and document why reflection is required - HttpCreateViewAction/HttpUpdateViewAction: extract buildRequestBody() for testability - HttpListViewNamesAction: extract parseViewNames() for testability - Update all tests to exercise production code instead of duplicated helpers, add payload parsing and URL encoding coverage
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.
Summary
UnsupportedOperationExceptionstubs with properexecute()delegations acrossHttpAbstractClient,HttpClient, andHttpIndicesAdminClientByteArrayStreamOutputChanges Made
HttpCreateViewAction,HttpGetViewAction,HttpDeleteViewAction,HttpUpdateViewAction,HttpSearchViewAction,HttpListViewNamesActionHttpPauseIngestionAction,HttpResumeIngestionAction,HttpGetIngestionStateActionHttpScaleIndexActionfor search-only scalingHttpRemoteStoreMetadataActionfor cluster metadata retrievalcontextparameter support for OpenSearch 3HttpClientaction map, delegated inHttpAbstractClientandHttpIndicesAdminClientTesting
ByteArrayStreamOutputTestadded for stream utility coverageBreaking Changes