Exception in cluster.Connect() using CassandraCSharpDriver v3.9.0

Author: Sitakant Mishra

Originally Sourced from: https://stackoverflow.com/questions/59331195/exception-in-cluster-connectkeyspace-using-cassandracsharpdriver-v3-9-0

I am getting the following exception in cluster.Connect while performing load testing in my application.

All hosts tried for query failed (tried :: SocketException 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'; :: SocketException 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'; ...)

The exception is thrown only when I overwhelm my application with a large number of requests (1000 or more). However, it seems to work fine for small number of requests because of which I am eliminating the possibility of a firewall issue. For some reason, this call gets stuck which leads to a deadlock in my application. Any help is greatly appreciated. Thanking in advance.

Regards, Sitakanta Mishra