Check if sniffer was able to determine the version before testing if it's a 2.x#1190
Conversation
|
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
|
Hello, thanks for the PR! I'm very curious: how did you manage to get a node info response without the |
|
hi 🙂 👋🏻
ahh, so that particular request to get the version is mocked and in one of the test scenarios the version value is removed from it on purpose... That scenario was suppose to imitate the call to the early versions of the opensearch serverless distribution, which at those times was either not returning the version at all or when it was returning something, it wasn't usable 🫣. (I don't have access to that service anymore so can't confirm if they changed it or not) I debugged the sniffer/client from the server distribution (apache 4 based one) and it does not have this null exception as it ends up parsing the |
Hey 👋🏻 🙂,
I've run into this:
while I was looking into Hibernate Search CI failure (that particular test uses different Elasticsearch clients and "backends" including the one which supposedly won't return the version in the nodes response to sniffer...). So I thought I'd open a PR and let you decide if you want to include the fix 😃.
Alternatively, maybe let's just set
String version = "";?