JeetKunDoug commented on code in PR #41:
URL:
https://github.com/apache/cassandra-in-jvm-dtest-api/pull/41#discussion_r2373376453
##########
src/main/java/org/apache/cassandra/distributed/shared/Versions.java:
##########
@@ -123,17 +123,27 @@ private static Semver first(Semver version)
public Version getLatest(Semver version)
{
- return versions.get(first(version))
-
.stream()
-
.findFirst()
-
.orElseThrow(() -> new RuntimeException("No " + version + " versions
found"));
+ return versions.getOrDefault(first(version), Collections.emptyList())
+ .stream()
+ .findFirst()
+ .orElseThrow(() -> new RuntimeException("No " + version
+ " versions found"));
Review Comment:
So the search here actually will find any _patch_ version that matches
5.0.X, which is why it says "No 5.0 versions found."
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]