Skip to content

CASSPYTHON-24 Remove Insights support#1301

Open
absurdfarce wants to merge 1 commit into
apache:trunkfrom
absurdfarce:casspython24
Open

CASSPYTHON-24 Remove Insights support#1301
absurdfarce wants to merge 1 commit into
apache:trunkfrom
absurdfarce:casspython24

Conversation

@absurdfarce

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread cassandra/cluster.py
import re
import queue
import socket
import sys

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A drive-by fix. I noticed these two imports were unused while working on CASSPYTHON-13 with Brett, figured I'd clean them up next time I was in this code.

Comment thread cassandra/cluster.py
{key: ['{ip}:{port}'.format(ip=ip, port=port) for ip, port in value]
for key, value in strs_resolved_map.items() if value is not None}
)
raise UnresolvableContactPoints(endpoint_map)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird to me that we were re-using an Insights map in the exception that's thrown here.. but apparently we were. Moved the logic into this block (so that it's only executed if an exception actually occurs) and moved everything out of class state.

Comment thread cassandra/cluster.py
"""
A UUID that uniquely identifies this Session to Insights. This will be
generated automatically.
A UUID that uniquely identifies this Session. This will be generated automatically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had originally planned on removing this entirely but this ID is also used in column-level encryption (CLE)

@absurdfarce
absurdfarce requested a review from bschoening July 15, 2026 05:28
@absurdfarce

Copy link
Copy Markdown
Contributor Author

Forgot to mention: Jenkins run on this change looks pretty good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant