guyfedwards opened a new issue, #1922:
URL: https://github.com/apache/cassandra-gocql-driver/issues/1922

   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 and paging manually but to no 
avail, any help/insight would be appreciated.
   
   ```go
        id := "00000000-0000-0000-0000-000000000000"
   
        var res int
        err = cassSession.Query("SELECT count(*) FROM requests WHERE 
interested_agentid = ?", 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 = ?", 
agentID).Consistency(gocql.One).Iter()
   
        scanner := iter.Scanner()
        for scanner.Next() {
                i++
        }
   
        fmt.Println("Total i: ", i)
   
        if scanner.Err() != nil {
                log.Fatal(err)
        }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to