Skip to content

Commit

Permalink
Add IPV6 form of the address in cassandra status check (#23537)
Browse files Browse the repository at this point in the history
This PR fixes problem introduced in 3.0.26 of cassandra image which
adds square brackets around IP address regardless of its type.

The problem was workarounded by pinning cassandra to 3.0.25 in
the ##23522 as a quick fix, but this one introducec permanent,
future-proof solution.

Based on discussion in https://issues.apache.org/jira/browse/CASSANDRA-17612

Fixes: #23523
(cherry picked from commit 22a5642)
  • Loading branch information
potiuk authored and ephraimbuddy committed May 8, 2022
1 parent 6c4788e commit 3cfb7d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ci/docker-compose/integration-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ services:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
- cassandra-db-volume:/var/lib/cassandra
healthcheck:
test: "[ $$(nodetool statusgossip) = running ]"
# We use IPv6 variant of the check to workaround the problem with 3.0.26 version
# of Cassandra https://issues.apache.org/jira/browse/CASSANDRA-17581
test: "[ $$(nodetool --host '::FFFF:127.0.0.1' statusgossip) = running ]"
interval: 5s
timeout: 30s
retries: 50
Expand Down

0 comments on commit 3cfb7d4

Please sign in to comment.