Skip to content

Conversation

sachinda-git
Copy link

This pull request addresses issue #16334 by renaming the following fields in the SnapshotRecoverySource class to follow a standard snake_case naming convention:

isSearchableSnapshot → is_searchable_snapshot
remoteStoreIndexShallowCopy → remote_store_index_shallow_copy
sourceRemoteStoreRepository → source_remote_store_repository
sourceRemoteTranslogRepository → source_remote_translog_repository
The changes ensure consistency in field naming, improving clarity and alignment with API standards. All affected methods, constructors, and serialization logic have been updated accordingly.

Related Issues
Resolves #16334

Check List
Functionality includes testing: Updated relevant unit tests to reflect the changes.
API changes companion pull request created, if applicable.
Public documentation issue/PR created, if applicable.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

❌ Gradle check result for c4ef85b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

.field("remoteStoreIndexShallowCopy", remoteStoreIndexShallowCopy)
.field("sourceRemoteStoreRepository", sourceRemoteStoreRepository)
.field("sourceRemoteTranslogRepository", sourceRemoteTranslogRepository);
.field("is_searchable_snapshot", is_searchable_snapshot)
Copy link
Member

Choose a reason for hiding this comment

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

Java variables should follow the lowerCamelCase convention, but when serialized in toXContent (as done on the left side of this line), these can be converted to lower_snake_case.

As @gbbafna pointed out here, since this is a change in API its considered a breaking change and would have to be targeted for OpenSearch 3.0. At the moment, OpenSearch 3.0 is the next planned release after OpenSearch 2.19.

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Feb 25, 2025
@ceocharan
Copy link

Hi! I’m interested in working on this issue. Is it still available?

@sandeshkr419
Copy link
Member

@ceocharan Thanks for the interest. Given its late for 3.0 and too early for 4.0, this needs to wait for now.


I'm adding 4.0 label so that we can revisit this when we are near 4.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Other stalled Issues that have stalled Storage:Snapshots v4.0.0
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[BUG] The /{index}/_recovery API returns responses in a non-standard format(using camelCase).
4 participants