limit_spec_test.json 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221
  1. {
  2. "Documents in limit are replaced by remote event": {
  3. "describeName": "Limits:",
  4. "itName": "Documents in limit are replaced by remote event",
  5. "tags": [],
  6. "config": {
  7. "useGarbageCollection": true,
  8. "numClients": 1
  9. },
  10. "steps": [
  11. {
  12. "userListen": [
  13. 2,
  14. {
  15. "path": "collection",
  16. "limit": 2,
  17. "filters": [],
  18. "orderBys": []
  19. }
  20. ],
  21. "stateExpect": {
  22. "activeTargets": {
  23. "2": {
  24. "query": {
  25. "path": "collection",
  26. "limit": 2,
  27. "filters": [],
  28. "orderBys": []
  29. },
  30. "resumeToken": ""
  31. }
  32. }
  33. }
  34. },
  35. {
  36. "watchAck": [
  37. 2
  38. ]
  39. },
  40. {
  41. "watchEntity": {
  42. "docs": [
  43. [
  44. "collection/a",
  45. 1000,
  46. {
  47. "key": "a"
  48. }
  49. ],
  50. [
  51. "collection/c",
  52. 1001,
  53. {
  54. "key": "c"
  55. }
  56. ]
  57. ],
  58. "targets": [
  59. 2
  60. ]
  61. }
  62. },
  63. {
  64. "watchCurrent": [
  65. [
  66. 2
  67. ],
  68. "resume-token-1001"
  69. ]
  70. },
  71. {
  72. "watchSnapshot": {
  73. "version": 1001
  74. },
  75. "expect": [
  76. {
  77. "query": {
  78. "path": "collection",
  79. "limit": 2,
  80. "filters": [],
  81. "orderBys": []
  82. },
  83. "added": [
  84. [
  85. "collection/a",
  86. 1000,
  87. {
  88. "key": "a"
  89. }
  90. ],
  91. [
  92. "collection/c",
  93. 1001,
  94. {
  95. "key": "c"
  96. }
  97. ]
  98. ],
  99. "errorCode": 0,
  100. "fromCache": false,
  101. "hasPendingWrites": false
  102. }
  103. ]
  104. },
  105. {
  106. "watchEntity": {
  107. "docs": [
  108. [
  109. "collection/b",
  110. 1002,
  111. {
  112. "key": "b"
  113. }
  114. ]
  115. ],
  116. "targets": [
  117. 2
  118. ]
  119. }
  120. },
  121. {
  122. "watchEntity": {
  123. "docs": [
  124. [
  125. "collection/c",
  126. 1001,
  127. {
  128. "key": "c"
  129. }
  130. ]
  131. ],
  132. "removedTargets": [
  133. 2
  134. ]
  135. }
  136. },
  137. {
  138. "watchSnapshot": {
  139. "version": 1002
  140. },
  141. "expect": [
  142. {
  143. "query": {
  144. "path": "collection",
  145. "limit": 2,
  146. "filters": [],
  147. "orderBys": []
  148. },
  149. "added": [
  150. [
  151. "collection/b",
  152. 1002,
  153. {
  154. "key": "b"
  155. }
  156. ]
  157. ],
  158. "removed": [
  159. [
  160. "collection/c",
  161. 1001,
  162. {
  163. "key": "c"
  164. }
  165. ]
  166. ],
  167. "errorCode": 0,
  168. "fromCache": false,
  169. "hasPendingWrites": false
  170. }
  171. ]
  172. }
  173. ]
  174. },
  175. "Deleted Document in limbo in full limit query": {
  176. "describeName": "Limits:",
  177. "itName": "Deleted Document in limbo in full limit query",
  178. "tags": [],
  179. "config": {
  180. "useGarbageCollection": true,
  181. "numClients": 1
  182. },
  183. "steps": [
  184. {
  185. "userListen": [
  186. 2,
  187. {
  188. "path": "collection",
  189. "limit": 2,
  190. "filters": [],
  191. "orderBys": []
  192. }
  193. ],
  194. "stateExpect": {
  195. "activeTargets": {
  196. "2": {
  197. "query": {
  198. "path": "collection",
  199. "limit": 2,
  200. "filters": [],
  201. "orderBys": []
  202. },
  203. "resumeToken": ""
  204. }
  205. }
  206. }
  207. },
  208. {
  209. "watchAck": [
  210. 2
  211. ]
  212. },
  213. {
  214. "watchEntity": {
  215. "docs": [
  216. [
  217. "collection/a",
  218. 1000,
  219. {
  220. "key": "a"
  221. }
  222. ],
  223. [
  224. "collection/b",
  225. 1001,
  226. {
  227. "key": "b"
  228. }
  229. ]
  230. ],
  231. "targets": [
  232. 2
  233. ]
  234. }
  235. },
  236. {
  237. "watchCurrent": [
  238. [
  239. 2
  240. ],
  241. "resume-token-1002"
  242. ]
  243. },
  244. {
  245. "watchSnapshot": {
  246. "version": 1002
  247. },
  248. "expect": [
  249. {
  250. "query": {
  251. "path": "collection",
  252. "limit": 2,
  253. "filters": [],
  254. "orderBys": []
  255. },
  256. "added": [
  257. [
  258. "collection/a",
  259. 1000,
  260. {
  261. "key": "a"
  262. }
  263. ],
  264. [
  265. "collection/b",
  266. 1001,
  267. {
  268. "key": "b"
  269. }
  270. ]
  271. ],
  272. "errorCode": 0,
  273. "fromCache": false,
  274. "hasPendingWrites": false
  275. }
  276. ]
  277. },
  278. {
  279. "watchReset": [
  280. 2
  281. ]
  282. },
  283. {
  284. "watchEntity": {
  285. "docs": [
  286. [
  287. "collection/b",
  288. 1001,
  289. {
  290. "key": "b"
  291. }
  292. ],
  293. [
  294. "collection/c",
  295. 1002,
  296. {
  297. "key": "c"
  298. }
  299. ]
  300. ],
  301. "targets": [
  302. 2
  303. ]
  304. }
  305. },
  306. {
  307. "watchCurrent": [
  308. [
  309. 2
  310. ],
  311. "resume-token-2000"
  312. ]
  313. },
  314. {
  315. "watchSnapshot": {
  316. "version": 2000
  317. },
  318. "stateExpect": {
  319. "limboDocs": [
  320. "collection/a"
  321. ],
  322. "activeTargets": {
  323. "1": {
  324. "query": {
  325. "path": "collection/a",
  326. "filters": [],
  327. "orderBys": []
  328. },
  329. "resumeToken": ""
  330. },
  331. "2": {
  332. "query": {
  333. "path": "collection",
  334. "limit": 2,
  335. "filters": [],
  336. "orderBys": []
  337. },
  338. "resumeToken": ""
  339. }
  340. }
  341. },
  342. "expect": [
  343. {
  344. "query": {
  345. "path": "collection",
  346. "limit": 2,
  347. "filters": [],
  348. "orderBys": []
  349. },
  350. "errorCode": 0,
  351. "fromCache": true,
  352. "hasPendingWrites": false
  353. }
  354. ]
  355. },
  356. {
  357. "watchAck": [
  358. 1
  359. ]
  360. },
  361. {
  362. "watchCurrent": [
  363. [
  364. 1
  365. ],
  366. "resume-token-2000"
  367. ]
  368. },
  369. {
  370. "watchSnapshot": {
  371. "version": 2000
  372. },
  373. "stateExpect": {
  374. "limboDocs": [],
  375. "activeTargets": {
  376. "2": {
  377. "query": {
  378. "path": "collection",
  379. "limit": 2,
  380. "filters": [],
  381. "orderBys": []
  382. },
  383. "resumeToken": ""
  384. }
  385. }
  386. },
  387. "expect": [
  388. {
  389. "query": {
  390. "path": "collection",
  391. "limit": 2,
  392. "filters": [],
  393. "orderBys": []
  394. },
  395. "added": [
  396. [
  397. "collection/c",
  398. 1002,
  399. {
  400. "key": "c"
  401. }
  402. ]
  403. ],
  404. "removed": [
  405. [
  406. "collection/a",
  407. 1000,
  408. {
  409. "key": "a"
  410. }
  411. ]
  412. ],
  413. "errorCode": 0,
  414. "fromCache": false,
  415. "hasPendingWrites": false
  416. }
  417. ]
  418. }
  419. ]
  420. },
  421. "Documents in limit can handle removed messages": {
  422. "describeName": "Limits:",
  423. "itName": "Documents in limit can handle removed messages",
  424. "tags": [],
  425. "config": {
  426. "useGarbageCollection": true,
  427. "numClients": 1
  428. },
  429. "steps": [
  430. {
  431. "userListen": [
  432. 2,
  433. {
  434. "path": "collection",
  435. "limit": 2,
  436. "filters": [],
  437. "orderBys": []
  438. }
  439. ],
  440. "stateExpect": {
  441. "activeTargets": {
  442. "2": {
  443. "query": {
  444. "path": "collection",
  445. "limit": 2,
  446. "filters": [],
  447. "orderBys": []
  448. },
  449. "resumeToken": ""
  450. }
  451. }
  452. }
  453. },
  454. {
  455. "watchAck": [
  456. 2
  457. ]
  458. },
  459. {
  460. "watchEntity": {
  461. "docs": [
  462. [
  463. "collection/a",
  464. 1000,
  465. {
  466. "key": "a"
  467. }
  468. ],
  469. [
  470. "collection/c",
  471. 1001,
  472. {
  473. "key": "c"
  474. }
  475. ]
  476. ],
  477. "targets": [
  478. 2
  479. ]
  480. }
  481. },
  482. {
  483. "watchCurrent": [
  484. [
  485. 2
  486. ],
  487. "resume-token-1001"
  488. ]
  489. },
  490. {
  491. "watchSnapshot": {
  492. "version": 1001
  493. },
  494. "expect": [
  495. {
  496. "query": {
  497. "path": "collection",
  498. "limit": 2,
  499. "filters": [],
  500. "orderBys": []
  501. },
  502. "added": [
  503. [
  504. "collection/a",
  505. 1000,
  506. {
  507. "key": "a"
  508. }
  509. ],
  510. [
  511. "collection/c",
  512. 1001,
  513. {
  514. "key": "c"
  515. }
  516. ]
  517. ],
  518. "errorCode": 0,
  519. "fromCache": false,
  520. "hasPendingWrites": false
  521. }
  522. ]
  523. },
  524. {
  525. "watchEntity": {
  526. "docs": [
  527. [
  528. "collection/b",
  529. 1002,
  530. {
  531. "key": "b"
  532. }
  533. ]
  534. ],
  535. "targets": [
  536. 2
  537. ]
  538. }
  539. },
  540. {
  541. "watchEntity": {
  542. "key": "collection/c",
  543. "removedTargets": [
  544. 2
  545. ]
  546. }
  547. },
  548. {
  549. "watchSnapshot": {
  550. "version": 1002
  551. },
  552. "stateExpect": {
  553. "limboDocs": [],
  554. "activeTargets": {
  555. "2": {
  556. "query": {
  557. "path": "collection",
  558. "limit": 2,
  559. "filters": [],
  560. "orderBys": []
  561. },
  562. "resumeToken": ""
  563. }
  564. }
  565. },
  566. "expect": [
  567. {
  568. "query": {
  569. "path": "collection",
  570. "limit": 2,
  571. "filters": [],
  572. "orderBys": []
  573. },
  574. "added": [
  575. [
  576. "collection/b",
  577. 1002,
  578. {
  579. "key": "b"
  580. }
  581. ]
  582. ],
  583. "removed": [
  584. [
  585. "collection/c",
  586. 1001,
  587. {
  588. "key": "c"
  589. }
  590. ]
  591. ],
  592. "errorCode": 0,
  593. "fromCache": false,
  594. "hasPendingWrites": false
  595. }
  596. ]
  597. }
  598. ]
  599. },
  600. "Documents in limit are can handle removed messages for only one of many query": {
  601. "describeName": "Limits:",
  602. "itName": "Documents in limit are can handle removed messages for only one of many query",
  603. "tags": [],
  604. "config": {
  605. "useGarbageCollection": true,
  606. "numClients": 1
  607. },
  608. "steps": [
  609. {
  610. "userListen": [
  611. 2,
  612. {
  613. "path": "collection",
  614. "limit": 2,
  615. "filters": [],
  616. "orderBys": []
  617. }
  618. ],
  619. "stateExpect": {
  620. "activeTargets": {
  621. "2": {
  622. "query": {
  623. "path": "collection",
  624. "limit": 2,
  625. "filters": [],
  626. "orderBys": []
  627. },
  628. "resumeToken": ""
  629. }
  630. }
  631. }
  632. },
  633. {
  634. "userListen": [
  635. 4,
  636. {
  637. "path": "collection",
  638. "limit": 3,
  639. "filters": [],
  640. "orderBys": []
  641. }
  642. ],
  643. "stateExpect": {
  644. "activeTargets": {
  645. "2": {
  646. "query": {
  647. "path": "collection",
  648. "limit": 2,
  649. "filters": [],
  650. "orderBys": []
  651. },
  652. "resumeToken": ""
  653. },
  654. "4": {
  655. "query": {
  656. "path": "collection",
  657. "limit": 3,
  658. "filters": [],
  659. "orderBys": []
  660. },
  661. "resumeToken": ""
  662. }
  663. }
  664. }
  665. },
  666. {
  667. "watchAck": [
  668. 2
  669. ]
  670. },
  671. {
  672. "watchAck": [
  673. 4
  674. ]
  675. },
  676. {
  677. "watchEntity": {
  678. "docs": [
  679. [
  680. "collection/a",
  681. 1000,
  682. {
  683. "key": "a"
  684. }
  685. ],
  686. [
  687. "collection/c",
  688. 1001,
  689. {
  690. "key": "c"
  691. }
  692. ]
  693. ],
  694. "targets": [
  695. 2
  696. ]
  697. }
  698. },
  699. {
  700. "watchEntity": {
  701. "docs": [
  702. [
  703. "collection/a",
  704. 1000,
  705. {
  706. "key": "a"
  707. }
  708. ],
  709. [
  710. "collection/c",
  711. 1001,
  712. {
  713. "key": "c"
  714. }
  715. ]
  716. ],
  717. "targets": [
  718. 4
  719. ]
  720. }
  721. },
  722. {
  723. "watchCurrent": [
  724. [
  725. 2
  726. ],
  727. "resume-token-1001"
  728. ]
  729. },
  730. {
  731. "watchCurrent": [
  732. [
  733. 4
  734. ],
  735. "resume-token-1001"
  736. ]
  737. },
  738. {
  739. "watchSnapshot": {
  740. "version": 1001
  741. },
  742. "expect": [
  743. {
  744. "query": {
  745. "path": "collection",
  746. "limit": 2,
  747. "filters": [],
  748. "orderBys": []
  749. },
  750. "added": [
  751. [
  752. "collection/a",
  753. 1000,
  754. {
  755. "key": "a"
  756. }
  757. ],
  758. [
  759. "collection/c",
  760. 1001,
  761. {
  762. "key": "c"
  763. }
  764. ]
  765. ],
  766. "errorCode": 0,
  767. "fromCache": false,
  768. "hasPendingWrites": false
  769. },
  770. {
  771. "query": {
  772. "path": "collection",
  773. "limit": 3,
  774. "filters": [],
  775. "orderBys": []
  776. },
  777. "added": [
  778. [
  779. "collection/a",
  780. 1000,
  781. {
  782. "key": "a"
  783. }
  784. ],
  785. [
  786. "collection/c",
  787. 1001,
  788. {
  789. "key": "c"
  790. }
  791. ]
  792. ],
  793. "errorCode": 0,
  794. "fromCache": false,
  795. "hasPendingWrites": false
  796. }
  797. ]
  798. },
  799. {
  800. "watchEntity": {
  801. "docs": [
  802. [
  803. "collection/b",
  804. 1002,
  805. {
  806. "key": "b"
  807. }
  808. ]
  809. ],
  810. "targets": [
  811. 2,
  812. 4
  813. ]
  814. }
  815. },
  816. {
  817. "watchEntity": {
  818. "key": "collection/c",
  819. "removedTargets": [
  820. 2
  821. ]
  822. }
  823. },
  824. {
  825. "watchSnapshot": {
  826. "version": 1002
  827. },
  828. "stateExpect": {
  829. "limboDocs": [],
  830. "activeTargets": {
  831. "2": {
  832. "query": {
  833. "path": "collection",
  834. "limit": 2,
  835. "filters": [],
  836. "orderBys": []
  837. },
  838. "resumeToken": ""
  839. },
  840. "4": {
  841. "query": {
  842. "path": "collection",
  843. "limit": 3,
  844. "filters": [],
  845. "orderBys": []
  846. },
  847. "resumeToken": ""
  848. }
  849. }
  850. },
  851. "expect": [
  852. {
  853. "query": {
  854. "path": "collection",
  855. "limit": 2,
  856. "filters": [],
  857. "orderBys": []
  858. },
  859. "added": [
  860. [
  861. "collection/b",
  862. 1002,
  863. {
  864. "key": "b"
  865. }
  866. ]
  867. ],
  868. "removed": [
  869. [
  870. "collection/c",
  871. 1001,
  872. {
  873. "key": "c"
  874. }
  875. ]
  876. ],
  877. "errorCode": 0,
  878. "fromCache": false,
  879. "hasPendingWrites": false
  880. },
  881. {
  882. "query": {
  883. "path": "collection",
  884. "limit": 3,
  885. "filters": [],
  886. "orderBys": []
  887. },
  888. "added": [
  889. [
  890. "collection/b",
  891. 1002,
  892. {
  893. "key": "b"
  894. }
  895. ]
  896. ],
  897. "errorCode": 0,
  898. "fromCache": false,
  899. "hasPendingWrites": false
  900. }
  901. ]
  902. }
  903. ]
  904. },
  905. "Multiple docs in limbo in full limit query": {
  906. "describeName": "Limits:",
  907. "itName": "Multiple docs in limbo in full limit query",
  908. "tags": [],
  909. "config": {
  910. "useGarbageCollection": true,
  911. "numClients": 1
  912. },
  913. "steps": [
  914. {
  915. "userListen": [
  916. 2,
  917. {
  918. "path": "collection",
  919. "limit": 2,
  920. "filters": [],
  921. "orderBys": []
  922. }
  923. ],
  924. "stateExpect": {
  925. "activeTargets": {
  926. "2": {
  927. "query": {
  928. "path": "collection",
  929. "limit": 2,
  930. "filters": [],
  931. "orderBys": []
  932. },
  933. "resumeToken": ""
  934. }
  935. }
  936. }
  937. },
  938. {
  939. "watchAck": [
  940. 2
  941. ]
  942. },
  943. {
  944. "watchEntity": {
  945. "docs": [
  946. [
  947. "collection/a",
  948. 1000,
  949. {
  950. "key": "a"
  951. }
  952. ],
  953. [
  954. "collection/b",
  955. 1001,
  956. {
  957. "key": "b"
  958. }
  959. ]
  960. ],
  961. "targets": [
  962. 2
  963. ]
  964. }
  965. },
  966. {
  967. "watchCurrent": [
  968. [
  969. 2
  970. ],
  971. "resume-token-1001"
  972. ]
  973. },
  974. {
  975. "watchSnapshot": {
  976. "version": 1001
  977. },
  978. "expect": [
  979. {
  980. "query": {
  981. "path": "collection",
  982. "limit": 2,
  983. "filters": [],
  984. "orderBys": []
  985. },
  986. "added": [
  987. [
  988. "collection/a",
  989. 1000,
  990. {
  991. "key": "a"
  992. }
  993. ],
  994. [
  995. "collection/b",
  996. 1001,
  997. {
  998. "key": "b"
  999. }
  1000. ]
  1001. ],
  1002. "errorCode": 0,
  1003. "fromCache": false,
  1004. "hasPendingWrites": false
  1005. }
  1006. ]
  1007. },
  1008. {
  1009. "userListen": [
  1010. 4,
  1011. {
  1012. "path": "collection",
  1013. "filters": [],
  1014. "orderBys": []
  1015. }
  1016. ],
  1017. "stateExpect": {
  1018. "activeTargets": {
  1019. "2": {
  1020. "query": {
  1021. "path": "collection",
  1022. "limit": 2,
  1023. "filters": [],
  1024. "orderBys": []
  1025. },
  1026. "resumeToken": ""
  1027. },
  1028. "4": {
  1029. "query": {
  1030. "path": "collection",
  1031. "filters": [],
  1032. "orderBys": []
  1033. },
  1034. "resumeToken": ""
  1035. }
  1036. }
  1037. },
  1038. "expect": [
  1039. {
  1040. "query": {
  1041. "path": "collection",
  1042. "filters": [],
  1043. "orderBys": []
  1044. },
  1045. "added": [
  1046. [
  1047. "collection/a",
  1048. 1000,
  1049. {
  1050. "key": "a"
  1051. }
  1052. ],
  1053. [
  1054. "collection/b",
  1055. 1001,
  1056. {
  1057. "key": "b"
  1058. }
  1059. ]
  1060. ],
  1061. "errorCode": 0,
  1062. "fromCache": true,
  1063. "hasPendingWrites": false
  1064. }
  1065. ]
  1066. },
  1067. {
  1068. "watchAck": [
  1069. 4
  1070. ]
  1071. },
  1072. {
  1073. "watchEntity": {
  1074. "docs": [
  1075. [
  1076. "collection/a",
  1077. 1000,
  1078. {
  1079. "key": "a"
  1080. }
  1081. ],
  1082. [
  1083. "collection/b",
  1084. 1001,
  1085. {
  1086. "key": "b"
  1087. }
  1088. ],
  1089. [
  1090. "collection/c",
  1091. 1002,
  1092. {
  1093. "key": "c"
  1094. }
  1095. ],
  1096. [
  1097. "collection/d",
  1098. 1003,
  1099. {
  1100. "key": "d"
  1101. }
  1102. ],
  1103. [
  1104. "collection/e",
  1105. 1004,
  1106. {
  1107. "key": "e"
  1108. }
  1109. ],
  1110. [
  1111. "collection/f",
  1112. 1005,
  1113. {
  1114. "key": "f"
  1115. }
  1116. ]
  1117. ],
  1118. "targets": [
  1119. 4
  1120. ]
  1121. }
  1122. },
  1123. {
  1124. "watchCurrent": [
  1125. [
  1126. 4
  1127. ],
  1128. "resume-token-1005"
  1129. ]
  1130. },
  1131. {
  1132. "watchSnapshot": {
  1133. "version": 1005
  1134. },
  1135. "expect": [
  1136. {
  1137. "query": {
  1138. "path": "collection",
  1139. "filters": [],
  1140. "orderBys": []
  1141. },
  1142. "added": [
  1143. [
  1144. "collection/c",
  1145. 1002,
  1146. {
  1147. "key": "c"
  1148. }
  1149. ],
  1150. [
  1151. "collection/d",
  1152. 1003,
  1153. {
  1154. "key": "d"
  1155. }
  1156. ],
  1157. [
  1158. "collection/e",
  1159. 1004,
  1160. {
  1161. "key": "e"
  1162. }
  1163. ],
  1164. [
  1165. "collection/f",
  1166. 1005,
  1167. {
  1168. "key": "f"
  1169. }
  1170. ]
  1171. ],
  1172. "errorCode": 0,
  1173. "fromCache": false,
  1174. "hasPendingWrites": false
  1175. }
  1176. ]
  1177. },
  1178. {
  1179. "watchReset": [
  1180. 2
  1181. ]
  1182. },
  1183. {
  1184. "watchEntity": {
  1185. "docs": [
  1186. [
  1187. "collection/e",
  1188. 1004,
  1189. {
  1190. "key": "e"
  1191. }
  1192. ],
  1193. [
  1194. "collection/f",
  1195. 1005,
  1196. {
  1197. "key": "f"
  1198. }
  1199. ]
  1200. ],
  1201. "targets": [
  1202. 2
  1203. ]
  1204. }
  1205. },
  1206. {
  1207. "watchCurrent": [
  1208. [
  1209. 2
  1210. ],
  1211. "resume-token-2000"
  1212. ]
  1213. },
  1214. {
  1215. "watchSnapshot": {
  1216. "version": 2000
  1217. },
  1218. "stateExpect": {
  1219. "limboDocs": [
  1220. "collection/a",
  1221. "collection/b"
  1222. ],
  1223. "activeTargets": {
  1224. "1": {
  1225. "query": {
  1226. "path": "collection/a",
  1227. "filters": [],
  1228. "orderBys": []
  1229. },
  1230. "resumeToken": ""
  1231. },
  1232. "2": {
  1233. "query": {
  1234. "path": "collection",
  1235. "limit": 2,
  1236. "filters": [],
  1237. "orderBys": []
  1238. },
  1239. "resumeToken": ""
  1240. },
  1241. "3": {
  1242. "query": {
  1243. "path": "collection/b",
  1244. "filters": [],
  1245. "orderBys": []
  1246. },
  1247. "resumeToken": ""
  1248. },
  1249. "4": {
  1250. "query": {
  1251. "path": "collection",
  1252. "filters": [],
  1253. "orderBys": []
  1254. },
  1255. "resumeToken": ""
  1256. }
  1257. }
  1258. },
  1259. "expect": [
  1260. {
  1261. "query": {
  1262. "path": "collection",
  1263. "limit": 2,
  1264. "filters": [],
  1265. "orderBys": []
  1266. },
  1267. "errorCode": 0,
  1268. "fromCache": true,
  1269. "hasPendingWrites": false
  1270. }
  1271. ]
  1272. },
  1273. {
  1274. "watchAck": [
  1275. 1
  1276. ]
  1277. },
  1278. {
  1279. "watchCurrent": [
  1280. [
  1281. 1
  1282. ],
  1283. "resume-token-2000"
  1284. ]
  1285. },
  1286. {
  1287. "watchSnapshot": {
  1288. "version": 2000
  1289. },
  1290. "stateExpect": {
  1291. "limboDocs": [
  1292. "collection/b",
  1293. "collection/c"
  1294. ],
  1295. "activeTargets": {
  1296. "2": {
  1297. "query": {
  1298. "path": "collection",
  1299. "limit": 2,
  1300. "filters": [],
  1301. "orderBys": []
  1302. },
  1303. "resumeToken": ""
  1304. },
  1305. "3": {
  1306. "query": {
  1307. "path": "collection/b",
  1308. "filters": [],
  1309. "orderBys": []
  1310. },
  1311. "resumeToken": ""
  1312. },
  1313. "4": {
  1314. "query": {
  1315. "path": "collection",
  1316. "filters": [],
  1317. "orderBys": []
  1318. },
  1319. "resumeToken": ""
  1320. },
  1321. "5": {
  1322. "query": {
  1323. "path": "collection/c",
  1324. "filters": [],
  1325. "orderBys": []
  1326. },
  1327. "resumeToken": ""
  1328. }
  1329. }
  1330. },
  1331. "expect": [
  1332. {
  1333. "query": {
  1334. "path": "collection",
  1335. "filters": [],
  1336. "orderBys": []
  1337. },
  1338. "removed": [
  1339. [
  1340. "collection/a",
  1341. 1000,
  1342. {
  1343. "key": "a"
  1344. }
  1345. ]
  1346. ],
  1347. "errorCode": 0,
  1348. "fromCache": false,
  1349. "hasPendingWrites": false
  1350. },
  1351. {
  1352. "query": {
  1353. "path": "collection",
  1354. "limit": 2,
  1355. "filters": [],
  1356. "orderBys": []
  1357. },
  1358. "added": [
  1359. [
  1360. "collection/c",
  1361. 1002,
  1362. {
  1363. "key": "c"
  1364. }
  1365. ]
  1366. ],
  1367. "removed": [
  1368. [
  1369. "collection/a",
  1370. 1000,
  1371. {
  1372. "key": "a"
  1373. }
  1374. ]
  1375. ],
  1376. "errorCode": 0,
  1377. "fromCache": true,
  1378. "hasPendingWrites": false
  1379. }
  1380. ]
  1381. },
  1382. {
  1383. "watchRemove": {
  1384. "targetIds": [
  1385. 1
  1386. ]
  1387. }
  1388. },
  1389. {
  1390. "watchAck": [
  1391. 3
  1392. ]
  1393. },
  1394. {
  1395. "watchCurrent": [
  1396. [
  1397. 3
  1398. ],
  1399. "resume-token-2001"
  1400. ]
  1401. },
  1402. {
  1403. "watchSnapshot": {
  1404. "version": 2001
  1405. },
  1406. "stateExpect": {
  1407. "limboDocs": [
  1408. "collection/c",
  1409. "collection/d"
  1410. ],
  1411. "activeTargets": {
  1412. "2": {
  1413. "query": {
  1414. "path": "collection",
  1415. "limit": 2,
  1416. "filters": [],
  1417. "orderBys": []
  1418. },
  1419. "resumeToken": ""
  1420. },
  1421. "4": {
  1422. "query": {
  1423. "path": "collection",
  1424. "filters": [],
  1425. "orderBys": []
  1426. },
  1427. "resumeToken": ""
  1428. },
  1429. "5": {
  1430. "query": {
  1431. "path": "collection/c",
  1432. "filters": [],
  1433. "orderBys": []
  1434. },
  1435. "resumeToken": ""
  1436. },
  1437. "7": {
  1438. "query": {
  1439. "path": "collection/d",
  1440. "filters": [],
  1441. "orderBys": []
  1442. },
  1443. "resumeToken": ""
  1444. }
  1445. }
  1446. },
  1447. "expect": [
  1448. {
  1449. "query": {
  1450. "path": "collection",
  1451. "filters": [],
  1452. "orderBys": []
  1453. },
  1454. "removed": [
  1455. [
  1456. "collection/b",
  1457. 1001,
  1458. {
  1459. "key": "b"
  1460. }
  1461. ]
  1462. ],
  1463. "errorCode": 0,
  1464. "fromCache": false,
  1465. "hasPendingWrites": false
  1466. },
  1467. {
  1468. "query": {
  1469. "path": "collection",
  1470. "limit": 2,
  1471. "filters": [],
  1472. "orderBys": []
  1473. },
  1474. "added": [
  1475. [
  1476. "collection/d",
  1477. 1003,
  1478. {
  1479. "key": "d"
  1480. }
  1481. ]
  1482. ],
  1483. "removed": [
  1484. [
  1485. "collection/b",
  1486. 1001,
  1487. {
  1488. "key": "b"
  1489. }
  1490. ]
  1491. ],
  1492. "errorCode": 0,
  1493. "fromCache": true,
  1494. "hasPendingWrites": false
  1495. }
  1496. ]
  1497. },
  1498. {
  1499. "watchRemove": {
  1500. "targetIds": [
  1501. 3
  1502. ]
  1503. }
  1504. },
  1505. {
  1506. "watchAck": [
  1507. 5
  1508. ]
  1509. },
  1510. {
  1511. "watchCurrent": [
  1512. [
  1513. 5
  1514. ],
  1515. "resume-token-2002"
  1516. ]
  1517. },
  1518. {
  1519. "watchSnapshot": {
  1520. "version": 2002
  1521. },
  1522. "stateExpect": {
  1523. "limboDocs": [
  1524. "collection/d"
  1525. ],
  1526. "activeTargets": {
  1527. "2": {
  1528. "query": {
  1529. "path": "collection",
  1530. "limit": 2,
  1531. "filters": [],
  1532. "orderBys": []
  1533. },
  1534. "resumeToken": ""
  1535. },
  1536. "4": {
  1537. "query": {
  1538. "path": "collection",
  1539. "filters": [],
  1540. "orderBys": []
  1541. },
  1542. "resumeToken": ""
  1543. },
  1544. "7": {
  1545. "query": {
  1546. "path": "collection/d",
  1547. "filters": [],
  1548. "orderBys": []
  1549. },
  1550. "resumeToken": ""
  1551. }
  1552. }
  1553. },
  1554. "expect": [
  1555. {
  1556. "query": {
  1557. "path": "collection",
  1558. "filters": [],
  1559. "orderBys": []
  1560. },
  1561. "removed": [
  1562. [
  1563. "collection/c",
  1564. 1002,
  1565. {
  1566. "key": "c"
  1567. }
  1568. ]
  1569. ],
  1570. "errorCode": 0,
  1571. "fromCache": false,
  1572. "hasPendingWrites": false
  1573. },
  1574. {
  1575. "query": {
  1576. "path": "collection",
  1577. "limit": 2,
  1578. "filters": [],
  1579. "orderBys": []
  1580. },
  1581. "added": [
  1582. [
  1583. "collection/e",
  1584. 1004,
  1585. {
  1586. "key": "e"
  1587. }
  1588. ]
  1589. ],
  1590. "removed": [
  1591. [
  1592. "collection/c",
  1593. 1002,
  1594. {
  1595. "key": "c"
  1596. }
  1597. ]
  1598. ],
  1599. "errorCode": 0,
  1600. "fromCache": true,
  1601. "hasPendingWrites": false
  1602. }
  1603. ]
  1604. },
  1605. {
  1606. "watchRemove": {
  1607. "targetIds": [
  1608. 5
  1609. ]
  1610. }
  1611. },
  1612. {
  1613. "watchAck": [
  1614. 7
  1615. ]
  1616. },
  1617. {
  1618. "watchCurrent": [
  1619. [
  1620. 7
  1621. ],
  1622. "resume-token-2003"
  1623. ]
  1624. },
  1625. {
  1626. "watchSnapshot": {
  1627. "version": 2003
  1628. },
  1629. "stateExpect": {
  1630. "limboDocs": [],
  1631. "activeTargets": {
  1632. "2": {
  1633. "query": {
  1634. "path": "collection",
  1635. "limit": 2,
  1636. "filters": [],
  1637. "orderBys": []
  1638. },
  1639. "resumeToken": ""
  1640. },
  1641. "4": {
  1642. "query": {
  1643. "path": "collection",
  1644. "filters": [],
  1645. "orderBys": []
  1646. },
  1647. "resumeToken": ""
  1648. }
  1649. }
  1650. },
  1651. "expect": [
  1652. {
  1653. "query": {
  1654. "path": "collection",
  1655. "filters": [],
  1656. "orderBys": []
  1657. },
  1658. "removed": [
  1659. [
  1660. "collection/d",
  1661. 1003,
  1662. {
  1663. "key": "d"
  1664. }
  1665. ]
  1666. ],
  1667. "errorCode": 0,
  1668. "fromCache": false,
  1669. "hasPendingWrites": false
  1670. },
  1671. {
  1672. "query": {
  1673. "path": "collection",
  1674. "limit": 2,
  1675. "filters": [],
  1676. "orderBys": []
  1677. },
  1678. "added": [
  1679. [
  1680. "collection/f",
  1681. 1005,
  1682. {
  1683. "key": "f"
  1684. }
  1685. ]
  1686. ],
  1687. "removed": [
  1688. [
  1689. "collection/d",
  1690. 1003,
  1691. {
  1692. "key": "d"
  1693. }
  1694. ]
  1695. ],
  1696. "errorCode": 0,
  1697. "fromCache": false,
  1698. "hasPendingWrites": false
  1699. }
  1700. ]
  1701. },
  1702. {
  1703. "watchRemove": {
  1704. "targetIds": [
  1705. 7
  1706. ]
  1707. }
  1708. }
  1709. ]
  1710. },
  1711. "Limit query is refilled by primary client": {
  1712. "describeName": "Limits:",
  1713. "itName": "Limit query is refilled by primary client",
  1714. "tags": [
  1715. "multi-client"
  1716. ],
  1717. "config": {
  1718. "useGarbageCollection": false,
  1719. "numClients": 2
  1720. },
  1721. "steps": [
  1722. {
  1723. "drainQueue": true,
  1724. "clientIndex": 0
  1725. },
  1726. {
  1727. "applyClientState": {
  1728. "visibility": "visible"
  1729. },
  1730. "clientIndex": 0
  1731. },
  1732. {
  1733. "drainQueue": true,
  1734. "clientIndex": 1
  1735. },
  1736. {
  1737. "userListen": [
  1738. 2,
  1739. {
  1740. "path": "collection",
  1741. "limit": 2,
  1742. "filters": [],
  1743. "orderBys": []
  1744. }
  1745. ],
  1746. "stateExpect": {
  1747. "activeTargets": {
  1748. "2": {
  1749. "query": {
  1750. "path": "collection",
  1751. "limit": 2,
  1752. "filters": [],
  1753. "orderBys": []
  1754. },
  1755. "resumeToken": ""
  1756. }
  1757. }
  1758. },
  1759. "clientIndex": 1
  1760. },
  1761. {
  1762. "drainQueue": true,
  1763. "stateExpect": {
  1764. "activeTargets": {
  1765. "2": {
  1766. "query": {
  1767. "path": "collection",
  1768. "limit": 2,
  1769. "filters": [],
  1770. "orderBys": []
  1771. },
  1772. "resumeToken": ""
  1773. }
  1774. }
  1775. },
  1776. "clientIndex": 0
  1777. },
  1778. {
  1779. "watchAck": [
  1780. 2
  1781. ],
  1782. "clientIndex": 0
  1783. },
  1784. {
  1785. "watchEntity": {
  1786. "docs": [
  1787. [
  1788. "collection/a",
  1789. 1000,
  1790. {
  1791. "key": "a"
  1792. }
  1793. ],
  1794. [
  1795. "collection/c",
  1796. 1001,
  1797. {
  1798. "key": "c"
  1799. }
  1800. ]
  1801. ],
  1802. "targets": [
  1803. 2
  1804. ]
  1805. },
  1806. "clientIndex": 0
  1807. },
  1808. {
  1809. "watchCurrent": [
  1810. [
  1811. 2
  1812. ],
  1813. "resume-token-1001"
  1814. ],
  1815. "clientIndex": 0
  1816. },
  1817. {
  1818. "watchSnapshot": {
  1819. "version": 1001
  1820. },
  1821. "clientIndex": 0
  1822. },
  1823. {
  1824. "drainQueue": true,
  1825. "expect": [
  1826. {
  1827. "query": {
  1828. "path": "collection",
  1829. "limit": 2,
  1830. "filters": [],
  1831. "orderBys": []
  1832. },
  1833. "added": [
  1834. [
  1835. "collection/a",
  1836. 1000,
  1837. {
  1838. "key": "a"
  1839. }
  1840. ],
  1841. [
  1842. "collection/c",
  1843. 1001,
  1844. {
  1845. "key": "c"
  1846. }
  1847. ]
  1848. ],
  1849. "errorCode": 0,
  1850. "fromCache": false,
  1851. "hasPendingWrites": false
  1852. }
  1853. ],
  1854. "clientIndex": 1
  1855. },
  1856. {
  1857. "drainQueue": true,
  1858. "clientIndex": 0
  1859. },
  1860. {
  1861. "watchEntity": {
  1862. "docs": [
  1863. [
  1864. "collection/b",
  1865. 1002,
  1866. {
  1867. "key": "b"
  1868. }
  1869. ]
  1870. ],
  1871. "targets": [
  1872. 2
  1873. ]
  1874. },
  1875. "clientIndex": 0
  1876. },
  1877. {
  1878. "watchEntity": {
  1879. "docs": [
  1880. [
  1881. "collection/c",
  1882. 1001,
  1883. {
  1884. "key": "c"
  1885. }
  1886. ]
  1887. ],
  1888. "removedTargets": [
  1889. 2
  1890. ]
  1891. },
  1892. "clientIndex": 0
  1893. },
  1894. {
  1895. "watchSnapshot": {
  1896. "version": 1002
  1897. },
  1898. "clientIndex": 0
  1899. },
  1900. {
  1901. "drainQueue": true,
  1902. "expect": [
  1903. {
  1904. "query": {
  1905. "path": "collection",
  1906. "limit": 2,
  1907. "filters": [],
  1908. "orderBys": []
  1909. },
  1910. "added": [
  1911. [
  1912. "collection/b",
  1913. 1002,
  1914. {
  1915. "key": "b"
  1916. }
  1917. ]
  1918. ],
  1919. "removed": [
  1920. [
  1921. "collection/c",
  1922. 1001,
  1923. {
  1924. "key": "c"
  1925. }
  1926. ]
  1927. ],
  1928. "errorCode": 0,
  1929. "fromCache": false,
  1930. "hasPendingWrites": false
  1931. }
  1932. ],
  1933. "clientIndex": 1
  1934. }
  1935. ]
  1936. },
  1937. "Limit query includes write from secondary client ": {
  1938. "describeName": "Limits:",
  1939. "itName": "Limit query includes write from secondary client ",
  1940. "tags": [
  1941. "multi-client"
  1942. ],
  1943. "config": {
  1944. "useGarbageCollection": false,
  1945. "numClients": 3
  1946. },
  1947. "steps": [
  1948. {
  1949. "drainQueue": true,
  1950. "clientIndex": 0
  1951. },
  1952. {
  1953. "applyClientState": {
  1954. "visibility": "visible"
  1955. },
  1956. "clientIndex": 0
  1957. },
  1958. {
  1959. "drainQueue": true,
  1960. "clientIndex": 1
  1961. },
  1962. {
  1963. "userListen": [
  1964. 2,
  1965. {
  1966. "path": "collection",
  1967. "limit": 2,
  1968. "filters": [],
  1969. "orderBys": []
  1970. }
  1971. ],
  1972. "stateExpect": {
  1973. "activeTargets": {
  1974. "2": {
  1975. "query": {
  1976. "path": "collection",
  1977. "limit": 2,
  1978. "filters": [],
  1979. "orderBys": []
  1980. },
  1981. "resumeToken": ""
  1982. }
  1983. }
  1984. },
  1985. "clientIndex": 1
  1986. },
  1987. {
  1988. "drainQueue": true,
  1989. "stateExpect": {
  1990. "activeTargets": {
  1991. "2": {
  1992. "query": {
  1993. "path": "collection",
  1994. "limit": 2,
  1995. "filters": [],
  1996. "orderBys": []
  1997. },
  1998. "resumeToken": ""
  1999. }
  2000. }
  2001. },
  2002. "clientIndex": 0
  2003. },
  2004. {
  2005. "watchAck": [
  2006. 2
  2007. ],
  2008. "clientIndex": 0
  2009. },
  2010. {
  2011. "watchEntity": {
  2012. "docs": [
  2013. [
  2014. "collection/b",
  2015. 1001,
  2016. {
  2017. "key": "b"
  2018. }
  2019. ],
  2020. [
  2021. "collection/c",
  2022. 1002,
  2023. {
  2024. "key": "c"
  2025. }
  2026. ]
  2027. ],
  2028. "targets": [
  2029. 2
  2030. ]
  2031. },
  2032. "clientIndex": 0
  2033. },
  2034. {
  2035. "watchCurrent": [
  2036. [
  2037. 2
  2038. ],
  2039. "resume-token-1002"
  2040. ],
  2041. "clientIndex": 0
  2042. },
  2043. {
  2044. "watchSnapshot": {
  2045. "version": 1002
  2046. },
  2047. "clientIndex": 0
  2048. },
  2049. {
  2050. "drainQueue": true,
  2051. "expect": [
  2052. {
  2053. "query": {
  2054. "path": "collection",
  2055. "limit": 2,
  2056. "filters": [],
  2057. "orderBys": []
  2058. },
  2059. "added": [
  2060. [
  2061. "collection/b",
  2062. 1001,
  2063. {
  2064. "key": "b"
  2065. }
  2066. ],
  2067. [
  2068. "collection/c",
  2069. 1002,
  2070. {
  2071. "key": "c"
  2072. }
  2073. ]
  2074. ],
  2075. "errorCode": 0,
  2076. "fromCache": false,
  2077. "hasPendingWrites": false
  2078. }
  2079. ],
  2080. "clientIndex": 1
  2081. },
  2082. {
  2083. "drainQueue": true,
  2084. "clientIndex": 2
  2085. },
  2086. {
  2087. "userSet": [
  2088. "collection/a",
  2089. {
  2090. "key": "a"
  2091. }
  2092. ],
  2093. "clientIndex": 2
  2094. },
  2095. {
  2096. "drainQueue": true,
  2097. "expect": [
  2098. {
  2099. "query": {
  2100. "path": "collection",
  2101. "limit": 2,
  2102. "filters": [],
  2103. "orderBys": []
  2104. },
  2105. "added": [
  2106. [
  2107. "collection/a",
  2108. 0,
  2109. {
  2110. "key": "a"
  2111. },
  2112. "local"
  2113. ]
  2114. ],
  2115. "removed": [
  2116. [
  2117. "collection/c",
  2118. 1002,
  2119. {
  2120. "key": "c"
  2121. }
  2122. ]
  2123. ],
  2124. "errorCode": 0,
  2125. "fromCache": false,
  2126. "hasPendingWrites": true
  2127. }
  2128. ],
  2129. "clientIndex": 1
  2130. },
  2131. {
  2132. "drainQueue": true,
  2133. "clientIndex": 0
  2134. },
  2135. {
  2136. "writeAck": {
  2137. "version": 1003
  2138. },
  2139. "clientIndex": 0
  2140. },
  2141. {
  2142. "watchEntity": {
  2143. "docs": [
  2144. [
  2145. "collection/a",
  2146. 1003,
  2147. {
  2148. "key": "a"
  2149. }
  2150. ]
  2151. ],
  2152. "targets": [
  2153. 2
  2154. ]
  2155. },
  2156. "clientIndex": 0
  2157. },
  2158. {
  2159. "watchEntity": {
  2160. "docs": [
  2161. [
  2162. "collection/c",
  2163. 1002,
  2164. {
  2165. "key": "c"
  2166. }
  2167. ]
  2168. ],
  2169. "removedTargets": [
  2170. 2
  2171. ]
  2172. },
  2173. "clientIndex": 0
  2174. },
  2175. {
  2176. "watchSnapshot": {
  2177. "version": 1003
  2178. },
  2179. "clientIndex": 0
  2180. },
  2181. {
  2182. "drainQueue": true,
  2183. "expect": [
  2184. {
  2185. "query": {
  2186. "path": "collection",
  2187. "limit": 2,
  2188. "filters": [],
  2189. "orderBys": []
  2190. },
  2191. "metadata": [
  2192. [
  2193. "collection/a",
  2194. 1003,
  2195. {
  2196. "key": "a"
  2197. }
  2198. ]
  2199. ],
  2200. "errorCode": 0,
  2201. "fromCache": false,
  2202. "hasPendingWrites": false
  2203. }
  2204. ],
  2205. "clientIndex": 1
  2206. },
  2207. {
  2208. "drainQueue": true,
  2209. "stateExpect": {
  2210. "userCallbacks": {
  2211. "acknowledgedDocs": [
  2212. "collection/a"
  2213. ],
  2214. "rejectedDocs": []
  2215. }
  2216. },
  2217. "clientIndex": 2
  2218. }
  2219. ]
  2220. }
  2221. }