You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for a custom transport version check predicate in ElasticsearchException (#126272) (#126520)
Today when we are adding a ElasticsearchException, we specify a versionAdded TransportVersion (the transport version from which we support it); this version is checked by the isRegistered method:
return version.onOrAfter(elasticsearchExceptionHandle.versionAdded);
This does not play well with backports; when we add a patch version for a backport, normally the procedure would be to change the code above take also the patch into account, like:
version.orOnAfter(versionAdded) || version.isPatchFrom(versionPatched)
This PR updates ElasticsearchException to have more than just "version added", so that we can do patches as described above.
0 commit comments