This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Commit ab94092
authored
fix: Use correct limit when retrying a limit query stream with a cursor (#2203)
* fix: Use correct limit when retrying a limit query stream with a cursor
When a query is streamed and the stream fails after receiving part of the
result set, the client retries the stream with a cursor. If the original
query has a limit, the retry logic should use a modified limit for the
remainder of the stream to ensure the final result contains the correct
number of documents.
* Update recursiveDelete test.
* Add tests.
* Address feedback.
* Address feedback (2).1 parent 1775ce6 commit ab94092
3 files changed
Lines changed: 360 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| |||
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
320 | 328 | | |
321 | 329 | | |
322 | 330 | | |
| |||
330 | 338 | | |
331 | 339 | | |
332 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
333 | 357 | | |
334 | | - | |
| 358 | + | |
335 | 359 | | |
336 | 360 | | |
337 | 361 | | |
338 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
339 | 365 | | |
340 | 366 | | |
341 | 367 | | |
| |||
0 commit comments