Paging issues with Cosmos DB

8 views
Skip to first unread message

Timo Sirainen

unread,
Jul 15, 2024, 4:52:02 AM7/15/24
to DataStax C++ Driver for Apache Cassandra User Mailing List
One of our customers attempted to use Cosmos DB via Cassandra wrapper and was seeing all kinds of weird random data loss type of issues. It looks like the problems were finally solved by setting an explicit paging size in cpp-driver. So apparently Cosmos DB has a default paging size of 100, which cpp-driver doesn't realize unless paging is explicitly configured. Instead it just stops after the first page. I didn't find anything related to this with Google, so I'm guessing this isn't an issue with the more commonly used Cassandra drivers, like the Java driver. Could this be considered a cpp-driver bug then? This was happening with cpp-driver 2.16.2.

I'm not entirely sure yet if all issues are solved, since there were apparently some issues with Cosmos DB 429 HTTP error (Request rate too large) handling, which should have been automatically retried by the Cassandra wrapper. But it's possible that this was also related to the paging.

Reply all
Reply to author
Forward
0 new messages