Skip to content

Commit c2484d6

Browse files
authored
Fix FetchSourceContext serialization for mixed-version clusters (#129172)
Ensure the new exclude_vectors parameter is correctly serialized and deserialized when operating in a mixed-version cluster. Given that version 8.19 is not compatible with 9.0, we can assume that all versions on or after 9.1 will support this new parameter.
1 parent 39c5175 commit c2484d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/search/fetch/subphase/FetchSourceContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void writeTo(StreamOutput out) throws IOException {
9797
}
9898

9999
private static boolean isVersionCompatibleWithExcludeVectors(TransportVersion version) {
100-
return version.isPatchFrom(TransportVersions.SEARCH_SOURCE_EXCLUDE_VECTORS_PARAM_8_19);
100+
return version.onOrAfter(TransportVersions.SEARCH_SOURCE_EXCLUDE_VECTORS_PARAM_8_19);
101101
}
102102

103103
public boolean fetchSource() {

0 commit comments

Comments
 (0)