Skip to content

Timeouts are not working with speculative execution #110

Description

@sirainen

We have a test for Dovecot's Cassandra behavior which does:

  • Connects to Cassandra and does a lookup
  • Drops all network traffic to Cassandra: iptables -I OUTPUT -p tcp --destination-port $CASSANDRAPORT -d $CASSANDRAHOST -j DROP
  • Does another lookup

We have timeouts configured, e.g.:

cass_cluster_set_connect_timeout(db->cluster, 1000);
cass_cluster_set_request_timeout(db->cluster, 1000);

This works as expected. But when adding:

cass_cluster_set_constant_speculative_execution_policy(db->cluster, 500, 1);

The driver seems to hang when doing a lookup. The lookup won't finish until the whole cluster is destroyed (at least not for the first 130 seconds). This happens with the latest Scylladb cpp-driver master (and Datastax cpp-driver too). Attached trace logs for the test.

trace.log

Activity

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

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