I found that in this function, the pop operation on settings dict may change the settings in other objects. As a result, 'lazy_connect', 'retry_connect' and 'consistency' options will become invalid after the first connection establishing. During the Django testing, Cassandra connection settings are ignored makes me continually encounter ConsistencyLevel issues. Here are some logs during a Django test
I am not sure whether this is by design since 'replication_factor' is also popped at somewhere else, but I think modifying external objects through this is confusing.
I found that in this function, the pop operation on settings dict may change the settings in other objects. As a result, 'lazy_connect', 'retry_connect' and 'consistency' options will become invalid after the first connection establishing. During the Django testing, Cassandra connection settings are ignored makes me continually encounter ConsistencyLevel issues. Here are some logs during a Django test
I am not sure whether this is by design since 'replication_factor' is also popped at somewhere else, but I think modifying external objects through this is confusing.