We're updating the issue view to help you get more done. 

Can't connect to clusters built from source because version parsing doesn't handle 'x.y-SNAPSHOT'

Description

If you build cassandra from source (i.e. trunk, cassandra-2.1) a version number such as 4.0-SNAPSHOT will be reported in the release_version column in the system.peers and system.local table.

Since 3.18.0, the driver is currently not able to handle this:

1 2 3 4 5 6 7 8 9 10 >>> cluster.connect() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "cassandra/cluster.py", line 1359, in connect self.control_connection.connect() File "cassandra/cluster.py", line 2897, in connect self._set_new_connection(self._reconnect_internal()) File "cassandra/cluster.py", line 2940, in _reconnect_internal raise NoHostAvailable("Unable to connect to any servers", errors) cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', {'127.0.0.1:9042': ValueError("invalid literal for int() with base 10: '0-SNAPSHOT'",)})

This occurs when the version in both the x.y-SNAPSHOT (4.0-SNAPSHOT) and x.y.z-SNAPSHOT (2.1.21-SNAPSHOT) formats.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Andy Tolbert

Fix versions

Labels

None

Reproduced in

None

PM Priority

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Affects versions

3.18.0

Priority

Critical