Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Update field names in /index/_recovery API response to snake_case for consistency #16541

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@
.field("version", version.toString())
.field("index", index.getName())
.field("restoreUUID", restoreUUID)
Copy link
Member

Choose a reason for hiding this comment

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

Should this one also be changed?

.field("isSearchableSnapshot", isSearchableSnapshot)
.field("remoteStoreIndexShallowCopy", remoteStoreIndexShallowCopy)
.field("sourceRemoteStoreRepository", sourceRemoteStoreRepository)
.field("sourceRemoteTranslogRepository", sourceRemoteTranslogRepository);
.field("is_searchable_snapshot", isSearchableSnapshot)
.field("remote_store_index_shallow_copy", remoteStoreIndexShallowCopy)
.field("source_remote_store_repository", sourceRemoteStoreRepository)
.field("source_remote_translog_repository", sourceRemoteTranslogRepository);

Check warning on line 421 in server/src/main/java/org/opensearch/cluster/routing/RecoverySource.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/cluster/routing/RecoverySource.java#L418-L421

Added lines #L418 - L421 were not covered by tests
}

@Override
Expand Down
Loading