Skip to content

too many (100k) concurrent queries produce errors #1731

@isopov

Description

@isopov

Please answer these questions before submitting your issue. Thanks!

What version of Cassandra are you using?

4.1.3 or 5.0

What version of Gocql are you using?

1.6.0

What version of Go are you using?

1.21.1

What did you do?

What did you expect to see?

I expect the program to finish successfully.

What did you see instead?

I see errors

gocql: no hosts available in the pool
gocql: no streams available on connection
gocql: no hosts available in the pool
gocql: no streams available on connection
gocql: no hosts available in the pool
gocql: no hosts available in the pool

or

gocql: no hosts available in the pool
gocql: no hosts available in the pool

Note: changing workers const to 50_000 allows the program to finish gracefully (increasing queries const is possible also - program will work minutes instead of seconds but still will finish gracefully with 50_000 workers)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions