[ 
https://issues.apache.org/jira/browse/CASSGO-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

João Reis updated CASSGO-50:
----------------------------
    Status: Ready to Commit  (was: Changes Suggested)

> 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: 2h 50m
>  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-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to