Fix ShardProfile.fetch typed as single FetchProfile instead of List<FetchProfile> - #1197
Fix ShardProfile.fetch typed as single FetchProfile instead of List<FetchProfile>#1197gingeekrishna wants to merge 2 commits into
Conversation
Signed-off-by: Radhakrishnan Pachyappan <radhakrishnan.p@op.tech>
|
Hi @gingeekrishna, thanks for picking this up, and apologies for coming into your thread late. I'd like to flag a duplication concern: #1147, opened on June 11, fixes the same bug (tracked from opensearch-project/opensearch-java#1965). I'm raising this only because I'd be sorry to see the fix land partially, not to claim any priority — I'd much rather this gets fixed than that it gets fixed by me. The two differ in scope. This PR corrects
These two are prerequisites for the test rather than optional extras — the spec test harness validates the entire response payload, so a My concern with merging the array change on its own is that the schema would still not match what the server actually sends, and nothing would guard it, so I'd expect the remaining mismatches to come back as fresh client deserialization reports. That said, I'm happy either way. If maintainers prefer the smaller footprint here, I'm glad to rebase #1147 to drop the overlapping change and keep only the remaining fixes plus the test. @Xtansia @VachaShah — would you mind advising which route you'd prefer? |
|
Thanks for flagging this, @minseoky — no need to apologize, I appreciate you catching it. Looking at #1147, it's clearly more thorough than this PR: it fixes the same I don't want to land a partial fix that leaves the schema still mismatched, so I'm fine deferring to #1147's broader scope. I'll leave the call on which PR to merge to @Xtansia / @VachaShah, and I'm happy to close this one in favor of #1147 if that's their preference. |
ShardProfile.fetchis currently typed as a single$ref: FetchProfile, but the OpenSearch server returns an array ofFetchProfileobjects. This fixes the type totype: array, items: $ref: FetchProfile.Related: opensearch-project/opensearch-java#2040
Signed-off-by: Radhakrishnan P gingeekrishna@gmail.com