Skip to content

Commit 55a21e3

Browse files
committed
ResultSet: handle empty non-final pages on ResultSet iteration
This commit provides a fix to the situation when iterating on a ResultSet, the driver aborts the iteration if the server returns an empty page even if there are next pages available. Python driver is affected by the same problem as JAVA-2934 This fix is similar to apache/cassandra-java-driver#1544
1 parent 84d33bb commit 55a21e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cassandra/cluster.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5133,6 +5133,7 @@ def next(self):
51335133
if not self.response_future._continuous_paging_session:
51345134
self.fetch_next_page()
51355135
self._page_iter = iter(self._current_rows)
5136+
return self.next()
51365137

51375138
return next(self._page_iter)
51385139

0 commit comments

Comments
 (0)