From 9ca7ddee443a5c89394565d39a34520a6dfad039 Mon Sep 17 00:00:00 2001 From: Ryan Emerson Date: Fri, 14 Jun 2024 11:03:39 +0100 Subject: [PATCH] Use v14 client when upgrading from dropped v13 servers --- pkg/infinispan/client/client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/infinispan/client/client.go b/pkg/infinispan/client/client.go index a8f57f9c3..d9bcc5c21 100644 --- a/pkg/infinispan/client/client.go +++ b/pkg/infinispan/client/client.go @@ -81,7 +81,10 @@ func NewUnknownVersion(client httpClient.HttpClient) (api.Infinispan, error) { func ispnClient(majorVersion uint64, client httpClient.HttpClient) api.Infinispan { switch majorVersion { - case 14: + // We must still return a client for the dropped Infinispan 13 so that we can interact with the server when upgrading + // to a supported version. The only difference between the 13 and 14 client was the Cache EqualConfiguration implementation + // which is not required for upgrades. + case 13, 14: return v14.New(client) default: return v15.New(client)