Skip to content

Commit

Permalink
Use v14 client when upgrading from dropped v13 servers
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Jun 14, 2024
1 parent 615f685 commit 9ca7dde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/infinispan/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ca7dde

Please sign in to comment.