[
https://issues.apache.org/jira/browse/CASSGO-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Hartig updated CASSGO-42:
-------------------------------
Authors: James Hartig
Source Control Link:
https://github.com/apache/cassandra-gocql-driver/commit/c63468d9ce9dca353f55a3371aa97a30eedd7d4b
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> 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
> Assignee: James Hartig
> Priority: Normal
> Fix For: 2.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> `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: [email protected]
For additional commands, e-mail: [email protected]