You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "João Reis (Jira)" <ji...@apache.org> on 2025/04/21 09:59:00 UTC
[jira] [Updated] (CASSGO-50) Potentially endless query execution when HostSelectionPolicy returns the same downed host
[ https://issues.apache.org/jira/browse/CASSGO-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
João Reis updated CASSGO-50:
----------------------------
Test and Documentation Plan: ci
Status: Patch Available (was: In Progress)
https://github.com/apache/cassandra-gocql-driver/pull/1875
> Potentially endless query execution when HostSelectionPolicy returns the same downed host
> ------------------------------------------------------------------------------------------
>
> Key: CASSGO-50
> URL: https://issues.apache.org/jira/browse/CASSGO-50
> Project: Apache Cassandra Go driver
> Issue Type: Bug
> Components: Core
> Reporter: Bohdan Siryk
> Assignee: Oleksandr Luzhniy
> Priority: Normal
> Fix For: 2.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> If HostSelectionPolicy continuously returns the same host that is downed it will lead to an endless query execution. It happens [here|https://github.com/apache/cassandra-gocql-driver/blob/9d6c255a97b75842925e52921120918aeb3f646f/query_executor.go#L158] when `hostIter` returns host is downed or nil which causes skipping of loop iteration.
> Potentially it may cause a goroutine stuck even if the context provided to the query is canceled.
> Raised [here|https://github.com/apache/cassandra-gocql-driver/pull/1793#discussion_r1935766004]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org