-
Notifications
You must be signed in to change notification settings - Fork 641
Open
Description
Version of driver: v1.7.0
Go version: 1.23
Scylla version: 5.2.19
I am having an issue with inconsistent results being returned in the iterator. The following queries are showing different results with count(*) being ~230k and the iter i value being ~170k. Running the count query through cqlsh gives the ~230k number so seems to be something specific to the iterator.
I have tried increasing paging, timeouts, consistency and paging manually but to no avail, any help/insight would be appreciated.
id := "00000000-0000-0000-0000-000000000000"
var res int
err = cassSession.Query("SELECT count(*) FROM requests WHERE id = ?", id).Consistency(gocql.One).Scan(&res)
if err != nil {
log.Fatal(err)
}
fmt.Println("Count(*): ", res)
i := 0
iter := cassSession.Query("SELECT * FROM requests WHERE id = ?", id).Consistency(gocql.One).Iter()
scanner := iter.Scanner()
for scanner.Next() {
i++
}
fmt.Println("Total i: ", i)
if scanner.Err() != nil {
log.Fatal(err)
}Metadata
Metadata
Assignees
Labels
No labels