You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "James Hartig (Jira)" <ji...@apache.org> on 2024/12/19 15:25:00 UTC

[jira] [Commented] (CASSGO-42) MapExecuteBatchCAS panic when iterator error or non-cas

    [ https://issues.apache.org/jira/browse/CASSGO-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907080#comment-17907080 ] 

James Hartig commented on CASSGO-42:
------------------------------------

Another issue is that `MapScan` is not checking the `err` response from `RowData`

> MapExecuteBatchCAS panic when iterator error or non-cas
> -------------------------------------------------------
>
>                 Key: CASSGO-42
>                 URL: https://issues.apache.org/jira/browse/CASSGO-42
>             Project: Apache Cassandra Go driver
>          Issue Type: Bug
>          Components: Core
>            Reporter: James Hartig
>            Priority: Normal
>
> `applied = dest["[applied]"].(bool)` is in `MapExecuteBatchCAS` but if the iterator errored then the map might be empty and then `panic: interface conversion: interface {} is nil, not bool` is thrown. We should be checking if the field exists and only panic if it's actually not-nil and not a bool.



--
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