limbo_spec_test.json 234 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491
  1. {
  2. "A limbo resolution for a document should be removed from the queue when the last query listen stops": {
  3. "describeName": "Limbo Documents:",
  4. "itName": "A limbo resolution for a document should be removed from the queue when the last query listen stops",
  5. "tags": [
  6. ],
  7. "config": {
  8. "maxConcurrentLimboResolutions": 1,
  9. "numClients": 1,
  10. "useEagerGCForMemory": false
  11. },
  12. "steps": [
  13. {
  14. "userListen": {
  15. "query": {
  16. "filters": [
  17. ],
  18. "orderBys": [
  19. ],
  20. "path": "collection1"
  21. },
  22. "targetId": 2
  23. },
  24. "expectedState": {
  25. "activeTargets": {
  26. "2": {
  27. "queries": [
  28. {
  29. "filters": [
  30. ],
  31. "orderBys": [
  32. ],
  33. "path": "collection1"
  34. }
  35. ],
  36. "resumeToken": ""
  37. }
  38. }
  39. }
  40. },
  41. {
  42. "watchAck": [
  43. 2
  44. ]
  45. },
  46. {
  47. "watchEntity": {
  48. "docs": [
  49. {
  50. "createTime": 0,
  51. "key": "collection1/doc",
  52. "options": {
  53. "hasCommittedMutations": false,
  54. "hasLocalMutations": false
  55. },
  56. "value": {
  57. "key": 1
  58. },
  59. "version": 1000
  60. }
  61. ],
  62. "targets": [
  63. 2
  64. ]
  65. }
  66. },
  67. {
  68. "watchCurrent": [
  69. [
  70. 2
  71. ],
  72. "resume-token-1000"
  73. ]
  74. },
  75. {
  76. "watchSnapshot": {
  77. "targetIds": [
  78. ],
  79. "version": 1000
  80. },
  81. "expectedSnapshotEvents": [
  82. {
  83. "added": [
  84. {
  85. "createTime": 0,
  86. "key": "collection1/doc",
  87. "options": {
  88. "hasCommittedMutations": false,
  89. "hasLocalMutations": false
  90. },
  91. "value": {
  92. "key": 1
  93. },
  94. "version": 1000
  95. }
  96. ],
  97. "errorCode": 0,
  98. "fromCache": false,
  99. "hasPendingWrites": false,
  100. "query": {
  101. "filters": [
  102. ],
  103. "orderBys": [
  104. ],
  105. "path": "collection1"
  106. }
  107. }
  108. ]
  109. },
  110. {
  111. "userUnlisten": [
  112. 2,
  113. {
  114. "filters": [
  115. ],
  116. "orderBys": [
  117. ],
  118. "path": "collection1"
  119. }
  120. ],
  121. "expectedState": {
  122. "activeTargets": {
  123. }
  124. }
  125. },
  126. {
  127. "userListen": {
  128. "query": {
  129. "filters": [
  130. [
  131. "key",
  132. "==",
  133. 1
  134. ]
  135. ],
  136. "orderBys": [
  137. ],
  138. "path": "collection1"
  139. },
  140. "targetId": 4
  141. },
  142. "expectedSnapshotEvents": [
  143. {
  144. "added": [
  145. {
  146. "createTime": 0,
  147. "key": "collection1/doc",
  148. "options": {
  149. "hasCommittedMutations": false,
  150. "hasLocalMutations": false
  151. },
  152. "value": {
  153. "key": 1
  154. },
  155. "version": 1000
  156. }
  157. ],
  158. "errorCode": 0,
  159. "fromCache": true,
  160. "hasPendingWrites": false,
  161. "query": {
  162. "filters": [
  163. [
  164. "key",
  165. "==",
  166. 1
  167. ]
  168. ],
  169. "orderBys": [
  170. ],
  171. "path": "collection1"
  172. }
  173. }
  174. ],
  175. "expectedState": {
  176. "activeTargets": {
  177. "4": {
  178. "queries": [
  179. {
  180. "filters": [
  181. [
  182. "key",
  183. "==",
  184. 1
  185. ]
  186. ],
  187. "orderBys": [
  188. ],
  189. "path": "collection1"
  190. }
  191. ],
  192. "resumeToken": ""
  193. }
  194. }
  195. }
  196. },
  197. {
  198. "watchAck": [
  199. 4
  200. ]
  201. },
  202. {
  203. "watchEntity": {
  204. "docs": [
  205. ],
  206. "targets": [
  207. 4
  208. ]
  209. }
  210. },
  211. {
  212. "watchCurrent": [
  213. [
  214. 4
  215. ],
  216. "resume-token-1001"
  217. ]
  218. },
  219. {
  220. "watchSnapshot": {
  221. "targetIds": [
  222. ],
  223. "version": 1001
  224. },
  225. "expectedState": {
  226. "activeLimboDocs": [
  227. "collection1/doc"
  228. ],
  229. "activeTargets": {
  230. "1": {
  231. "queries": [
  232. {
  233. "filters": [
  234. ],
  235. "orderBys": [
  236. ],
  237. "path": "collection1/doc"
  238. }
  239. ],
  240. "resumeToken": "",
  241. "targetPurpose": "TargetPurposeLimboResolution"
  242. },
  243. "4": {
  244. "queries": [
  245. {
  246. "filters": [
  247. [
  248. "key",
  249. "==",
  250. 1
  251. ]
  252. ],
  253. "orderBys": [
  254. ],
  255. "path": "collection1"
  256. }
  257. ],
  258. "resumeToken": ""
  259. }
  260. }
  261. }
  262. },
  263. {
  264. "userListen": {
  265. "query": {
  266. "filters": [
  267. ],
  268. "orderBys": [
  269. ],
  270. "path": "collection2"
  271. },
  272. "targetId": 6
  273. },
  274. "expectedState": {
  275. "activeTargets": {
  276. "1": {
  277. "queries": [
  278. {
  279. "filters": [
  280. ],
  281. "orderBys": [
  282. ],
  283. "path": "collection1/doc"
  284. }
  285. ],
  286. "resumeToken": "",
  287. "targetPurpose": "TargetPurposeLimboResolution"
  288. },
  289. "4": {
  290. "queries": [
  291. {
  292. "filters": [
  293. [
  294. "key",
  295. "==",
  296. 1
  297. ]
  298. ],
  299. "orderBys": [
  300. ],
  301. "path": "collection1"
  302. }
  303. ],
  304. "resumeToken": ""
  305. },
  306. "6": {
  307. "queries": [
  308. {
  309. "filters": [
  310. ],
  311. "orderBys": [
  312. ],
  313. "path": "collection2"
  314. }
  315. ],
  316. "resumeToken": ""
  317. }
  318. }
  319. }
  320. },
  321. {
  322. "watchAck": [
  323. 6
  324. ]
  325. },
  326. {
  327. "watchEntity": {
  328. "docs": [
  329. {
  330. "createTime": 0,
  331. "key": "collection2/doc",
  332. "options": {
  333. "hasCommittedMutations": false,
  334. "hasLocalMutations": false
  335. },
  336. "value": {
  337. "key": 2
  338. },
  339. "version": 1000
  340. }
  341. ],
  342. "targets": [
  343. 6
  344. ]
  345. }
  346. },
  347. {
  348. "watchCurrent": [
  349. [
  350. 6
  351. ],
  352. "resume-token-1002"
  353. ]
  354. },
  355. {
  356. "watchSnapshot": {
  357. "targetIds": [
  358. ],
  359. "version": 1002
  360. },
  361. "expectedSnapshotEvents": [
  362. {
  363. "added": [
  364. {
  365. "createTime": 0,
  366. "key": "collection2/doc",
  367. "options": {
  368. "hasCommittedMutations": false,
  369. "hasLocalMutations": false
  370. },
  371. "value": {
  372. "key": 2
  373. },
  374. "version": 1000
  375. }
  376. ],
  377. "errorCode": 0,
  378. "fromCache": false,
  379. "hasPendingWrites": false,
  380. "query": {
  381. "filters": [
  382. ],
  383. "orderBys": [
  384. ],
  385. "path": "collection2"
  386. }
  387. }
  388. ]
  389. },
  390. {
  391. "userUnlisten": [
  392. 6,
  393. {
  394. "filters": [
  395. ],
  396. "orderBys": [
  397. ],
  398. "path": "collection2"
  399. }
  400. ],
  401. "expectedState": {
  402. "activeTargets": {
  403. "1": {
  404. "queries": [
  405. {
  406. "filters": [
  407. ],
  408. "orderBys": [
  409. ],
  410. "path": "collection1/doc"
  411. }
  412. ],
  413. "resumeToken": "",
  414. "targetPurpose": "TargetPurposeLimboResolution"
  415. },
  416. "4": {
  417. "queries": [
  418. {
  419. "filters": [
  420. [
  421. "key",
  422. "==",
  423. 1
  424. ]
  425. ],
  426. "orderBys": [
  427. ],
  428. "path": "collection1"
  429. }
  430. ],
  431. "resumeToken": ""
  432. }
  433. }
  434. }
  435. },
  436. {
  437. "userListen": {
  438. "query": {
  439. "filters": [
  440. [
  441. "key",
  442. "==",
  443. 2
  444. ]
  445. ],
  446. "orderBys": [
  447. ],
  448. "path": "collection2"
  449. },
  450. "targetId": 8
  451. },
  452. "expectedSnapshotEvents": [
  453. {
  454. "added": [
  455. {
  456. "createTime": 0,
  457. "key": "collection2/doc",
  458. "options": {
  459. "hasCommittedMutations": false,
  460. "hasLocalMutations": false
  461. },
  462. "value": {
  463. "key": 2
  464. },
  465. "version": 1000
  466. }
  467. ],
  468. "errorCode": 0,
  469. "fromCache": true,
  470. "hasPendingWrites": false,
  471. "query": {
  472. "filters": [
  473. [
  474. "key",
  475. "==",
  476. 2
  477. ]
  478. ],
  479. "orderBys": [
  480. ],
  481. "path": "collection2"
  482. }
  483. }
  484. ],
  485. "expectedState": {
  486. "activeTargets": {
  487. "1": {
  488. "queries": [
  489. {
  490. "filters": [
  491. ],
  492. "orderBys": [
  493. ],
  494. "path": "collection1/doc"
  495. }
  496. ],
  497. "resumeToken": "",
  498. "targetPurpose": "TargetPurposeLimboResolution"
  499. },
  500. "4": {
  501. "queries": [
  502. {
  503. "filters": [
  504. [
  505. "key",
  506. "==",
  507. 1
  508. ]
  509. ],
  510. "orderBys": [
  511. ],
  512. "path": "collection1"
  513. }
  514. ],
  515. "resumeToken": ""
  516. },
  517. "8": {
  518. "queries": [
  519. {
  520. "filters": [
  521. [
  522. "key",
  523. "==",
  524. 2
  525. ]
  526. ],
  527. "orderBys": [
  528. ],
  529. "path": "collection2"
  530. }
  531. ],
  532. "resumeToken": ""
  533. }
  534. }
  535. }
  536. },
  537. {
  538. "watchAck": [
  539. 8
  540. ]
  541. },
  542. {
  543. "watchEntity": {
  544. "docs": [
  545. ],
  546. "targets": [
  547. 8
  548. ]
  549. }
  550. },
  551. {
  552. "watchCurrent": [
  553. [
  554. 8
  555. ],
  556. "resume-token-1003"
  557. ]
  558. },
  559. {
  560. "watchSnapshot": {
  561. "targetIds": [
  562. ],
  563. "version": 1003
  564. },
  565. "expectedState": {
  566. "activeLimboDocs": [
  567. "collection1/doc"
  568. ],
  569. "activeTargets": {
  570. "1": {
  571. "queries": [
  572. {
  573. "filters": [
  574. ],
  575. "orderBys": [
  576. ],
  577. "path": "collection1/doc"
  578. }
  579. ],
  580. "resumeToken": "",
  581. "targetPurpose": "TargetPurposeLimboResolution"
  582. },
  583. "4": {
  584. "queries": [
  585. {
  586. "filters": [
  587. [
  588. "key",
  589. "==",
  590. 1
  591. ]
  592. ],
  593. "orderBys": [
  594. ],
  595. "path": "collection1"
  596. }
  597. ],
  598. "resumeToken": ""
  599. },
  600. "8": {
  601. "queries": [
  602. {
  603. "filters": [
  604. [
  605. "key",
  606. "==",
  607. 2
  608. ]
  609. ],
  610. "orderBys": [
  611. ],
  612. "path": "collection2"
  613. }
  614. ],
  615. "resumeToken": ""
  616. }
  617. },
  618. "enqueuedLimboDocs": [
  619. "collection2/doc"
  620. ]
  621. }
  622. },
  623. {
  624. "userListen": {
  625. "query": {
  626. "filters": [
  627. [
  628. "key",
  629. ">=",
  630. 2
  631. ]
  632. ],
  633. "orderBys": [
  634. ],
  635. "path": "collection2"
  636. },
  637. "targetId": 10
  638. },
  639. "expectedSnapshotEvents": [
  640. {
  641. "added": [
  642. {
  643. "createTime": 0,
  644. "key": "collection2/doc",
  645. "options": {
  646. "hasCommittedMutations": false,
  647. "hasLocalMutations": false
  648. },
  649. "value": {
  650. "key": 2
  651. },
  652. "version": 1000
  653. }
  654. ],
  655. "errorCode": 0,
  656. "fromCache": true,
  657. "hasPendingWrites": false,
  658. "query": {
  659. "filters": [
  660. [
  661. "key",
  662. ">=",
  663. 2
  664. ]
  665. ],
  666. "orderBys": [
  667. ],
  668. "path": "collection2"
  669. }
  670. }
  671. ],
  672. "expectedState": {
  673. "activeTargets": {
  674. "1": {
  675. "queries": [
  676. {
  677. "filters": [
  678. ],
  679. "orderBys": [
  680. ],
  681. "path": "collection1/doc"
  682. }
  683. ],
  684. "resumeToken": "",
  685. "targetPurpose": "TargetPurposeLimboResolution"
  686. },
  687. "10": {
  688. "queries": [
  689. {
  690. "filters": [
  691. [
  692. "key",
  693. ">=",
  694. 2
  695. ]
  696. ],
  697. "orderBys": [
  698. ],
  699. "path": "collection2"
  700. }
  701. ],
  702. "resumeToken": ""
  703. },
  704. "4": {
  705. "queries": [
  706. {
  707. "filters": [
  708. [
  709. "key",
  710. "==",
  711. 1
  712. ]
  713. ],
  714. "orderBys": [
  715. ],
  716. "path": "collection1"
  717. }
  718. ],
  719. "resumeToken": ""
  720. },
  721. "8": {
  722. "queries": [
  723. {
  724. "filters": [
  725. [
  726. "key",
  727. "==",
  728. 2
  729. ]
  730. ],
  731. "orderBys": [
  732. ],
  733. "path": "collection2"
  734. }
  735. ],
  736. "resumeToken": ""
  737. }
  738. }
  739. }
  740. },
  741. {
  742. "watchAck": [
  743. 10
  744. ]
  745. },
  746. {
  747. "watchEntity": {
  748. "docs": [
  749. ],
  750. "targets": [
  751. 10
  752. ]
  753. }
  754. },
  755. {
  756. "watchCurrent": [
  757. [
  758. 10
  759. ],
  760. "resume-token-1004"
  761. ]
  762. },
  763. {
  764. "watchSnapshot": {
  765. "targetIds": [
  766. ],
  767. "version": 1004
  768. },
  769. "expectedState": {
  770. "activeLimboDocs": [
  771. "collection1/doc"
  772. ],
  773. "activeTargets": {
  774. "1": {
  775. "queries": [
  776. {
  777. "filters": [
  778. ],
  779. "orderBys": [
  780. ],
  781. "path": "collection1/doc"
  782. }
  783. ],
  784. "resumeToken": "",
  785. "targetPurpose": "TargetPurposeLimboResolution"
  786. },
  787. "10": {
  788. "queries": [
  789. {
  790. "filters": [
  791. [
  792. "key",
  793. ">=",
  794. 2
  795. ]
  796. ],
  797. "orderBys": [
  798. ],
  799. "path": "collection2"
  800. }
  801. ],
  802. "resumeToken": ""
  803. },
  804. "4": {
  805. "queries": [
  806. {
  807. "filters": [
  808. [
  809. "key",
  810. "==",
  811. 1
  812. ]
  813. ],
  814. "orderBys": [
  815. ],
  816. "path": "collection1"
  817. }
  818. ],
  819. "resumeToken": ""
  820. },
  821. "8": {
  822. "queries": [
  823. {
  824. "filters": [
  825. [
  826. "key",
  827. "==",
  828. 2
  829. ]
  830. ],
  831. "orderBys": [
  832. ],
  833. "path": "collection2"
  834. }
  835. ],
  836. "resumeToken": ""
  837. }
  838. },
  839. "enqueuedLimboDocs": [
  840. "collection2/doc"
  841. ]
  842. }
  843. },
  844. {
  845. "userUnlisten": [
  846. 10,
  847. {
  848. "filters": [
  849. [
  850. "key",
  851. ">=",
  852. 2
  853. ]
  854. ],
  855. "orderBys": [
  856. ],
  857. "path": "collection2"
  858. }
  859. ],
  860. "expectedState": {
  861. "activeLimboDocs": [
  862. "collection1/doc"
  863. ],
  864. "activeTargets": {
  865. "1": {
  866. "queries": [
  867. {
  868. "filters": [
  869. ],
  870. "orderBys": [
  871. ],
  872. "path": "collection1/doc"
  873. }
  874. ],
  875. "resumeToken": "",
  876. "targetPurpose": "TargetPurposeLimboResolution"
  877. },
  878. "4": {
  879. "queries": [
  880. {
  881. "filters": [
  882. [
  883. "key",
  884. "==",
  885. 1
  886. ]
  887. ],
  888. "orderBys": [
  889. ],
  890. "path": "collection1"
  891. }
  892. ],
  893. "resumeToken": ""
  894. },
  895. "8": {
  896. "queries": [
  897. {
  898. "filters": [
  899. [
  900. "key",
  901. "==",
  902. 2
  903. ]
  904. ],
  905. "orderBys": [
  906. ],
  907. "path": "collection2"
  908. }
  909. ],
  910. "resumeToken": ""
  911. }
  912. },
  913. "enqueuedLimboDocs": [
  914. "collection2/doc"
  915. ]
  916. }
  917. },
  918. {
  919. "userUnlisten": [
  920. 8,
  921. {
  922. "filters": [
  923. [
  924. "key",
  925. "==",
  926. 2
  927. ]
  928. ],
  929. "orderBys": [
  930. ],
  931. "path": "collection2"
  932. }
  933. ],
  934. "expectedState": {
  935. "activeLimboDocs": [
  936. "collection1/doc"
  937. ],
  938. "activeTargets": {
  939. "1": {
  940. "queries": [
  941. {
  942. "filters": [
  943. ],
  944. "orderBys": [
  945. ],
  946. "path": "collection1/doc"
  947. }
  948. ],
  949. "resumeToken": "",
  950. "targetPurpose": "TargetPurposeLimboResolution"
  951. },
  952. "4": {
  953. "queries": [
  954. {
  955. "filters": [
  956. [
  957. "key",
  958. "==",
  959. 1
  960. ]
  961. ],
  962. "orderBys": [
  963. ],
  964. "path": "collection1"
  965. }
  966. ],
  967. "resumeToken": ""
  968. }
  969. },
  970. "enqueuedLimboDocs": [
  971. ]
  972. }
  973. }
  974. ]
  975. },
  976. "A limbo resolution for a document should not be enqueued if one is already enqueued": {
  977. "describeName": "Limbo Documents:",
  978. "itName": "A limbo resolution for a document should not be enqueued if one is already enqueued",
  979. "tags": [
  980. ],
  981. "config": {
  982. "maxConcurrentLimboResolutions": 1,
  983. "numClients": 1,
  984. "useEagerGCForMemory": false
  985. },
  986. "steps": [
  987. {
  988. "userListen": {
  989. "query": {
  990. "filters": [
  991. ],
  992. "orderBys": [
  993. ],
  994. "path": "collection1"
  995. },
  996. "targetId": 2
  997. },
  998. "expectedState": {
  999. "activeTargets": {
  1000. "2": {
  1001. "queries": [
  1002. {
  1003. "filters": [
  1004. ],
  1005. "orderBys": [
  1006. ],
  1007. "path": "collection1"
  1008. }
  1009. ],
  1010. "resumeToken": ""
  1011. }
  1012. }
  1013. }
  1014. },
  1015. {
  1016. "watchAck": [
  1017. 2
  1018. ]
  1019. },
  1020. {
  1021. "watchEntity": {
  1022. "docs": [
  1023. {
  1024. "createTime": 0,
  1025. "key": "collection1/doc1",
  1026. "options": {
  1027. "hasCommittedMutations": false,
  1028. "hasLocalMutations": false
  1029. },
  1030. "value": {
  1031. "key": 1
  1032. },
  1033. "version": 1000
  1034. }
  1035. ],
  1036. "targets": [
  1037. 2
  1038. ]
  1039. }
  1040. },
  1041. {
  1042. "watchCurrent": [
  1043. [
  1044. 2
  1045. ],
  1046. "resume-token-1000"
  1047. ]
  1048. },
  1049. {
  1050. "watchSnapshot": {
  1051. "targetIds": [
  1052. ],
  1053. "version": 1000
  1054. },
  1055. "expectedSnapshotEvents": [
  1056. {
  1057. "added": [
  1058. {
  1059. "createTime": 0,
  1060. "key": "collection1/doc1",
  1061. "options": {
  1062. "hasCommittedMutations": false,
  1063. "hasLocalMutations": false
  1064. },
  1065. "value": {
  1066. "key": 1
  1067. },
  1068. "version": 1000
  1069. }
  1070. ],
  1071. "errorCode": 0,
  1072. "fromCache": false,
  1073. "hasPendingWrites": false,
  1074. "query": {
  1075. "filters": [
  1076. ],
  1077. "orderBys": [
  1078. ],
  1079. "path": "collection1"
  1080. }
  1081. }
  1082. ]
  1083. },
  1084. {
  1085. "userUnlisten": [
  1086. 2,
  1087. {
  1088. "filters": [
  1089. ],
  1090. "orderBys": [
  1091. ],
  1092. "path": "collection1"
  1093. }
  1094. ],
  1095. "expectedState": {
  1096. "activeTargets": {
  1097. }
  1098. }
  1099. },
  1100. {
  1101. "userListen": {
  1102. "query": {
  1103. "filters": [
  1104. [
  1105. "key",
  1106. "==",
  1107. 1
  1108. ]
  1109. ],
  1110. "orderBys": [
  1111. ],
  1112. "path": "collection1"
  1113. },
  1114. "targetId": 4
  1115. },
  1116. "expectedSnapshotEvents": [
  1117. {
  1118. "added": [
  1119. {
  1120. "createTime": 0,
  1121. "key": "collection1/doc1",
  1122. "options": {
  1123. "hasCommittedMutations": false,
  1124. "hasLocalMutations": false
  1125. },
  1126. "value": {
  1127. "key": 1
  1128. },
  1129. "version": 1000
  1130. }
  1131. ],
  1132. "errorCode": 0,
  1133. "fromCache": true,
  1134. "hasPendingWrites": false,
  1135. "query": {
  1136. "filters": [
  1137. [
  1138. "key",
  1139. "==",
  1140. 1
  1141. ]
  1142. ],
  1143. "orderBys": [
  1144. ],
  1145. "path": "collection1"
  1146. }
  1147. }
  1148. ],
  1149. "expectedState": {
  1150. "activeTargets": {
  1151. "4": {
  1152. "queries": [
  1153. {
  1154. "filters": [
  1155. [
  1156. "key",
  1157. "==",
  1158. 1
  1159. ]
  1160. ],
  1161. "orderBys": [
  1162. ],
  1163. "path": "collection1"
  1164. }
  1165. ],
  1166. "resumeToken": ""
  1167. }
  1168. }
  1169. }
  1170. },
  1171. {
  1172. "watchAck": [
  1173. 4
  1174. ]
  1175. },
  1176. {
  1177. "watchEntity": {
  1178. "docs": [
  1179. ],
  1180. "targets": [
  1181. 4
  1182. ]
  1183. }
  1184. },
  1185. {
  1186. "watchCurrent": [
  1187. [
  1188. 4
  1189. ],
  1190. "resume-token-1001"
  1191. ]
  1192. },
  1193. {
  1194. "watchSnapshot": {
  1195. "targetIds": [
  1196. ],
  1197. "version": 1001
  1198. },
  1199. "expectedState": {
  1200. "activeLimboDocs": [
  1201. "collection1/doc1"
  1202. ],
  1203. "activeTargets": {
  1204. "1": {
  1205. "queries": [
  1206. {
  1207. "filters": [
  1208. ],
  1209. "orderBys": [
  1210. ],
  1211. "path": "collection1/doc1"
  1212. }
  1213. ],
  1214. "resumeToken": "",
  1215. "targetPurpose": "TargetPurposeLimboResolution"
  1216. },
  1217. "4": {
  1218. "queries": [
  1219. {
  1220. "filters": [
  1221. [
  1222. "key",
  1223. "==",
  1224. 1
  1225. ]
  1226. ],
  1227. "orderBys": [
  1228. ],
  1229. "path": "collection1"
  1230. }
  1231. ],
  1232. "resumeToken": ""
  1233. }
  1234. }
  1235. }
  1236. },
  1237. {
  1238. "userListen": {
  1239. "query": {
  1240. "filters": [
  1241. ],
  1242. "orderBys": [
  1243. ],
  1244. "path": "collection2"
  1245. },
  1246. "targetId": 6
  1247. },
  1248. "expectedState": {
  1249. "activeTargets": {
  1250. "1": {
  1251. "queries": [
  1252. {
  1253. "filters": [
  1254. ],
  1255. "orderBys": [
  1256. ],
  1257. "path": "collection1/doc1"
  1258. }
  1259. ],
  1260. "resumeToken": "",
  1261. "targetPurpose": "TargetPurposeLimboResolution"
  1262. },
  1263. "4": {
  1264. "queries": [
  1265. {
  1266. "filters": [
  1267. [
  1268. "key",
  1269. "==",
  1270. 1
  1271. ]
  1272. ],
  1273. "orderBys": [
  1274. ],
  1275. "path": "collection1"
  1276. }
  1277. ],
  1278. "resumeToken": ""
  1279. },
  1280. "6": {
  1281. "queries": [
  1282. {
  1283. "filters": [
  1284. ],
  1285. "orderBys": [
  1286. ],
  1287. "path": "collection2"
  1288. }
  1289. ],
  1290. "resumeToken": ""
  1291. }
  1292. }
  1293. }
  1294. },
  1295. {
  1296. "watchAck": [
  1297. 6
  1298. ]
  1299. },
  1300. {
  1301. "watchEntity": {
  1302. "docs": [
  1303. {
  1304. "createTime": 0,
  1305. "key": "collection2/doc2",
  1306. "options": {
  1307. "hasCommittedMutations": false,
  1308. "hasLocalMutations": false
  1309. },
  1310. "value": {
  1311. "key": 2
  1312. },
  1313. "version": 1000
  1314. }
  1315. ],
  1316. "targets": [
  1317. 6
  1318. ]
  1319. }
  1320. },
  1321. {
  1322. "watchCurrent": [
  1323. [
  1324. 6
  1325. ],
  1326. "resume-token-1002"
  1327. ]
  1328. },
  1329. {
  1330. "watchSnapshot": {
  1331. "targetIds": [
  1332. ],
  1333. "version": 1002
  1334. },
  1335. "expectedSnapshotEvents": [
  1336. {
  1337. "added": [
  1338. {
  1339. "createTime": 0,
  1340. "key": "collection2/doc2",
  1341. "options": {
  1342. "hasCommittedMutations": false,
  1343. "hasLocalMutations": false
  1344. },
  1345. "value": {
  1346. "key": 2
  1347. },
  1348. "version": 1000
  1349. }
  1350. ],
  1351. "errorCode": 0,
  1352. "fromCache": false,
  1353. "hasPendingWrites": false,
  1354. "query": {
  1355. "filters": [
  1356. ],
  1357. "orderBys": [
  1358. ],
  1359. "path": "collection2"
  1360. }
  1361. }
  1362. ]
  1363. },
  1364. {
  1365. "userUnlisten": [
  1366. 6,
  1367. {
  1368. "filters": [
  1369. ],
  1370. "orderBys": [
  1371. ],
  1372. "path": "collection2"
  1373. }
  1374. ],
  1375. "expectedState": {
  1376. "activeTargets": {
  1377. "1": {
  1378. "queries": [
  1379. {
  1380. "filters": [
  1381. ],
  1382. "orderBys": [
  1383. ],
  1384. "path": "collection1/doc1"
  1385. }
  1386. ],
  1387. "resumeToken": "",
  1388. "targetPurpose": "TargetPurposeLimboResolution"
  1389. },
  1390. "4": {
  1391. "queries": [
  1392. {
  1393. "filters": [
  1394. [
  1395. "key",
  1396. "==",
  1397. 1
  1398. ]
  1399. ],
  1400. "orderBys": [
  1401. ],
  1402. "path": "collection1"
  1403. }
  1404. ],
  1405. "resumeToken": ""
  1406. }
  1407. }
  1408. }
  1409. },
  1410. {
  1411. "userListen": {
  1412. "query": {
  1413. "filters": [
  1414. [
  1415. "key",
  1416. "==",
  1417. 2
  1418. ]
  1419. ],
  1420. "orderBys": [
  1421. ],
  1422. "path": "collection2"
  1423. },
  1424. "targetId": 8
  1425. },
  1426. "expectedSnapshotEvents": [
  1427. {
  1428. "added": [
  1429. {
  1430. "createTime": 0,
  1431. "key": "collection2/doc2",
  1432. "options": {
  1433. "hasCommittedMutations": false,
  1434. "hasLocalMutations": false
  1435. },
  1436. "value": {
  1437. "key": 2
  1438. },
  1439. "version": 1000
  1440. }
  1441. ],
  1442. "errorCode": 0,
  1443. "fromCache": true,
  1444. "hasPendingWrites": false,
  1445. "query": {
  1446. "filters": [
  1447. [
  1448. "key",
  1449. "==",
  1450. 2
  1451. ]
  1452. ],
  1453. "orderBys": [
  1454. ],
  1455. "path": "collection2"
  1456. }
  1457. }
  1458. ],
  1459. "expectedState": {
  1460. "activeTargets": {
  1461. "1": {
  1462. "queries": [
  1463. {
  1464. "filters": [
  1465. ],
  1466. "orderBys": [
  1467. ],
  1468. "path": "collection1/doc1"
  1469. }
  1470. ],
  1471. "resumeToken": "",
  1472. "targetPurpose": "TargetPurposeLimboResolution"
  1473. },
  1474. "4": {
  1475. "queries": [
  1476. {
  1477. "filters": [
  1478. [
  1479. "key",
  1480. "==",
  1481. 1
  1482. ]
  1483. ],
  1484. "orderBys": [
  1485. ],
  1486. "path": "collection1"
  1487. }
  1488. ],
  1489. "resumeToken": ""
  1490. },
  1491. "8": {
  1492. "queries": [
  1493. {
  1494. "filters": [
  1495. [
  1496. "key",
  1497. "==",
  1498. 2
  1499. ]
  1500. ],
  1501. "orderBys": [
  1502. ],
  1503. "path": "collection2"
  1504. }
  1505. ],
  1506. "resumeToken": ""
  1507. }
  1508. }
  1509. }
  1510. },
  1511. {
  1512. "watchAck": [
  1513. 8
  1514. ]
  1515. },
  1516. {
  1517. "watchEntity": {
  1518. "docs": [
  1519. ],
  1520. "targets": [
  1521. 8
  1522. ]
  1523. }
  1524. },
  1525. {
  1526. "watchCurrent": [
  1527. [
  1528. 8
  1529. ],
  1530. "resume-token-1003"
  1531. ]
  1532. },
  1533. {
  1534. "watchSnapshot": {
  1535. "targetIds": [
  1536. ],
  1537. "version": 1003
  1538. },
  1539. "expectedState": {
  1540. "activeLimboDocs": [
  1541. "collection1/doc1"
  1542. ],
  1543. "activeTargets": {
  1544. "1": {
  1545. "queries": [
  1546. {
  1547. "filters": [
  1548. ],
  1549. "orderBys": [
  1550. ],
  1551. "path": "collection1/doc1"
  1552. }
  1553. ],
  1554. "resumeToken": "",
  1555. "targetPurpose": "TargetPurposeLimboResolution"
  1556. },
  1557. "4": {
  1558. "queries": [
  1559. {
  1560. "filters": [
  1561. [
  1562. "key",
  1563. "==",
  1564. 1
  1565. ]
  1566. ],
  1567. "orderBys": [
  1568. ],
  1569. "path": "collection1"
  1570. }
  1571. ],
  1572. "resumeToken": ""
  1573. },
  1574. "8": {
  1575. "queries": [
  1576. {
  1577. "filters": [
  1578. [
  1579. "key",
  1580. "==",
  1581. 2
  1582. ]
  1583. ],
  1584. "orderBys": [
  1585. ],
  1586. "path": "collection2"
  1587. }
  1588. ],
  1589. "resumeToken": ""
  1590. }
  1591. },
  1592. "enqueuedLimboDocs": [
  1593. "collection2/doc2"
  1594. ]
  1595. }
  1596. },
  1597. {
  1598. "userListen": {
  1599. "query": {
  1600. "filters": [
  1601. [
  1602. "key",
  1603. ">=",
  1604. 2
  1605. ]
  1606. ],
  1607. "orderBys": [
  1608. ],
  1609. "path": "collection2"
  1610. },
  1611. "targetId": 10
  1612. },
  1613. "expectedSnapshotEvents": [
  1614. {
  1615. "added": [
  1616. {
  1617. "createTime": 0,
  1618. "key": "collection2/doc2",
  1619. "options": {
  1620. "hasCommittedMutations": false,
  1621. "hasLocalMutations": false
  1622. },
  1623. "value": {
  1624. "key": 2
  1625. },
  1626. "version": 1000
  1627. }
  1628. ],
  1629. "errorCode": 0,
  1630. "fromCache": true,
  1631. "hasPendingWrites": false,
  1632. "query": {
  1633. "filters": [
  1634. [
  1635. "key",
  1636. ">=",
  1637. 2
  1638. ]
  1639. ],
  1640. "orderBys": [
  1641. ],
  1642. "path": "collection2"
  1643. }
  1644. }
  1645. ],
  1646. "expectedState": {
  1647. "activeTargets": {
  1648. "1": {
  1649. "queries": [
  1650. {
  1651. "filters": [
  1652. ],
  1653. "orderBys": [
  1654. ],
  1655. "path": "collection1/doc1"
  1656. }
  1657. ],
  1658. "resumeToken": "",
  1659. "targetPurpose": "TargetPurposeLimboResolution"
  1660. },
  1661. "10": {
  1662. "queries": [
  1663. {
  1664. "filters": [
  1665. [
  1666. "key",
  1667. ">=",
  1668. 2
  1669. ]
  1670. ],
  1671. "orderBys": [
  1672. ],
  1673. "path": "collection2"
  1674. }
  1675. ],
  1676. "resumeToken": ""
  1677. },
  1678. "4": {
  1679. "queries": [
  1680. {
  1681. "filters": [
  1682. [
  1683. "key",
  1684. "==",
  1685. 1
  1686. ]
  1687. ],
  1688. "orderBys": [
  1689. ],
  1690. "path": "collection1"
  1691. }
  1692. ],
  1693. "resumeToken": ""
  1694. },
  1695. "8": {
  1696. "queries": [
  1697. {
  1698. "filters": [
  1699. [
  1700. "key",
  1701. "==",
  1702. 2
  1703. ]
  1704. ],
  1705. "orderBys": [
  1706. ],
  1707. "path": "collection2"
  1708. }
  1709. ],
  1710. "resumeToken": ""
  1711. }
  1712. }
  1713. }
  1714. },
  1715. {
  1716. "watchAck": [
  1717. 10
  1718. ]
  1719. },
  1720. {
  1721. "watchEntity": {
  1722. "docs": [
  1723. ],
  1724. "targets": [
  1725. 10
  1726. ]
  1727. }
  1728. },
  1729. {
  1730. "watchCurrent": [
  1731. [
  1732. 10
  1733. ],
  1734. "resume-token-1004"
  1735. ]
  1736. },
  1737. {
  1738. "watchSnapshot": {
  1739. "targetIds": [
  1740. ],
  1741. "version": 1004
  1742. },
  1743. "expectedState": {
  1744. "activeLimboDocs": [
  1745. "collection1/doc1"
  1746. ],
  1747. "activeTargets": {
  1748. "1": {
  1749. "queries": [
  1750. {
  1751. "filters": [
  1752. ],
  1753. "orderBys": [
  1754. ],
  1755. "path": "collection1/doc1"
  1756. }
  1757. ],
  1758. "resumeToken": "",
  1759. "targetPurpose": "TargetPurposeLimboResolution"
  1760. },
  1761. "10": {
  1762. "queries": [
  1763. {
  1764. "filters": [
  1765. [
  1766. "key",
  1767. ">=",
  1768. 2
  1769. ]
  1770. ],
  1771. "orderBys": [
  1772. ],
  1773. "path": "collection2"
  1774. }
  1775. ],
  1776. "resumeToken": ""
  1777. },
  1778. "4": {
  1779. "queries": [
  1780. {
  1781. "filters": [
  1782. [
  1783. "key",
  1784. "==",
  1785. 1
  1786. ]
  1787. ],
  1788. "orderBys": [
  1789. ],
  1790. "path": "collection1"
  1791. }
  1792. ],
  1793. "resumeToken": ""
  1794. },
  1795. "8": {
  1796. "queries": [
  1797. {
  1798. "filters": [
  1799. [
  1800. "key",
  1801. "==",
  1802. 2
  1803. ]
  1804. ],
  1805. "orderBys": [
  1806. ],
  1807. "path": "collection2"
  1808. }
  1809. ],
  1810. "resumeToken": ""
  1811. }
  1812. },
  1813. "enqueuedLimboDocs": [
  1814. "collection2/doc2"
  1815. ]
  1816. }
  1817. }
  1818. ]
  1819. },
  1820. "A limbo resolution for a document should not be started if one is already active": {
  1821. "describeName": "Limbo Documents:",
  1822. "itName": "A limbo resolution for a document should not be started if one is already active",
  1823. "tags": [
  1824. ],
  1825. "config": {
  1826. "numClients": 1,
  1827. "useEagerGCForMemory": false
  1828. },
  1829. "steps": [
  1830. {
  1831. "userListen": {
  1832. "query": {
  1833. "filters": [
  1834. ],
  1835. "orderBys": [
  1836. ],
  1837. "path": "collection"
  1838. },
  1839. "targetId": 2
  1840. },
  1841. "expectedState": {
  1842. "activeTargets": {
  1843. "2": {
  1844. "queries": [
  1845. {
  1846. "filters": [
  1847. ],
  1848. "orderBys": [
  1849. ],
  1850. "path": "collection"
  1851. }
  1852. ],
  1853. "resumeToken": ""
  1854. }
  1855. }
  1856. }
  1857. },
  1858. {
  1859. "watchAck": [
  1860. 2
  1861. ]
  1862. },
  1863. {
  1864. "watchEntity": {
  1865. "docs": [
  1866. {
  1867. "createTime": 0,
  1868. "key": "collection/doc",
  1869. "options": {
  1870. "hasCommittedMutations": false,
  1871. "hasLocalMutations": false
  1872. },
  1873. "value": {
  1874. "key": 1
  1875. },
  1876. "version": 1000
  1877. }
  1878. ],
  1879. "targets": [
  1880. 2
  1881. ]
  1882. }
  1883. },
  1884. {
  1885. "watchCurrent": [
  1886. [
  1887. 2
  1888. ],
  1889. "resume-token-1000"
  1890. ]
  1891. },
  1892. {
  1893. "watchSnapshot": {
  1894. "targetIds": [
  1895. ],
  1896. "version": 1000
  1897. },
  1898. "expectedSnapshotEvents": [
  1899. {
  1900. "added": [
  1901. {
  1902. "createTime": 0,
  1903. "key": "collection/doc",
  1904. "options": {
  1905. "hasCommittedMutations": false,
  1906. "hasLocalMutations": false
  1907. },
  1908. "value": {
  1909. "key": 1
  1910. },
  1911. "version": 1000
  1912. }
  1913. ],
  1914. "errorCode": 0,
  1915. "fromCache": false,
  1916. "hasPendingWrites": false,
  1917. "query": {
  1918. "filters": [
  1919. ],
  1920. "orderBys": [
  1921. ],
  1922. "path": "collection"
  1923. }
  1924. }
  1925. ]
  1926. },
  1927. {
  1928. "userUnlisten": [
  1929. 2,
  1930. {
  1931. "filters": [
  1932. ],
  1933. "orderBys": [
  1934. ],
  1935. "path": "collection"
  1936. }
  1937. ],
  1938. "expectedState": {
  1939. "activeTargets": {
  1940. }
  1941. }
  1942. },
  1943. {
  1944. "userListen": {
  1945. "query": {
  1946. "filters": [
  1947. [
  1948. "key",
  1949. "==",
  1950. 1
  1951. ]
  1952. ],
  1953. "orderBys": [
  1954. ],
  1955. "path": "collection"
  1956. },
  1957. "targetId": 4
  1958. },
  1959. "expectedSnapshotEvents": [
  1960. {
  1961. "added": [
  1962. {
  1963. "createTime": 0,
  1964. "key": "collection/doc",
  1965. "options": {
  1966. "hasCommittedMutations": false,
  1967. "hasLocalMutations": false
  1968. },
  1969. "value": {
  1970. "key": 1
  1971. },
  1972. "version": 1000
  1973. }
  1974. ],
  1975. "errorCode": 0,
  1976. "fromCache": true,
  1977. "hasPendingWrites": false,
  1978. "query": {
  1979. "filters": [
  1980. [
  1981. "key",
  1982. "==",
  1983. 1
  1984. ]
  1985. ],
  1986. "orderBys": [
  1987. ],
  1988. "path": "collection"
  1989. }
  1990. }
  1991. ],
  1992. "expectedState": {
  1993. "activeTargets": {
  1994. "4": {
  1995. "queries": [
  1996. {
  1997. "filters": [
  1998. [
  1999. "key",
  2000. "==",
  2001. 1
  2002. ]
  2003. ],
  2004. "orderBys": [
  2005. ],
  2006. "path": "collection"
  2007. }
  2008. ],
  2009. "resumeToken": ""
  2010. }
  2011. }
  2012. }
  2013. },
  2014. {
  2015. "watchAck": [
  2016. 4
  2017. ]
  2018. },
  2019. {
  2020. "watchEntity": {
  2021. "docs": [
  2022. ],
  2023. "targets": [
  2024. 4
  2025. ]
  2026. }
  2027. },
  2028. {
  2029. "watchCurrent": [
  2030. [
  2031. 4
  2032. ],
  2033. "resume-token-1001"
  2034. ]
  2035. },
  2036. {
  2037. "watchSnapshot": {
  2038. "targetIds": [
  2039. ],
  2040. "version": 1001
  2041. },
  2042. "expectedState": {
  2043. "activeLimboDocs": [
  2044. "collection/doc"
  2045. ],
  2046. "activeTargets": {
  2047. "1": {
  2048. "queries": [
  2049. {
  2050. "filters": [
  2051. ],
  2052. "orderBys": [
  2053. ],
  2054. "path": "collection/doc"
  2055. }
  2056. ],
  2057. "resumeToken": "",
  2058. "targetPurpose": "TargetPurposeLimboResolution"
  2059. },
  2060. "4": {
  2061. "queries": [
  2062. {
  2063. "filters": [
  2064. [
  2065. "key",
  2066. "==",
  2067. 1
  2068. ]
  2069. ],
  2070. "orderBys": [
  2071. ],
  2072. "path": "collection"
  2073. }
  2074. ],
  2075. "resumeToken": ""
  2076. }
  2077. },
  2078. "enqueuedLimboDocs": [
  2079. ]
  2080. }
  2081. },
  2082. {
  2083. "userListen": {
  2084. "query": {
  2085. "filters": [
  2086. [
  2087. "key",
  2088. ">=",
  2089. 1
  2090. ]
  2091. ],
  2092. "orderBys": [
  2093. ],
  2094. "path": "collection"
  2095. },
  2096. "targetId": 6
  2097. },
  2098. "expectedSnapshotEvents": [
  2099. {
  2100. "added": [
  2101. {
  2102. "createTime": 0,
  2103. "key": "collection/doc",
  2104. "options": {
  2105. "hasCommittedMutations": false,
  2106. "hasLocalMutations": false
  2107. },
  2108. "value": {
  2109. "key": 1
  2110. },
  2111. "version": 1000
  2112. }
  2113. ],
  2114. "errorCode": 0,
  2115. "fromCache": true,
  2116. "hasPendingWrites": false,
  2117. "query": {
  2118. "filters": [
  2119. [
  2120. "key",
  2121. ">=",
  2122. 1
  2123. ]
  2124. ],
  2125. "orderBys": [
  2126. ],
  2127. "path": "collection"
  2128. }
  2129. }
  2130. ],
  2131. "expectedState": {
  2132. "activeTargets": {
  2133. "1": {
  2134. "queries": [
  2135. {
  2136. "filters": [
  2137. ],
  2138. "orderBys": [
  2139. ],
  2140. "path": "collection/doc"
  2141. }
  2142. ],
  2143. "resumeToken": "",
  2144. "targetPurpose": "TargetPurposeLimboResolution"
  2145. },
  2146. "4": {
  2147. "queries": [
  2148. {
  2149. "filters": [
  2150. [
  2151. "key",
  2152. "==",
  2153. 1
  2154. ]
  2155. ],
  2156. "orderBys": [
  2157. ],
  2158. "path": "collection"
  2159. }
  2160. ],
  2161. "resumeToken": ""
  2162. },
  2163. "6": {
  2164. "queries": [
  2165. {
  2166. "filters": [
  2167. [
  2168. "key",
  2169. ">=",
  2170. 1
  2171. ]
  2172. ],
  2173. "orderBys": [
  2174. ],
  2175. "path": "collection"
  2176. }
  2177. ],
  2178. "resumeToken": ""
  2179. }
  2180. }
  2181. }
  2182. },
  2183. {
  2184. "watchAck": [
  2185. 6
  2186. ]
  2187. },
  2188. {
  2189. "watchEntity": {
  2190. "docs": [
  2191. ],
  2192. "targets": [
  2193. 6
  2194. ]
  2195. }
  2196. },
  2197. {
  2198. "watchCurrent": [
  2199. [
  2200. 6
  2201. ],
  2202. "resume-token-1002"
  2203. ]
  2204. },
  2205. {
  2206. "watchSnapshot": {
  2207. "targetIds": [
  2208. ],
  2209. "version": 1002
  2210. },
  2211. "expectedState": {
  2212. "activeLimboDocs": [
  2213. "collection/doc"
  2214. ],
  2215. "activeTargets": {
  2216. "1": {
  2217. "queries": [
  2218. {
  2219. "filters": [
  2220. ],
  2221. "orderBys": [
  2222. ],
  2223. "path": "collection/doc"
  2224. }
  2225. ],
  2226. "resumeToken": "",
  2227. "targetPurpose": "TargetPurposeLimboResolution"
  2228. },
  2229. "4": {
  2230. "queries": [
  2231. {
  2232. "filters": [
  2233. [
  2234. "key",
  2235. "==",
  2236. 1
  2237. ]
  2238. ],
  2239. "orderBys": [
  2240. ],
  2241. "path": "collection"
  2242. }
  2243. ],
  2244. "resumeToken": ""
  2245. },
  2246. "6": {
  2247. "queries": [
  2248. {
  2249. "filters": [
  2250. [
  2251. "key",
  2252. ">=",
  2253. 1
  2254. ]
  2255. ],
  2256. "orderBys": [
  2257. ],
  2258. "path": "collection"
  2259. }
  2260. ],
  2261. "resumeToken": ""
  2262. }
  2263. },
  2264. "enqueuedLimboDocs": [
  2265. ]
  2266. }
  2267. }
  2268. ]
  2269. },
  2270. "Document remove message will cause docs to go in limbo": {
  2271. "describeName": "Limbo Documents:",
  2272. "itName": "Document remove message will cause docs to go in limbo",
  2273. "tags": [
  2274. ],
  2275. "config": {
  2276. "numClients": 1,
  2277. "useEagerGCForMemory": true
  2278. },
  2279. "steps": [
  2280. {
  2281. "userListen": {
  2282. "query": {
  2283. "filters": [
  2284. ],
  2285. "orderBys": [
  2286. ],
  2287. "path": "collection"
  2288. },
  2289. "targetId": 2
  2290. },
  2291. "expectedState": {
  2292. "activeTargets": {
  2293. "2": {
  2294. "queries": [
  2295. {
  2296. "filters": [
  2297. ],
  2298. "orderBys": [
  2299. ],
  2300. "path": "collection"
  2301. }
  2302. ],
  2303. "resumeToken": ""
  2304. }
  2305. }
  2306. }
  2307. },
  2308. {
  2309. "watchAck": [
  2310. 2
  2311. ]
  2312. },
  2313. {
  2314. "watchEntity": {
  2315. "docs": [
  2316. {
  2317. "createTime": 0,
  2318. "key": "collection/a",
  2319. "options": {
  2320. "hasCommittedMutations": false,
  2321. "hasLocalMutations": false
  2322. },
  2323. "value": {
  2324. "key": "a"
  2325. },
  2326. "version": 1000
  2327. },
  2328. {
  2329. "createTime": 0,
  2330. "key": "collection/b",
  2331. "options": {
  2332. "hasCommittedMutations": false,
  2333. "hasLocalMutations": false
  2334. },
  2335. "value": {
  2336. "key": "b"
  2337. },
  2338. "version": 1001
  2339. }
  2340. ],
  2341. "targets": [
  2342. 2
  2343. ]
  2344. }
  2345. },
  2346. {
  2347. "watchCurrent": [
  2348. [
  2349. 2
  2350. ],
  2351. "resume-token-1002"
  2352. ]
  2353. },
  2354. {
  2355. "watchSnapshot": {
  2356. "targetIds": [
  2357. ],
  2358. "version": 1002
  2359. },
  2360. "expectedSnapshotEvents": [
  2361. {
  2362. "added": [
  2363. {
  2364. "createTime": 0,
  2365. "key": "collection/a",
  2366. "options": {
  2367. "hasCommittedMutations": false,
  2368. "hasLocalMutations": false
  2369. },
  2370. "value": {
  2371. "key": "a"
  2372. },
  2373. "version": 1000
  2374. },
  2375. {
  2376. "createTime": 0,
  2377. "key": "collection/b",
  2378. "options": {
  2379. "hasCommittedMutations": false,
  2380. "hasLocalMutations": false
  2381. },
  2382. "value": {
  2383. "key": "b"
  2384. },
  2385. "version": 1001
  2386. }
  2387. ],
  2388. "errorCode": 0,
  2389. "fromCache": false,
  2390. "hasPendingWrites": false,
  2391. "query": {
  2392. "filters": [
  2393. ],
  2394. "orderBys": [
  2395. ],
  2396. "path": "collection"
  2397. }
  2398. }
  2399. ]
  2400. },
  2401. {
  2402. "watchEntity": {
  2403. "key": "collection/b",
  2404. "removedTargets": [
  2405. 2
  2406. ]
  2407. }
  2408. },
  2409. {
  2410. "watchSnapshot": {
  2411. "targetIds": [
  2412. ],
  2413. "version": 1003
  2414. },
  2415. "expectedSnapshotEvents": [
  2416. {
  2417. "errorCode": 0,
  2418. "fromCache": true,
  2419. "hasPendingWrites": false,
  2420. "query": {
  2421. "filters": [
  2422. ],
  2423. "orderBys": [
  2424. ],
  2425. "path": "collection"
  2426. }
  2427. }
  2428. ],
  2429. "expectedState": {
  2430. "activeLimboDocs": [
  2431. "collection/b"
  2432. ],
  2433. "activeTargets": {
  2434. "1": {
  2435. "queries": [
  2436. {
  2437. "filters": [
  2438. ],
  2439. "orderBys": [
  2440. ],
  2441. "path": "collection/b"
  2442. }
  2443. ],
  2444. "resumeToken": "",
  2445. "targetPurpose": "TargetPurposeLimboResolution"
  2446. },
  2447. "2": {
  2448. "queries": [
  2449. {
  2450. "filters": [
  2451. ],
  2452. "orderBys": [
  2453. ],
  2454. "path": "collection"
  2455. }
  2456. ],
  2457. "resumeToken": ""
  2458. }
  2459. }
  2460. }
  2461. },
  2462. {
  2463. "watchAck": [
  2464. 1
  2465. ]
  2466. },
  2467. {
  2468. "watchCurrent": [
  2469. [
  2470. 1
  2471. ],
  2472. "resume-token-1004"
  2473. ]
  2474. },
  2475. {
  2476. "watchSnapshot": {
  2477. "targetIds": [
  2478. ],
  2479. "version": 1004
  2480. },
  2481. "expectedSnapshotEvents": [
  2482. {
  2483. "errorCode": 0,
  2484. "fromCache": false,
  2485. "hasPendingWrites": false,
  2486. "query": {
  2487. "filters": [
  2488. ],
  2489. "orderBys": [
  2490. ],
  2491. "path": "collection"
  2492. },
  2493. "removed": [
  2494. {
  2495. "createTime": 0,
  2496. "key": "collection/b",
  2497. "options": {
  2498. "hasCommittedMutations": false,
  2499. "hasLocalMutations": false
  2500. },
  2501. "value": {
  2502. "key": "b"
  2503. },
  2504. "version": 1001
  2505. }
  2506. ]
  2507. }
  2508. ],
  2509. "expectedState": {
  2510. "activeLimboDocs": [
  2511. ],
  2512. "activeTargets": {
  2513. "2": {
  2514. "queries": [
  2515. {
  2516. "filters": [
  2517. ],
  2518. "orderBys": [
  2519. ],
  2520. "path": "collection"
  2521. }
  2522. ],
  2523. "resumeToken": ""
  2524. }
  2525. }
  2526. }
  2527. }
  2528. ]
  2529. },
  2530. "Failed limbo resolution removes document from view": {
  2531. "describeName": "Limbo Documents:",
  2532. "itName": "Failed limbo resolution removes document from view",
  2533. "tags": [
  2534. ],
  2535. "config": {
  2536. "numClients": 1,
  2537. "useEagerGCForMemory": true
  2538. },
  2539. "steps": [
  2540. {
  2541. "userListen": {
  2542. "query": {
  2543. "filters": [
  2544. [
  2545. "matches",
  2546. "==",
  2547. true
  2548. ]
  2549. ],
  2550. "orderBys": [
  2551. ],
  2552. "path": "collection"
  2553. },
  2554. "targetId": 2
  2555. },
  2556. "expectedState": {
  2557. "activeTargets": {
  2558. "2": {
  2559. "queries": [
  2560. {
  2561. "filters": [
  2562. [
  2563. "matches",
  2564. "==",
  2565. true
  2566. ]
  2567. ],
  2568. "orderBys": [
  2569. ],
  2570. "path": "collection"
  2571. }
  2572. ],
  2573. "resumeToken": ""
  2574. }
  2575. }
  2576. }
  2577. },
  2578. {
  2579. "watchAck": [
  2580. 2
  2581. ]
  2582. },
  2583. {
  2584. "watchEntity": {
  2585. "docs": [
  2586. {
  2587. "createTime": 0,
  2588. "key": "collection/a",
  2589. "options": {
  2590. "hasCommittedMutations": false,
  2591. "hasLocalMutations": false
  2592. },
  2593. "value": {
  2594. "matches": true
  2595. },
  2596. "version": 1000
  2597. }
  2598. ],
  2599. "targets": [
  2600. 2
  2601. ]
  2602. }
  2603. },
  2604. {
  2605. "watchCurrent": [
  2606. [
  2607. 2
  2608. ],
  2609. "resume-token-1000"
  2610. ]
  2611. },
  2612. {
  2613. "watchSnapshot": {
  2614. "targetIds": [
  2615. ],
  2616. "version": 1000
  2617. },
  2618. "expectedSnapshotEvents": [
  2619. {
  2620. "added": [
  2621. {
  2622. "createTime": 0,
  2623. "key": "collection/a",
  2624. "options": {
  2625. "hasCommittedMutations": false,
  2626. "hasLocalMutations": false
  2627. },
  2628. "value": {
  2629. "matches": true
  2630. },
  2631. "version": 1000
  2632. }
  2633. ],
  2634. "errorCode": 0,
  2635. "fromCache": false,
  2636. "hasPendingWrites": false,
  2637. "query": {
  2638. "filters": [
  2639. [
  2640. "matches",
  2641. "==",
  2642. true
  2643. ]
  2644. ],
  2645. "orderBys": [
  2646. ],
  2647. "path": "collection"
  2648. }
  2649. }
  2650. ]
  2651. },
  2652. {
  2653. "userPatch": [
  2654. "collection/a",
  2655. {
  2656. "modified": true
  2657. }
  2658. ],
  2659. "expectedSnapshotEvents": [
  2660. {
  2661. "errorCode": 0,
  2662. "fromCache": false,
  2663. "hasPendingWrites": true,
  2664. "modified": [
  2665. {
  2666. "createTime": 0,
  2667. "key": "collection/a",
  2668. "options": {
  2669. "hasCommittedMutations": false,
  2670. "hasLocalMutations": true
  2671. },
  2672. "value": {
  2673. "matches": true,
  2674. "modified": true
  2675. },
  2676. "version": 0
  2677. }
  2678. ],
  2679. "query": {
  2680. "filters": [
  2681. [
  2682. "matches",
  2683. "==",
  2684. true
  2685. ]
  2686. ],
  2687. "orderBys": [
  2688. ],
  2689. "path": "collection"
  2690. }
  2691. }
  2692. ]
  2693. },
  2694. {
  2695. "userUnlisten": [
  2696. 2,
  2697. {
  2698. "filters": [
  2699. [
  2700. "matches",
  2701. "==",
  2702. true
  2703. ]
  2704. ],
  2705. "orderBys": [
  2706. ],
  2707. "path": "collection"
  2708. }
  2709. ],
  2710. "expectedState": {
  2711. "activeTargets": {
  2712. }
  2713. }
  2714. },
  2715. {
  2716. "userListen": {
  2717. "query": {
  2718. "filters": [
  2719. ],
  2720. "orderBys": [
  2721. ],
  2722. "path": "collection"
  2723. },
  2724. "targetId": 4
  2725. },
  2726. "expectedSnapshotEvents": [
  2727. {
  2728. "added": [
  2729. {
  2730. "createTime": 0,
  2731. "key": "collection/a",
  2732. "options": {
  2733. "hasCommittedMutations": false,
  2734. "hasLocalMutations": true
  2735. },
  2736. "value": {
  2737. "matches": true,
  2738. "modified": true
  2739. },
  2740. "version": 0
  2741. }
  2742. ],
  2743. "errorCode": 0,
  2744. "fromCache": true,
  2745. "hasPendingWrites": true,
  2746. "query": {
  2747. "filters": [
  2748. ],
  2749. "orderBys": [
  2750. ],
  2751. "path": "collection"
  2752. }
  2753. }
  2754. ],
  2755. "expectedState": {
  2756. "activeTargets": {
  2757. "4": {
  2758. "queries": [
  2759. {
  2760. "filters": [
  2761. ],
  2762. "orderBys": [
  2763. ],
  2764. "path": "collection"
  2765. }
  2766. ],
  2767. "resumeToken": ""
  2768. }
  2769. }
  2770. }
  2771. },
  2772. {
  2773. "watchAck": [
  2774. 4
  2775. ]
  2776. },
  2777. {
  2778. "watchEntity": {
  2779. "docs": [
  2780. ],
  2781. "targets": [
  2782. 4
  2783. ]
  2784. }
  2785. },
  2786. {
  2787. "watchCurrent": [
  2788. [
  2789. 4
  2790. ],
  2791. "resume-token-1001"
  2792. ]
  2793. },
  2794. {
  2795. "watchSnapshot": {
  2796. "targetIds": [
  2797. ],
  2798. "version": 1001
  2799. },
  2800. "expectedSnapshotEvents": [
  2801. {
  2802. "errorCode": 0,
  2803. "fromCache": false,
  2804. "hasPendingWrites": true,
  2805. "query": {
  2806. "filters": [
  2807. ],
  2808. "orderBys": [
  2809. ],
  2810. "path": "collection"
  2811. }
  2812. }
  2813. ]
  2814. },
  2815. {
  2816. "failWrite": {
  2817. "error": {
  2818. "code": 9
  2819. }
  2820. },
  2821. "expectedSnapshotEvents": [
  2822. {
  2823. "errorCode": 0,
  2824. "fromCache": true,
  2825. "hasPendingWrites": false,
  2826. "modified": [
  2827. {
  2828. "createTime": 0,
  2829. "key": "collection/a",
  2830. "options": {
  2831. "hasCommittedMutations": false,
  2832. "hasLocalMutations": false
  2833. },
  2834. "value": {
  2835. "matches": true
  2836. },
  2837. "version": 1000
  2838. }
  2839. ],
  2840. "query": {
  2841. "filters": [
  2842. ],
  2843. "orderBys": [
  2844. ],
  2845. "path": "collection"
  2846. }
  2847. }
  2848. ],
  2849. "expectedState": {
  2850. "activeLimboDocs": [
  2851. "collection/a"
  2852. ],
  2853. "activeTargets": {
  2854. "1": {
  2855. "queries": [
  2856. {
  2857. "filters": [
  2858. ],
  2859. "orderBys": [
  2860. ],
  2861. "path": "collection/a"
  2862. }
  2863. ],
  2864. "resumeToken": "",
  2865. "targetPurpose": "TargetPurposeLimboResolution"
  2866. },
  2867. "4": {
  2868. "queries": [
  2869. {
  2870. "filters": [
  2871. ],
  2872. "orderBys": [
  2873. ],
  2874. "path": "collection"
  2875. }
  2876. ],
  2877. "resumeToken": ""
  2878. }
  2879. },
  2880. "userCallbacks": {
  2881. "acknowledgedDocs": [
  2882. ],
  2883. "rejectedDocs": [
  2884. "collection/a"
  2885. ]
  2886. }
  2887. }
  2888. },
  2889. {
  2890. "watchRemove": {
  2891. "cause": {
  2892. "code": 7
  2893. },
  2894. "targetIds": [
  2895. 1
  2896. ]
  2897. },
  2898. "expectedSnapshotEvents": [
  2899. {
  2900. "errorCode": 0,
  2901. "fromCache": false,
  2902. "hasPendingWrites": false,
  2903. "query": {
  2904. "filters": [
  2905. ],
  2906. "orderBys": [
  2907. ],
  2908. "path": "collection"
  2909. },
  2910. "removed": [
  2911. {
  2912. "createTime": 0,
  2913. "key": "collection/a",
  2914. "options": {
  2915. "hasCommittedMutations": false,
  2916. "hasLocalMutations": false
  2917. },
  2918. "value": {
  2919. "matches": true
  2920. },
  2921. "version": 1000
  2922. }
  2923. ]
  2924. }
  2925. ],
  2926. "expectedState": {
  2927. "activeLimboDocs": [
  2928. ],
  2929. "activeTargets": {
  2930. "4": {
  2931. "queries": [
  2932. {
  2933. "filters": [
  2934. ],
  2935. "orderBys": [
  2936. ],
  2937. "path": "collection"
  2938. }
  2939. ],
  2940. "resumeToken": ""
  2941. }
  2942. }
  2943. }
  2944. }
  2945. ]
  2946. },
  2947. "Limbo docs are resolved by primary client": {
  2948. "describeName": "Limbo Documents:",
  2949. "itName": "Limbo docs are resolved by primary client",
  2950. "tags": [
  2951. "multi-client"
  2952. ],
  2953. "config": {
  2954. "numClients": 2,
  2955. "useEagerGCForMemory": false
  2956. },
  2957. "steps": [
  2958. {
  2959. "clientIndex": 0,
  2960. "drainQueue": true,
  2961. "expectedState": {
  2962. "isPrimary": true
  2963. }
  2964. },
  2965. {
  2966. "clientIndex": 1,
  2967. "drainQueue": true
  2968. },
  2969. {
  2970. "clientIndex": 1,
  2971. "userListen": {
  2972. "query": {
  2973. "filters": [
  2974. ],
  2975. "orderBys": [
  2976. ],
  2977. "path": "collection"
  2978. },
  2979. "targetId": 2
  2980. },
  2981. "expectedState": {
  2982. "activeTargets": {
  2983. "2": {
  2984. "queries": [
  2985. {
  2986. "filters": [
  2987. ],
  2988. "orderBys": [
  2989. ],
  2990. "path": "collection"
  2991. }
  2992. ],
  2993. "resumeToken": ""
  2994. }
  2995. }
  2996. }
  2997. },
  2998. {
  2999. "clientIndex": 0,
  3000. "drainQueue": true,
  3001. "expectedState": {
  3002. "activeTargets": {
  3003. "2": {
  3004. "queries": [
  3005. {
  3006. "filters": [
  3007. ],
  3008. "orderBys": [
  3009. ],
  3010. "path": "collection"
  3011. }
  3012. ],
  3013. "resumeToken": ""
  3014. }
  3015. }
  3016. }
  3017. },
  3018. {
  3019. "clientIndex": 0,
  3020. "watchAck": [
  3021. 2
  3022. ]
  3023. },
  3024. {
  3025. "clientIndex": 0,
  3026. "watchEntity": {
  3027. "docs": [
  3028. {
  3029. "createTime": 0,
  3030. "key": "collection/a",
  3031. "options": {
  3032. "hasCommittedMutations": false,
  3033. "hasLocalMutations": false
  3034. },
  3035. "value": {
  3036. "key": "a"
  3037. },
  3038. "version": 1000
  3039. },
  3040. {
  3041. "createTime": 0,
  3042. "key": "collection/b",
  3043. "options": {
  3044. "hasCommittedMutations": false,
  3045. "hasLocalMutations": false
  3046. },
  3047. "value": {
  3048. "key": "b"
  3049. },
  3050. "version": 1001
  3051. }
  3052. ],
  3053. "targets": [
  3054. 2
  3055. ]
  3056. }
  3057. },
  3058. {
  3059. "clientIndex": 0,
  3060. "watchCurrent": [
  3061. [
  3062. 2
  3063. ],
  3064. "resume-token-1002"
  3065. ]
  3066. },
  3067. {
  3068. "clientIndex": 0,
  3069. "watchSnapshot": {
  3070. "targetIds": [
  3071. ],
  3072. "version": 1002
  3073. }
  3074. },
  3075. {
  3076. "clientIndex": 1,
  3077. "drainQueue": true,
  3078. "expectedSnapshotEvents": [
  3079. {
  3080. "added": [
  3081. {
  3082. "createTime": 0,
  3083. "key": "collection/a",
  3084. "options": {
  3085. "hasCommittedMutations": false,
  3086. "hasLocalMutations": false
  3087. },
  3088. "value": {
  3089. "key": "a"
  3090. },
  3091. "version": 1000
  3092. },
  3093. {
  3094. "createTime": 0,
  3095. "key": "collection/b",
  3096. "options": {
  3097. "hasCommittedMutations": false,
  3098. "hasLocalMutations": false
  3099. },
  3100. "value": {
  3101. "key": "b"
  3102. },
  3103. "version": 1001
  3104. }
  3105. ],
  3106. "errorCode": 0,
  3107. "fromCache": false,
  3108. "hasPendingWrites": false,
  3109. "query": {
  3110. "filters": [
  3111. ],
  3112. "orderBys": [
  3113. ],
  3114. "path": "collection"
  3115. }
  3116. }
  3117. ]
  3118. },
  3119. {
  3120. "clientIndex": 0,
  3121. "drainQueue": true
  3122. },
  3123. {
  3124. "clientIndex": 0,
  3125. "watchEntity": {
  3126. "key": "collection/b",
  3127. "removedTargets": [
  3128. 2
  3129. ]
  3130. }
  3131. },
  3132. {
  3133. "clientIndex": 0,
  3134. "watchSnapshot": {
  3135. "targetIds": [
  3136. ],
  3137. "version": 1003
  3138. },
  3139. "expectedState": {
  3140. "activeLimboDocs": [
  3141. "collection/b"
  3142. ],
  3143. "activeTargets": {
  3144. "1": {
  3145. "queries": [
  3146. {
  3147. "filters": [
  3148. ],
  3149. "orderBys": [
  3150. ],
  3151. "path": "collection/b"
  3152. }
  3153. ],
  3154. "resumeToken": "",
  3155. "targetPurpose": "TargetPurposeLimboResolution"
  3156. },
  3157. "2": {
  3158. "queries": [
  3159. {
  3160. "filters": [
  3161. ],
  3162. "orderBys": [
  3163. ],
  3164. "path": "collection"
  3165. }
  3166. ],
  3167. "resumeToken": ""
  3168. }
  3169. }
  3170. }
  3171. },
  3172. {
  3173. "clientIndex": 1,
  3174. "drainQueue": true,
  3175. "expectedSnapshotEvents": [
  3176. {
  3177. "errorCode": 0,
  3178. "fromCache": true,
  3179. "hasPendingWrites": false,
  3180. "query": {
  3181. "filters": [
  3182. ],
  3183. "orderBys": [
  3184. ],
  3185. "path": "collection"
  3186. }
  3187. }
  3188. ]
  3189. },
  3190. {
  3191. "clientIndex": 0,
  3192. "drainQueue": true
  3193. },
  3194. {
  3195. "clientIndex": 0,
  3196. "watchAck": [
  3197. 1
  3198. ]
  3199. },
  3200. {
  3201. "clientIndex": 0,
  3202. "watchCurrent": [
  3203. [
  3204. 1
  3205. ],
  3206. "resume-token-1004"
  3207. ]
  3208. },
  3209. {
  3210. "clientIndex": 0,
  3211. "watchSnapshot": {
  3212. "targetIds": [
  3213. ],
  3214. "version": 1004
  3215. },
  3216. "expectedState": {
  3217. "activeLimboDocs": [
  3218. ],
  3219. "activeTargets": {
  3220. "2": {
  3221. "queries": [
  3222. {
  3223. "filters": [
  3224. ],
  3225. "orderBys": [
  3226. ],
  3227. "path": "collection"
  3228. }
  3229. ],
  3230. "resumeToken": ""
  3231. }
  3232. }
  3233. }
  3234. },
  3235. {
  3236. "clientIndex": 1,
  3237. "drainQueue": true,
  3238. "expectedSnapshotEvents": [
  3239. {
  3240. "errorCode": 0,
  3241. "fromCache": false,
  3242. "hasPendingWrites": false,
  3243. "query": {
  3244. "filters": [
  3245. ],
  3246. "orderBys": [
  3247. ],
  3248. "path": "collection"
  3249. },
  3250. "removed": [
  3251. {
  3252. "createTime": 0,
  3253. "key": "collection/b",
  3254. "options": {
  3255. "hasCommittedMutations": false,
  3256. "hasLocalMutations": false
  3257. },
  3258. "value": {
  3259. "key": "b"
  3260. },
  3261. "version": 1001
  3262. }
  3263. ]
  3264. }
  3265. ]
  3266. }
  3267. ]
  3268. },
  3269. "Limbo documents are deleted with an existence filter": {
  3270. "describeName": "Limbo Documents:",
  3271. "itName": "Limbo documents are deleted with an existence filter",
  3272. "tags": [
  3273. ],
  3274. "config": {
  3275. "numClients": 1,
  3276. "useEagerGCForMemory": true
  3277. },
  3278. "steps": [
  3279. {
  3280. "userListen": {
  3281. "query": {
  3282. "filters": [
  3283. ],
  3284. "orderBys": [
  3285. ],
  3286. "path": "collection"
  3287. },
  3288. "targetId": 2
  3289. },
  3290. "expectedState": {
  3291. "activeTargets": {
  3292. "2": {
  3293. "queries": [
  3294. {
  3295. "filters": [
  3296. ],
  3297. "orderBys": [
  3298. ],
  3299. "path": "collection"
  3300. }
  3301. ],
  3302. "resumeToken": ""
  3303. }
  3304. }
  3305. }
  3306. },
  3307. {
  3308. "watchAck": [
  3309. 2
  3310. ]
  3311. },
  3312. {
  3313. "watchEntity": {
  3314. "docs": [
  3315. {
  3316. "createTime": 0,
  3317. "key": "collection/a",
  3318. "options": {
  3319. "hasCommittedMutations": false,
  3320. "hasLocalMutations": false
  3321. },
  3322. "value": {
  3323. "key": "a"
  3324. },
  3325. "version": 1000
  3326. }
  3327. ],
  3328. "targets": [
  3329. 2
  3330. ]
  3331. }
  3332. },
  3333. {
  3334. "watchCurrent": [
  3335. [
  3336. 2
  3337. ],
  3338. "resume-token-1000"
  3339. ]
  3340. },
  3341. {
  3342. "watchSnapshot": {
  3343. "targetIds": [
  3344. ],
  3345. "version": 1000
  3346. },
  3347. "expectedSnapshotEvents": [
  3348. {
  3349. "added": [
  3350. {
  3351. "createTime": 0,
  3352. "key": "collection/a",
  3353. "options": {
  3354. "hasCommittedMutations": false,
  3355. "hasLocalMutations": false
  3356. },
  3357. "value": {
  3358. "key": "a"
  3359. },
  3360. "version": 1000
  3361. }
  3362. ],
  3363. "errorCode": 0,
  3364. "fromCache": false,
  3365. "hasPendingWrites": false,
  3366. "query": {
  3367. "filters": [
  3368. ],
  3369. "orderBys": [
  3370. ],
  3371. "path": "collection"
  3372. }
  3373. }
  3374. ]
  3375. },
  3376. {
  3377. "watchReset": [
  3378. 2
  3379. ]
  3380. },
  3381. {
  3382. "watchCurrent": [
  3383. [
  3384. 2
  3385. ],
  3386. "resume-token-1001"
  3387. ]
  3388. },
  3389. {
  3390. "watchSnapshot": {
  3391. "targetIds": [
  3392. ],
  3393. "version": 1001
  3394. },
  3395. "expectedSnapshotEvents": [
  3396. {
  3397. "errorCode": 0,
  3398. "fromCache": true,
  3399. "hasPendingWrites": false,
  3400. "query": {
  3401. "filters": [
  3402. ],
  3403. "orderBys": [
  3404. ],
  3405. "path": "collection"
  3406. }
  3407. }
  3408. ],
  3409. "expectedState": {
  3410. "activeLimboDocs": [
  3411. "collection/a"
  3412. ],
  3413. "activeTargets": {
  3414. "1": {
  3415. "queries": [
  3416. {
  3417. "filters": [
  3418. ],
  3419. "orderBys": [
  3420. ],
  3421. "path": "collection/a"
  3422. }
  3423. ],
  3424. "resumeToken": "",
  3425. "targetPurpose": "TargetPurposeLimboResolution"
  3426. },
  3427. "2": {
  3428. "queries": [
  3429. {
  3430. "filters": [
  3431. ],
  3432. "orderBys": [
  3433. ],
  3434. "path": "collection"
  3435. }
  3436. ],
  3437. "resumeToken": ""
  3438. }
  3439. }
  3440. }
  3441. },
  3442. {
  3443. "watchAck": [
  3444. 1
  3445. ]
  3446. },
  3447. {
  3448. "watchFilter": {
  3449. "keys": [
  3450. ],
  3451. "targetIds": [
  3452. 1
  3453. ]
  3454. }
  3455. },
  3456. {
  3457. "watchCurrent": [
  3458. [
  3459. 1
  3460. ],
  3461. "resume-token-1002"
  3462. ]
  3463. },
  3464. {
  3465. "watchSnapshot": {
  3466. "targetIds": [
  3467. ],
  3468. "version": 1002
  3469. },
  3470. "expectedSnapshotEvents": [
  3471. {
  3472. "errorCode": 0,
  3473. "fromCache": false,
  3474. "hasPendingWrites": false,
  3475. "query": {
  3476. "filters": [
  3477. ],
  3478. "orderBys": [
  3479. ],
  3480. "path": "collection"
  3481. },
  3482. "removed": [
  3483. {
  3484. "createTime": 0,
  3485. "key": "collection/a",
  3486. "options": {
  3487. "hasCommittedMutations": false,
  3488. "hasLocalMutations": false
  3489. },
  3490. "value": {
  3491. "key": "a"
  3492. },
  3493. "version": 1000
  3494. }
  3495. ]
  3496. }
  3497. ],
  3498. "expectedState": {
  3499. "activeLimboDocs": [
  3500. ],
  3501. "activeTargets": {
  3502. "2": {
  3503. "queries": [
  3504. {
  3505. "filters": [
  3506. ],
  3507. "orderBys": [
  3508. ],
  3509. "path": "collection"
  3510. }
  3511. ],
  3512. "resumeToken": ""
  3513. }
  3514. }
  3515. }
  3516. }
  3517. ]
  3518. },
  3519. "Limbo documents are deleted without an existence filter": {
  3520. "describeName": "Limbo Documents:",
  3521. "itName": "Limbo documents are deleted without an existence filter",
  3522. "tags": [
  3523. ],
  3524. "config": {
  3525. "numClients": 1,
  3526. "useEagerGCForMemory": true
  3527. },
  3528. "steps": [
  3529. {
  3530. "userListen": {
  3531. "query": {
  3532. "filters": [
  3533. ],
  3534. "orderBys": [
  3535. ],
  3536. "path": "collection"
  3537. },
  3538. "targetId": 2
  3539. },
  3540. "expectedState": {
  3541. "activeTargets": {
  3542. "2": {
  3543. "queries": [
  3544. {
  3545. "filters": [
  3546. ],
  3547. "orderBys": [
  3548. ],
  3549. "path": "collection"
  3550. }
  3551. ],
  3552. "resumeToken": ""
  3553. }
  3554. }
  3555. }
  3556. },
  3557. {
  3558. "watchAck": [
  3559. 2
  3560. ]
  3561. },
  3562. {
  3563. "watchEntity": {
  3564. "docs": [
  3565. {
  3566. "createTime": 0,
  3567. "key": "collection/a",
  3568. "options": {
  3569. "hasCommittedMutations": false,
  3570. "hasLocalMutations": false
  3571. },
  3572. "value": {
  3573. "key": "a"
  3574. },
  3575. "version": 1000
  3576. }
  3577. ],
  3578. "targets": [
  3579. 2
  3580. ]
  3581. }
  3582. },
  3583. {
  3584. "watchCurrent": [
  3585. [
  3586. 2
  3587. ],
  3588. "resume-token-1000"
  3589. ]
  3590. },
  3591. {
  3592. "watchSnapshot": {
  3593. "targetIds": [
  3594. ],
  3595. "version": 1000
  3596. },
  3597. "expectedSnapshotEvents": [
  3598. {
  3599. "added": [
  3600. {
  3601. "createTime": 0,
  3602. "key": "collection/a",
  3603. "options": {
  3604. "hasCommittedMutations": false,
  3605. "hasLocalMutations": false
  3606. },
  3607. "value": {
  3608. "key": "a"
  3609. },
  3610. "version": 1000
  3611. }
  3612. ],
  3613. "errorCode": 0,
  3614. "fromCache": false,
  3615. "hasPendingWrites": false,
  3616. "query": {
  3617. "filters": [
  3618. ],
  3619. "orderBys": [
  3620. ],
  3621. "path": "collection"
  3622. }
  3623. }
  3624. ]
  3625. },
  3626. {
  3627. "watchReset": [
  3628. 2
  3629. ]
  3630. },
  3631. {
  3632. "watchCurrent": [
  3633. [
  3634. 2
  3635. ],
  3636. "resume-token-1001"
  3637. ]
  3638. },
  3639. {
  3640. "watchSnapshot": {
  3641. "targetIds": [
  3642. ],
  3643. "version": 1001
  3644. },
  3645. "expectedSnapshotEvents": [
  3646. {
  3647. "errorCode": 0,
  3648. "fromCache": true,
  3649. "hasPendingWrites": false,
  3650. "query": {
  3651. "filters": [
  3652. ],
  3653. "orderBys": [
  3654. ],
  3655. "path": "collection"
  3656. }
  3657. }
  3658. ],
  3659. "expectedState": {
  3660. "activeLimboDocs": [
  3661. "collection/a"
  3662. ],
  3663. "activeTargets": {
  3664. "1": {
  3665. "queries": [
  3666. {
  3667. "filters": [
  3668. ],
  3669. "orderBys": [
  3670. ],
  3671. "path": "collection/a"
  3672. }
  3673. ],
  3674. "resumeToken": "",
  3675. "targetPurpose": "TargetPurposeLimboResolution"
  3676. },
  3677. "2": {
  3678. "queries": [
  3679. {
  3680. "filters": [
  3681. ],
  3682. "orderBys": [
  3683. ],
  3684. "path": "collection"
  3685. }
  3686. ],
  3687. "resumeToken": ""
  3688. }
  3689. }
  3690. }
  3691. },
  3692. {
  3693. "watchAck": [
  3694. 1
  3695. ]
  3696. },
  3697. {
  3698. "watchCurrent": [
  3699. [
  3700. 1
  3701. ],
  3702. "resume-token-2"
  3703. ]
  3704. },
  3705. {
  3706. "watchSnapshot": {
  3707. "targetIds": [
  3708. ],
  3709. "version": 1002
  3710. },
  3711. "expectedSnapshotEvents": [
  3712. {
  3713. "errorCode": 0,
  3714. "fromCache": false,
  3715. "hasPendingWrites": false,
  3716. "query": {
  3717. "filters": [
  3718. ],
  3719. "orderBys": [
  3720. ],
  3721. "path": "collection"
  3722. },
  3723. "removed": [
  3724. {
  3725. "createTime": 0,
  3726. "key": "collection/a",
  3727. "options": {
  3728. "hasCommittedMutations": false,
  3729. "hasLocalMutations": false
  3730. },
  3731. "value": {
  3732. "key": "a"
  3733. },
  3734. "version": 1000
  3735. }
  3736. ]
  3737. }
  3738. ],
  3739. "expectedState": {
  3740. "activeLimboDocs": [
  3741. ],
  3742. "activeTargets": {
  3743. "2": {
  3744. "queries": [
  3745. {
  3746. "filters": [
  3747. ],
  3748. "orderBys": [
  3749. ],
  3750. "path": "collection"
  3751. }
  3752. ],
  3753. "resumeToken": ""
  3754. }
  3755. }
  3756. }
  3757. }
  3758. ]
  3759. },
  3760. "Limbo documents are resolved after primary tab failover": {
  3761. "describeName": "Limbo Documents:",
  3762. "itName": "Limbo documents are resolved after primary tab failover",
  3763. "tags": [
  3764. "multi-client"
  3765. ],
  3766. "config": {
  3767. "numClients": 2,
  3768. "useEagerGCForMemory": false
  3769. },
  3770. "steps": [
  3771. {
  3772. "clientIndex": 0,
  3773. "drainQueue": true,
  3774. "expectedState": {
  3775. "isPrimary": true
  3776. }
  3777. },
  3778. {
  3779. "clientIndex": 1,
  3780. "drainQueue": true
  3781. },
  3782. {
  3783. "clientIndex": 1,
  3784. "userListen": {
  3785. "query": {
  3786. "filters": [
  3787. ],
  3788. "orderBys": [
  3789. ],
  3790. "path": "collection"
  3791. },
  3792. "targetId": 2
  3793. },
  3794. "expectedState": {
  3795. "activeTargets": {
  3796. "2": {
  3797. "queries": [
  3798. {
  3799. "filters": [
  3800. ],
  3801. "orderBys": [
  3802. ],
  3803. "path": "collection"
  3804. }
  3805. ],
  3806. "resumeToken": ""
  3807. }
  3808. }
  3809. }
  3810. },
  3811. {
  3812. "clientIndex": 0,
  3813. "drainQueue": true,
  3814. "expectedState": {
  3815. "activeTargets": {
  3816. "2": {
  3817. "queries": [
  3818. {
  3819. "filters": [
  3820. ],
  3821. "orderBys": [
  3822. ],
  3823. "path": "collection"
  3824. }
  3825. ],
  3826. "resumeToken": ""
  3827. }
  3828. }
  3829. }
  3830. },
  3831. {
  3832. "clientIndex": 0,
  3833. "watchAck": [
  3834. 2
  3835. ]
  3836. },
  3837. {
  3838. "clientIndex": 0,
  3839. "watchEntity": {
  3840. "docs": [
  3841. {
  3842. "createTime": 0,
  3843. "key": "collection/a",
  3844. "options": {
  3845. "hasCommittedMutations": false,
  3846. "hasLocalMutations": false
  3847. },
  3848. "value": {
  3849. "key": "a"
  3850. },
  3851. "version": 1000
  3852. },
  3853. {
  3854. "createTime": 0,
  3855. "key": "collection/b",
  3856. "options": {
  3857. "hasCommittedMutations": false,
  3858. "hasLocalMutations": false
  3859. },
  3860. "value": {
  3861. "key": "b"
  3862. },
  3863. "version": 1001
  3864. }
  3865. ],
  3866. "targets": [
  3867. 2
  3868. ]
  3869. }
  3870. },
  3871. {
  3872. "clientIndex": 0,
  3873. "watchCurrent": [
  3874. [
  3875. 2
  3876. ],
  3877. "resume-token-1000000"
  3878. ]
  3879. },
  3880. {
  3881. "clientIndex": 0,
  3882. "watchSnapshot": {
  3883. "targetIds": [
  3884. ],
  3885. "version": 1000000
  3886. }
  3887. },
  3888. {
  3889. "clientIndex": 1,
  3890. "drainQueue": true,
  3891. "expectedSnapshotEvents": [
  3892. {
  3893. "added": [
  3894. {
  3895. "createTime": 0,
  3896. "key": "collection/a",
  3897. "options": {
  3898. "hasCommittedMutations": false,
  3899. "hasLocalMutations": false
  3900. },
  3901. "value": {
  3902. "key": "a"
  3903. },
  3904. "version": 1000
  3905. },
  3906. {
  3907. "createTime": 0,
  3908. "key": "collection/b",
  3909. "options": {
  3910. "hasCommittedMutations": false,
  3911. "hasLocalMutations": false
  3912. },
  3913. "value": {
  3914. "key": "b"
  3915. },
  3916. "version": 1001
  3917. }
  3918. ],
  3919. "errorCode": 0,
  3920. "fromCache": false,
  3921. "hasPendingWrites": false,
  3922. "query": {
  3923. "filters": [
  3924. ],
  3925. "orderBys": [
  3926. ],
  3927. "path": "collection"
  3928. }
  3929. }
  3930. ]
  3931. },
  3932. {
  3933. "clientIndex": 0,
  3934. "drainQueue": true
  3935. },
  3936. {
  3937. "clientIndex": 0,
  3938. "watchEntity": {
  3939. "key": "collection/b",
  3940. "removedTargets": [
  3941. 2
  3942. ]
  3943. }
  3944. },
  3945. {
  3946. "clientIndex": 0,
  3947. "watchSnapshot": {
  3948. "targetIds": [
  3949. ],
  3950. "version": 2000000
  3951. },
  3952. "expectedState": {
  3953. "activeLimboDocs": [
  3954. "collection/b"
  3955. ],
  3956. "activeTargets": {
  3957. "1": {
  3958. "queries": [
  3959. {
  3960. "filters": [
  3961. ],
  3962. "orderBys": [
  3963. ],
  3964. "path": "collection/b"
  3965. }
  3966. ],
  3967. "resumeToken": "",
  3968. "targetPurpose": "TargetPurposeLimboResolution"
  3969. },
  3970. "2": {
  3971. "queries": [
  3972. {
  3973. "filters": [
  3974. ],
  3975. "orderBys": [
  3976. ],
  3977. "path": "collection"
  3978. }
  3979. ],
  3980. "resumeToken": ""
  3981. }
  3982. }
  3983. }
  3984. },
  3985. {
  3986. "clientIndex": 0,
  3987. "shutdown": true,
  3988. "expectedState": {
  3989. "activeLimboDocs": [
  3990. ],
  3991. "activeTargets": {
  3992. },
  3993. "enqueuedLimboDocs": [
  3994. ]
  3995. }
  3996. },
  3997. {
  3998. "clientIndex": 1,
  3999. "drainQueue": true,
  4000. "expectedSnapshotEvents": [
  4001. {
  4002. "errorCode": 0,
  4003. "fromCache": true,
  4004. "hasPendingWrites": false,
  4005. "query": {
  4006. "filters": [
  4007. ],
  4008. "orderBys": [
  4009. ],
  4010. "path": "collection"
  4011. }
  4012. }
  4013. ]
  4014. },
  4015. {
  4016. "clientIndex": 1,
  4017. "runTimer": "client_metadata_refresh",
  4018. "expectedState": {
  4019. "activeTargets": {
  4020. "2": {
  4021. "queries": [
  4022. {
  4023. "filters": [
  4024. ],
  4025. "orderBys": [
  4026. ],
  4027. "path": "collection"
  4028. }
  4029. ],
  4030. "resumeToken": "resume-token-1000000"
  4031. }
  4032. },
  4033. "isPrimary": true
  4034. }
  4035. },
  4036. {
  4037. "clientIndex": 1,
  4038. "watchAck": [
  4039. 2
  4040. ]
  4041. },
  4042. {
  4043. "clientIndex": 1,
  4044. "watchEntity": {
  4045. "docs": [
  4046. ],
  4047. "targets": [
  4048. 2
  4049. ]
  4050. }
  4051. },
  4052. {
  4053. "clientIndex": 1,
  4054. "watchCurrent": [
  4055. [
  4056. 2
  4057. ],
  4058. "resume-token-3000000"
  4059. ]
  4060. },
  4061. {
  4062. "clientIndex": 1,
  4063. "watchSnapshot": {
  4064. "targetIds": [
  4065. ],
  4066. "version": 3000000
  4067. },
  4068. "expectedState": {
  4069. "activeLimboDocs": [
  4070. "collection/b"
  4071. ],
  4072. "activeTargets": {
  4073. "1": {
  4074. "queries": [
  4075. {
  4076. "filters": [
  4077. ],
  4078. "orderBys": [
  4079. ],
  4080. "path": "collection/b"
  4081. }
  4082. ],
  4083. "resumeToken": "",
  4084. "targetPurpose": "TargetPurposeLimboResolution"
  4085. },
  4086. "2": {
  4087. "queries": [
  4088. {
  4089. "filters": [
  4090. ],
  4091. "orderBys": [
  4092. ],
  4093. "path": "collection"
  4094. }
  4095. ],
  4096. "resumeToken": "resume-token-1000000"
  4097. }
  4098. }
  4099. }
  4100. },
  4101. {
  4102. "clientIndex": 1,
  4103. "watchAck": [
  4104. 1
  4105. ]
  4106. },
  4107. {
  4108. "clientIndex": 1,
  4109. "watchCurrent": [
  4110. [
  4111. 1
  4112. ],
  4113. "resume-token-4000000"
  4114. ]
  4115. },
  4116. {
  4117. "clientIndex": 1,
  4118. "watchSnapshot": {
  4119. "targetIds": [
  4120. ],
  4121. "version": 4000000
  4122. },
  4123. "expectedSnapshotEvents": [
  4124. {
  4125. "errorCode": 0,
  4126. "fromCache": false,
  4127. "hasPendingWrites": false,
  4128. "query": {
  4129. "filters": [
  4130. ],
  4131. "orderBys": [
  4132. ],
  4133. "path": "collection"
  4134. },
  4135. "removed": [
  4136. {
  4137. "createTime": 0,
  4138. "key": "collection/b",
  4139. "options": {
  4140. "hasCommittedMutations": false,
  4141. "hasLocalMutations": false
  4142. },
  4143. "value": {
  4144. "key": "b"
  4145. },
  4146. "version": 1001
  4147. }
  4148. ]
  4149. }
  4150. ],
  4151. "expectedState": {
  4152. "activeLimboDocs": [
  4153. ],
  4154. "activeTargets": {
  4155. "2": {
  4156. "queries": [
  4157. {
  4158. "filters": [
  4159. ],
  4160. "orderBys": [
  4161. ],
  4162. "path": "collection"
  4163. }
  4164. ],
  4165. "resumeToken": "resume-token-1000000"
  4166. }
  4167. }
  4168. }
  4169. }
  4170. ]
  4171. },
  4172. "Limbo documents are resolved with updates": {
  4173. "describeName": "Limbo Documents:",
  4174. "itName": "Limbo documents are resolved with updates",
  4175. "tags": [
  4176. ],
  4177. "config": {
  4178. "numClients": 1,
  4179. "useEagerGCForMemory": true
  4180. },
  4181. "steps": [
  4182. {
  4183. "userListen": {
  4184. "query": {
  4185. "filters": [
  4186. [
  4187. "key",
  4188. "==",
  4189. "a"
  4190. ]
  4191. ],
  4192. "orderBys": [
  4193. ],
  4194. "path": "collection"
  4195. },
  4196. "targetId": 2
  4197. },
  4198. "expectedState": {
  4199. "activeTargets": {
  4200. "2": {
  4201. "queries": [
  4202. {
  4203. "filters": [
  4204. [
  4205. "key",
  4206. "==",
  4207. "a"
  4208. ]
  4209. ],
  4210. "orderBys": [
  4211. ],
  4212. "path": "collection"
  4213. }
  4214. ],
  4215. "resumeToken": ""
  4216. }
  4217. }
  4218. }
  4219. },
  4220. {
  4221. "watchAck": [
  4222. 2
  4223. ]
  4224. },
  4225. {
  4226. "watchEntity": {
  4227. "docs": [
  4228. {
  4229. "createTime": 0,
  4230. "key": "collection/a",
  4231. "options": {
  4232. "hasCommittedMutations": false,
  4233. "hasLocalMutations": false
  4234. },
  4235. "value": {
  4236. "key": "a"
  4237. },
  4238. "version": 1000
  4239. }
  4240. ],
  4241. "targets": [
  4242. 2
  4243. ]
  4244. }
  4245. },
  4246. {
  4247. "watchCurrent": [
  4248. [
  4249. 2
  4250. ],
  4251. "resume-token-1000"
  4252. ]
  4253. },
  4254. {
  4255. "watchSnapshot": {
  4256. "targetIds": [
  4257. ],
  4258. "version": 1000
  4259. },
  4260. "expectedSnapshotEvents": [
  4261. {
  4262. "added": [
  4263. {
  4264. "createTime": 0,
  4265. "key": "collection/a",
  4266. "options": {
  4267. "hasCommittedMutations": false,
  4268. "hasLocalMutations": false
  4269. },
  4270. "value": {
  4271. "key": "a"
  4272. },
  4273. "version": 1000
  4274. }
  4275. ],
  4276. "errorCode": 0,
  4277. "fromCache": false,
  4278. "hasPendingWrites": false,
  4279. "query": {
  4280. "filters": [
  4281. [
  4282. "key",
  4283. "==",
  4284. "a"
  4285. ]
  4286. ],
  4287. "orderBys": [
  4288. ],
  4289. "path": "collection"
  4290. }
  4291. }
  4292. ]
  4293. },
  4294. {
  4295. "watchReset": [
  4296. 2
  4297. ]
  4298. },
  4299. {
  4300. "watchCurrent": [
  4301. [
  4302. 2
  4303. ],
  4304. "resume-token-1001"
  4305. ]
  4306. },
  4307. {
  4308. "watchSnapshot": {
  4309. "targetIds": [
  4310. ],
  4311. "version": 1001
  4312. },
  4313. "expectedSnapshotEvents": [
  4314. {
  4315. "errorCode": 0,
  4316. "fromCache": true,
  4317. "hasPendingWrites": false,
  4318. "query": {
  4319. "filters": [
  4320. [
  4321. "key",
  4322. "==",
  4323. "a"
  4324. ]
  4325. ],
  4326. "orderBys": [
  4327. ],
  4328. "path": "collection"
  4329. }
  4330. }
  4331. ],
  4332. "expectedState": {
  4333. "activeLimboDocs": [
  4334. "collection/a"
  4335. ],
  4336. "activeTargets": {
  4337. "1": {
  4338. "queries": [
  4339. {
  4340. "filters": [
  4341. ],
  4342. "orderBys": [
  4343. ],
  4344. "path": "collection/a"
  4345. }
  4346. ],
  4347. "resumeToken": "",
  4348. "targetPurpose": "TargetPurposeLimboResolution"
  4349. },
  4350. "2": {
  4351. "queries": [
  4352. {
  4353. "filters": [
  4354. [
  4355. "key",
  4356. "==",
  4357. "a"
  4358. ]
  4359. ],
  4360. "orderBys": [
  4361. ],
  4362. "path": "collection"
  4363. }
  4364. ],
  4365. "resumeToken": ""
  4366. }
  4367. }
  4368. }
  4369. },
  4370. {
  4371. "watchAck": [
  4372. 1
  4373. ]
  4374. },
  4375. {
  4376. "watchEntity": {
  4377. "docs": [
  4378. {
  4379. "createTime": 0,
  4380. "key": "collection/a",
  4381. "options": {
  4382. "hasCommittedMutations": false,
  4383. "hasLocalMutations": false
  4384. },
  4385. "value": {
  4386. "key": "b"
  4387. },
  4388. "version": 1002
  4389. }
  4390. ],
  4391. "targets": [
  4392. 1
  4393. ]
  4394. }
  4395. },
  4396. {
  4397. "watchCurrent": [
  4398. [
  4399. 1
  4400. ],
  4401. "resume-token-1002"
  4402. ]
  4403. },
  4404. {
  4405. "watchSnapshot": {
  4406. "targetIds": [
  4407. ],
  4408. "version": 1002
  4409. },
  4410. "expectedSnapshotEvents": [
  4411. {
  4412. "errorCode": 0,
  4413. "fromCache": false,
  4414. "hasPendingWrites": false,
  4415. "query": {
  4416. "filters": [
  4417. [
  4418. "key",
  4419. "==",
  4420. "a"
  4421. ]
  4422. ],
  4423. "orderBys": [
  4424. ],
  4425. "path": "collection"
  4426. },
  4427. "removed": [
  4428. {
  4429. "createTime": 0,
  4430. "key": "collection/a",
  4431. "options": {
  4432. "hasCommittedMutations": false,
  4433. "hasLocalMutations": false
  4434. },
  4435. "value": {
  4436. "key": "a"
  4437. },
  4438. "version": 1000
  4439. }
  4440. ]
  4441. }
  4442. ],
  4443. "expectedState": {
  4444. "activeLimboDocs": [
  4445. ],
  4446. "activeTargets": {
  4447. "2": {
  4448. "queries": [
  4449. {
  4450. "filters": [
  4451. [
  4452. "key",
  4453. "==",
  4454. "a"
  4455. ]
  4456. ],
  4457. "orderBys": [
  4458. ],
  4459. "path": "collection"
  4460. }
  4461. ],
  4462. "resumeToken": ""
  4463. }
  4464. }
  4465. }
  4466. }
  4467. ]
  4468. },
  4469. "Limbo documents are resolved with updates in different snapshot than \"current\"": {
  4470. "describeName": "Limbo Documents:",
  4471. "itName": "Limbo documents are resolved with updates in different snapshot than \"current\"",
  4472. "tags": [
  4473. ],
  4474. "config": {
  4475. "numClients": 1,
  4476. "useEagerGCForMemory": true
  4477. },
  4478. "steps": [
  4479. {
  4480. "userListen": {
  4481. "query": {
  4482. "filters": [
  4483. [
  4484. "key",
  4485. "==",
  4486. "a"
  4487. ]
  4488. ],
  4489. "orderBys": [
  4490. ],
  4491. "path": "collection"
  4492. },
  4493. "targetId": 2
  4494. },
  4495. "expectedState": {
  4496. "activeTargets": {
  4497. "2": {
  4498. "queries": [
  4499. {
  4500. "filters": [
  4501. [
  4502. "key",
  4503. "==",
  4504. "a"
  4505. ]
  4506. ],
  4507. "orderBys": [
  4508. ],
  4509. "path": "collection"
  4510. }
  4511. ],
  4512. "resumeToken": ""
  4513. }
  4514. }
  4515. }
  4516. },
  4517. {
  4518. "watchAck": [
  4519. 2
  4520. ]
  4521. },
  4522. {
  4523. "watchEntity": {
  4524. "docs": [
  4525. {
  4526. "createTime": 0,
  4527. "key": "collection/a",
  4528. "options": {
  4529. "hasCommittedMutations": false,
  4530. "hasLocalMutations": false
  4531. },
  4532. "value": {
  4533. "key": "a"
  4534. },
  4535. "version": 1000
  4536. }
  4537. ],
  4538. "targets": [
  4539. 2
  4540. ]
  4541. }
  4542. },
  4543. {
  4544. "watchCurrent": [
  4545. [
  4546. 2
  4547. ],
  4548. "resume-token-1000"
  4549. ]
  4550. },
  4551. {
  4552. "watchSnapshot": {
  4553. "targetIds": [
  4554. ],
  4555. "version": 1000
  4556. },
  4557. "expectedSnapshotEvents": [
  4558. {
  4559. "added": [
  4560. {
  4561. "createTime": 0,
  4562. "key": "collection/a",
  4563. "options": {
  4564. "hasCommittedMutations": false,
  4565. "hasLocalMutations": false
  4566. },
  4567. "value": {
  4568. "key": "a"
  4569. },
  4570. "version": 1000
  4571. }
  4572. ],
  4573. "errorCode": 0,
  4574. "fromCache": false,
  4575. "hasPendingWrites": false,
  4576. "query": {
  4577. "filters": [
  4578. [
  4579. "key",
  4580. "==",
  4581. "a"
  4582. ]
  4583. ],
  4584. "orderBys": [
  4585. ],
  4586. "path": "collection"
  4587. }
  4588. }
  4589. ]
  4590. },
  4591. {
  4592. "userListen": {
  4593. "query": {
  4594. "filters": [
  4595. [
  4596. "key",
  4597. "==",
  4598. "b"
  4599. ]
  4600. ],
  4601. "orderBys": [
  4602. ],
  4603. "path": "collection"
  4604. },
  4605. "targetId": 4
  4606. },
  4607. "expectedState": {
  4608. "activeTargets": {
  4609. "2": {
  4610. "queries": [
  4611. {
  4612. "filters": [
  4613. [
  4614. "key",
  4615. "==",
  4616. "a"
  4617. ]
  4618. ],
  4619. "orderBys": [
  4620. ],
  4621. "path": "collection"
  4622. }
  4623. ],
  4624. "resumeToken": ""
  4625. },
  4626. "4": {
  4627. "queries": [
  4628. {
  4629. "filters": [
  4630. [
  4631. "key",
  4632. "==",
  4633. "b"
  4634. ]
  4635. ],
  4636. "orderBys": [
  4637. ],
  4638. "path": "collection"
  4639. }
  4640. ],
  4641. "resumeToken": ""
  4642. }
  4643. }
  4644. }
  4645. },
  4646. {
  4647. "watchReset": [
  4648. 2
  4649. ]
  4650. },
  4651. {
  4652. "watchCurrent": [
  4653. [
  4654. 2
  4655. ],
  4656. "resume-token-1001"
  4657. ]
  4658. },
  4659. {
  4660. "watchSnapshot": {
  4661. "targetIds": [
  4662. ],
  4663. "version": 1001
  4664. },
  4665. "expectedSnapshotEvents": [
  4666. {
  4667. "errorCode": 0,
  4668. "fromCache": true,
  4669. "hasPendingWrites": false,
  4670. "query": {
  4671. "filters": [
  4672. [
  4673. "key",
  4674. "==",
  4675. "a"
  4676. ]
  4677. ],
  4678. "orderBys": [
  4679. ],
  4680. "path": "collection"
  4681. }
  4682. }
  4683. ],
  4684. "expectedState": {
  4685. "activeLimboDocs": [
  4686. "collection/a"
  4687. ],
  4688. "activeTargets": {
  4689. "1": {
  4690. "queries": [
  4691. {
  4692. "filters": [
  4693. ],
  4694. "orderBys": [
  4695. ],
  4696. "path": "collection/a"
  4697. }
  4698. ],
  4699. "resumeToken": "",
  4700. "targetPurpose": "TargetPurposeLimboResolution"
  4701. },
  4702. "2": {
  4703. "queries": [
  4704. {
  4705. "filters": [
  4706. [
  4707. "key",
  4708. "==",
  4709. "a"
  4710. ]
  4711. ],
  4712. "orderBys": [
  4713. ],
  4714. "path": "collection"
  4715. }
  4716. ],
  4717. "resumeToken": ""
  4718. },
  4719. "4": {
  4720. "queries": [
  4721. {
  4722. "filters": [
  4723. [
  4724. "key",
  4725. "==",
  4726. "b"
  4727. ]
  4728. ],
  4729. "orderBys": [
  4730. ],
  4731. "path": "collection"
  4732. }
  4733. ],
  4734. "resumeToken": ""
  4735. }
  4736. }
  4737. }
  4738. },
  4739. {
  4740. "watchAck": [
  4741. 4
  4742. ]
  4743. },
  4744. {
  4745. "watchAck": [
  4746. 1
  4747. ]
  4748. },
  4749. {
  4750. "watchEntity": {
  4751. "docs": [
  4752. {
  4753. "createTime": 0,
  4754. "key": "collection/a",
  4755. "options": {
  4756. "hasCommittedMutations": false,
  4757. "hasLocalMutations": false
  4758. },
  4759. "value": {
  4760. "key": "b"
  4761. },
  4762. "version": 1002
  4763. }
  4764. ],
  4765. "targets": [
  4766. 1,
  4767. 4
  4768. ]
  4769. }
  4770. },
  4771. {
  4772. "watchCurrent": [
  4773. [
  4774. 4
  4775. ],
  4776. "resume-token-1002"
  4777. ]
  4778. },
  4779. {
  4780. "watchSnapshot": {
  4781. "targetIds": [
  4782. ],
  4783. "version": 1002
  4784. },
  4785. "expectedSnapshotEvents": [
  4786. {
  4787. "errorCode": 0,
  4788. "fromCache": false,
  4789. "hasPendingWrites": false,
  4790. "query": {
  4791. "filters": [
  4792. [
  4793. "key",
  4794. "==",
  4795. "a"
  4796. ]
  4797. ],
  4798. "orderBys": [
  4799. ],
  4800. "path": "collection"
  4801. },
  4802. "removed": [
  4803. {
  4804. "createTime": 0,
  4805. "key": "collection/a",
  4806. "options": {
  4807. "hasCommittedMutations": false,
  4808. "hasLocalMutations": false
  4809. },
  4810. "value": {
  4811. "key": "a"
  4812. },
  4813. "version": 1000
  4814. }
  4815. ]
  4816. },
  4817. {
  4818. "added": [
  4819. {
  4820. "createTime": 0,
  4821. "key": "collection/a",
  4822. "options": {
  4823. "hasCommittedMutations": false,
  4824. "hasLocalMutations": false
  4825. },
  4826. "value": {
  4827. "key": "b"
  4828. },
  4829. "version": 1002
  4830. }
  4831. ],
  4832. "errorCode": 0,
  4833. "fromCache": false,
  4834. "hasPendingWrites": false,
  4835. "query": {
  4836. "filters": [
  4837. [
  4838. "key",
  4839. "==",
  4840. "b"
  4841. ]
  4842. ],
  4843. "orderBys": [
  4844. ],
  4845. "path": "collection"
  4846. }
  4847. }
  4848. ],
  4849. "expectedState": {
  4850. "activeLimboDocs": [
  4851. ],
  4852. "activeTargets": {
  4853. "2": {
  4854. "queries": [
  4855. {
  4856. "filters": [
  4857. [
  4858. "key",
  4859. "==",
  4860. "a"
  4861. ]
  4862. ],
  4863. "orderBys": [
  4864. ],
  4865. "path": "collection"
  4866. }
  4867. ],
  4868. "resumeToken": ""
  4869. },
  4870. "4": {
  4871. "queries": [
  4872. {
  4873. "filters": [
  4874. [
  4875. "key",
  4876. "==",
  4877. "b"
  4878. ]
  4879. ],
  4880. "orderBys": [
  4881. ],
  4882. "path": "collection"
  4883. }
  4884. ],
  4885. "resumeToken": ""
  4886. }
  4887. }
  4888. }
  4889. },
  4890. {
  4891. "watchCurrent": [
  4892. [
  4893. 1
  4894. ],
  4895. "resume-token-1003"
  4896. ]
  4897. },
  4898. {
  4899. "watchSnapshot": {
  4900. "targetIds": [
  4901. ],
  4902. "version": 1003
  4903. }
  4904. }
  4905. ]
  4906. },
  4907. "Limbo documents stay consistent between views": {
  4908. "describeName": "Limbo Documents:",
  4909. "itName": "Limbo documents stay consistent between views",
  4910. "tags": [
  4911. ],
  4912. "config": {
  4913. "numClients": 1,
  4914. "useEagerGCForMemory": false
  4915. },
  4916. "steps": [
  4917. {
  4918. "userSet": [
  4919. "collection/a",
  4920. {
  4921. "matches": true
  4922. }
  4923. ]
  4924. },
  4925. {
  4926. "userSet": [
  4927. "collection/b",
  4928. {
  4929. "matches": true
  4930. }
  4931. ]
  4932. },
  4933. {
  4934. "writeAck": {
  4935. "version": 1000
  4936. },
  4937. "expectedState": {
  4938. "userCallbacks": {
  4939. "acknowledgedDocs": [
  4940. "collection/a"
  4941. ],
  4942. "rejectedDocs": [
  4943. ]
  4944. }
  4945. }
  4946. },
  4947. {
  4948. "writeAck": {
  4949. "version": 1001
  4950. },
  4951. "expectedState": {
  4952. "userCallbacks": {
  4953. "acknowledgedDocs": [
  4954. "collection/b"
  4955. ],
  4956. "rejectedDocs": [
  4957. ]
  4958. }
  4959. }
  4960. },
  4961. {
  4962. "userListen": {
  4963. "query": {
  4964. "filters": [
  4965. ],
  4966. "orderBys": [
  4967. ],
  4968. "path": "collection"
  4969. },
  4970. "targetId": 2
  4971. },
  4972. "expectedSnapshotEvents": [
  4973. {
  4974. "added": [
  4975. {
  4976. "createTime": 0,
  4977. "key": "collection/a",
  4978. "options": {
  4979. "hasCommittedMutations": true,
  4980. "hasLocalMutations": false
  4981. },
  4982. "value": {
  4983. "matches": true
  4984. },
  4985. "version": 1000
  4986. },
  4987. {
  4988. "createTime": 0,
  4989. "key": "collection/b",
  4990. "options": {
  4991. "hasCommittedMutations": true,
  4992. "hasLocalMutations": false
  4993. },
  4994. "value": {
  4995. "matches": true
  4996. },
  4997. "version": 1001
  4998. }
  4999. ],
  5000. "errorCode": 0,
  5001. "fromCache": true,
  5002. "hasPendingWrites": false,
  5003. "query": {
  5004. "filters": [
  5005. ],
  5006. "orderBys": [
  5007. ],
  5008. "path": "collection"
  5009. }
  5010. }
  5011. ],
  5012. "expectedState": {
  5013. "activeTargets": {
  5014. "2": {
  5015. "queries": [
  5016. {
  5017. "filters": [
  5018. ],
  5019. "orderBys": [
  5020. ],
  5021. "path": "collection"
  5022. }
  5023. ],
  5024. "resumeToken": ""
  5025. }
  5026. }
  5027. }
  5028. },
  5029. {
  5030. "watchAck": [
  5031. 2
  5032. ]
  5033. },
  5034. {
  5035. "watchEntity": {
  5036. "docs": [
  5037. {
  5038. "createTime": 0,
  5039. "key": "collection/a",
  5040. "options": {
  5041. "hasCommittedMutations": false,
  5042. "hasLocalMutations": false
  5043. },
  5044. "value": {
  5045. "matches": true
  5046. },
  5047. "version": 1000
  5048. }
  5049. ],
  5050. "targets": [
  5051. 2
  5052. ]
  5053. }
  5054. },
  5055. {
  5056. "watchCurrent": [
  5057. [
  5058. 2
  5059. ],
  5060. "resume-token-2000"
  5061. ]
  5062. },
  5063. {
  5064. "watchSnapshot": {
  5065. "targetIds": [
  5066. ],
  5067. "version": 2000
  5068. },
  5069. "expectedState": {
  5070. "activeLimboDocs": [
  5071. "collection/b"
  5072. ],
  5073. "activeTargets": {
  5074. "1": {
  5075. "queries": [
  5076. {
  5077. "filters": [
  5078. ],
  5079. "orderBys": [
  5080. ],
  5081. "path": "collection/b"
  5082. }
  5083. ],
  5084. "resumeToken": "",
  5085. "targetPurpose": "TargetPurposeLimboResolution"
  5086. },
  5087. "2": {
  5088. "queries": [
  5089. {
  5090. "filters": [
  5091. ],
  5092. "orderBys": [
  5093. ],
  5094. "path": "collection"
  5095. }
  5096. ],
  5097. "resumeToken": ""
  5098. }
  5099. }
  5100. }
  5101. },
  5102. {
  5103. "userListen": {
  5104. "query": {
  5105. "filters": [
  5106. [
  5107. "matches",
  5108. "==",
  5109. true
  5110. ]
  5111. ],
  5112. "orderBys": [
  5113. ],
  5114. "path": "collection"
  5115. },
  5116. "targetId": 4
  5117. },
  5118. "expectedSnapshotEvents": [
  5119. {
  5120. "added": [
  5121. {
  5122. "createTime": 0,
  5123. "key": "collection/a",
  5124. "options": {
  5125. "hasCommittedMutations": false,
  5126. "hasLocalMutations": false
  5127. },
  5128. "value": {
  5129. "matches": true
  5130. },
  5131. "version": 1000
  5132. },
  5133. {
  5134. "createTime": 0,
  5135. "key": "collection/b",
  5136. "options": {
  5137. "hasCommittedMutations": true,
  5138. "hasLocalMutations": false
  5139. },
  5140. "value": {
  5141. "matches": true
  5142. },
  5143. "version": 1001
  5144. }
  5145. ],
  5146. "errorCode": 0,
  5147. "fromCache": true,
  5148. "hasPendingWrites": false,
  5149. "query": {
  5150. "filters": [
  5151. [
  5152. "matches",
  5153. "==",
  5154. true
  5155. ]
  5156. ],
  5157. "orderBys": [
  5158. ],
  5159. "path": "collection"
  5160. }
  5161. }
  5162. ],
  5163. "expectedState": {
  5164. "activeTargets": {
  5165. "1": {
  5166. "queries": [
  5167. {
  5168. "filters": [
  5169. ],
  5170. "orderBys": [
  5171. ],
  5172. "path": "collection/b"
  5173. }
  5174. ],
  5175. "resumeToken": "",
  5176. "targetPurpose": "TargetPurposeLimboResolution"
  5177. },
  5178. "2": {
  5179. "queries": [
  5180. {
  5181. "filters": [
  5182. ],
  5183. "orderBys": [
  5184. ],
  5185. "path": "collection"
  5186. }
  5187. ],
  5188. "resumeToken": ""
  5189. },
  5190. "4": {
  5191. "queries": [
  5192. {
  5193. "filters": [
  5194. [
  5195. "matches",
  5196. "==",
  5197. true
  5198. ]
  5199. ],
  5200. "orderBys": [
  5201. ],
  5202. "path": "collection"
  5203. }
  5204. ],
  5205. "resumeToken": ""
  5206. }
  5207. }
  5208. }
  5209. },
  5210. {
  5211. "userUnlisten": [
  5212. 2,
  5213. {
  5214. "filters": [
  5215. ],
  5216. "orderBys": [
  5217. ],
  5218. "path": "collection"
  5219. }
  5220. ],
  5221. "expectedState": {
  5222. "activeLimboDocs": [
  5223. ],
  5224. "activeTargets": {
  5225. "4": {
  5226. "queries": [
  5227. {
  5228. "filters": [
  5229. [
  5230. "matches",
  5231. "==",
  5232. true
  5233. ]
  5234. ],
  5235. "orderBys": [
  5236. ],
  5237. "path": "collection"
  5238. }
  5239. ],
  5240. "resumeToken": ""
  5241. }
  5242. }
  5243. }
  5244. },
  5245. {
  5246. "userListen": {
  5247. "query": {
  5248. "filters": [
  5249. ],
  5250. "orderBys": [
  5251. ],
  5252. "path": "collection"
  5253. },
  5254. "targetId": 2
  5255. },
  5256. "expectedSnapshotEvents": [
  5257. {
  5258. "added": [
  5259. {
  5260. "createTime": 0,
  5261. "key": "collection/a",
  5262. "options": {
  5263. "hasCommittedMutations": false,
  5264. "hasLocalMutations": false
  5265. },
  5266. "value": {
  5267. "matches": true
  5268. },
  5269. "version": 1000
  5270. },
  5271. {
  5272. "createTime": 0,
  5273. "key": "collection/b",
  5274. "options": {
  5275. "hasCommittedMutations": true,
  5276. "hasLocalMutations": false
  5277. },
  5278. "value": {
  5279. "matches": true
  5280. },
  5281. "version": 1001
  5282. }
  5283. ],
  5284. "errorCode": 0,
  5285. "fromCache": true,
  5286. "hasPendingWrites": false,
  5287. "query": {
  5288. "filters": [
  5289. ],
  5290. "orderBys": [
  5291. ],
  5292. "path": "collection"
  5293. }
  5294. }
  5295. ],
  5296. "expectedState": {
  5297. "activeTargets": {
  5298. "2": {
  5299. "queries": [
  5300. {
  5301. "filters": [
  5302. ],
  5303. "orderBys": [
  5304. ],
  5305. "path": "collection"
  5306. }
  5307. ],
  5308. "resumeToken": "resume-token-2000"
  5309. },
  5310. "4": {
  5311. "queries": [
  5312. {
  5313. "filters": [
  5314. [
  5315. "matches",
  5316. "==",
  5317. true
  5318. ]
  5319. ],
  5320. "orderBys": [
  5321. ],
  5322. "path": "collection"
  5323. }
  5324. ],
  5325. "resumeToken": ""
  5326. }
  5327. }
  5328. }
  5329. }
  5330. ]
  5331. },
  5332. "Limbo documents survive primary state transitions": {
  5333. "describeName": "Limbo Documents:",
  5334. "itName": "Limbo documents survive primary state transitions",
  5335. "tags": [
  5336. "multi-client"
  5337. ],
  5338. "config": {
  5339. "numClients": 2,
  5340. "useEagerGCForMemory": false
  5341. },
  5342. "steps": [
  5343. {
  5344. "clientIndex": 0,
  5345. "drainQueue": true,
  5346. "expectedState": {
  5347. "isPrimary": true
  5348. }
  5349. },
  5350. {
  5351. "clientIndex": 0,
  5352. "userListen": {
  5353. "query": {
  5354. "filters": [
  5355. ],
  5356. "orderBys": [
  5357. ],
  5358. "path": "collection"
  5359. },
  5360. "targetId": 2
  5361. },
  5362. "expectedState": {
  5363. "activeTargets": {
  5364. "2": {
  5365. "queries": [
  5366. {
  5367. "filters": [
  5368. ],
  5369. "orderBys": [
  5370. ],
  5371. "path": "collection"
  5372. }
  5373. ],
  5374. "resumeToken": ""
  5375. }
  5376. }
  5377. }
  5378. },
  5379. {
  5380. "clientIndex": 0,
  5381. "watchAck": [
  5382. 2
  5383. ]
  5384. },
  5385. {
  5386. "clientIndex": 0,
  5387. "watchEntity": {
  5388. "docs": [
  5389. {
  5390. "createTime": 0,
  5391. "key": "collection/a",
  5392. "options": {
  5393. "hasCommittedMutations": false,
  5394. "hasLocalMutations": false
  5395. },
  5396. "value": {
  5397. "key": "a"
  5398. },
  5399. "version": 1000
  5400. },
  5401. {
  5402. "createTime": 0,
  5403. "key": "collection/b",
  5404. "options": {
  5405. "hasCommittedMutations": false,
  5406. "hasLocalMutations": false
  5407. },
  5408. "value": {
  5409. "key": "b"
  5410. },
  5411. "version": 1001
  5412. },
  5413. {
  5414. "createTime": 0,
  5415. "key": "collection/c",
  5416. "options": {
  5417. "hasCommittedMutations": false,
  5418. "hasLocalMutations": false
  5419. },
  5420. "value": {
  5421. "key": "c"
  5422. },
  5423. "version": 1002
  5424. }
  5425. ],
  5426. "targets": [
  5427. 2
  5428. ]
  5429. }
  5430. },
  5431. {
  5432. "clientIndex": 0,
  5433. "watchCurrent": [
  5434. [
  5435. 2
  5436. ],
  5437. "resume-token-1000000"
  5438. ]
  5439. },
  5440. {
  5441. "clientIndex": 0,
  5442. "watchSnapshot": {
  5443. "targetIds": [
  5444. ],
  5445. "version": 1000000
  5446. },
  5447. "expectedSnapshotEvents": [
  5448. {
  5449. "added": [
  5450. {
  5451. "createTime": 0,
  5452. "key": "collection/a",
  5453. "options": {
  5454. "hasCommittedMutations": false,
  5455. "hasLocalMutations": false
  5456. },
  5457. "value": {
  5458. "key": "a"
  5459. },
  5460. "version": 1000
  5461. },
  5462. {
  5463. "createTime": 0,
  5464. "key": "collection/b",
  5465. "options": {
  5466. "hasCommittedMutations": false,
  5467. "hasLocalMutations": false
  5468. },
  5469. "value": {
  5470. "key": "b"
  5471. },
  5472. "version": 1001
  5473. },
  5474. {
  5475. "createTime": 0,
  5476. "key": "collection/c",
  5477. "options": {
  5478. "hasCommittedMutations": false,
  5479. "hasLocalMutations": false
  5480. },
  5481. "value": {
  5482. "key": "c"
  5483. },
  5484. "version": 1002
  5485. }
  5486. ],
  5487. "errorCode": 0,
  5488. "fromCache": false,
  5489. "hasPendingWrites": false,
  5490. "query": {
  5491. "filters": [
  5492. ],
  5493. "orderBys": [
  5494. ],
  5495. "path": "collection"
  5496. }
  5497. }
  5498. ]
  5499. },
  5500. {
  5501. "clientIndex": 0,
  5502. "watchEntity": {
  5503. "key": "collection/b",
  5504. "removedTargets": [
  5505. 2
  5506. ]
  5507. }
  5508. },
  5509. {
  5510. "clientIndex": 0,
  5511. "watchEntity": {
  5512. "key": "collection/c",
  5513. "removedTargets": [
  5514. 2
  5515. ]
  5516. }
  5517. },
  5518. {
  5519. "clientIndex": 0,
  5520. "watchSnapshot": {
  5521. "targetIds": [
  5522. ],
  5523. "version": 2000000
  5524. },
  5525. "expectedSnapshotEvents": [
  5526. {
  5527. "errorCode": 0,
  5528. "fromCache": true,
  5529. "hasPendingWrites": false,
  5530. "query": {
  5531. "filters": [
  5532. ],
  5533. "orderBys": [
  5534. ],
  5535. "path": "collection"
  5536. }
  5537. }
  5538. ],
  5539. "expectedState": {
  5540. "activeLimboDocs": [
  5541. "collection/b",
  5542. "collection/c"
  5543. ],
  5544. "activeTargets": {
  5545. "1": {
  5546. "queries": [
  5547. {
  5548. "filters": [
  5549. ],
  5550. "orderBys": [
  5551. ],
  5552. "path": "collection/b"
  5553. }
  5554. ],
  5555. "resumeToken": "",
  5556. "targetPurpose": "TargetPurposeLimboResolution"
  5557. },
  5558. "2": {
  5559. "queries": [
  5560. {
  5561. "filters": [
  5562. ],
  5563. "orderBys": [
  5564. ],
  5565. "path": "collection"
  5566. }
  5567. ],
  5568. "resumeToken": ""
  5569. },
  5570. "3": {
  5571. "queries": [
  5572. {
  5573. "filters": [
  5574. ],
  5575. "orderBys": [
  5576. ],
  5577. "path": "collection/c"
  5578. }
  5579. ],
  5580. "resumeToken": "",
  5581. "targetPurpose": "TargetPurposeLimboResolution"
  5582. }
  5583. }
  5584. }
  5585. },
  5586. {
  5587. "clientIndex": 1,
  5588. "drainQueue": true
  5589. },
  5590. {
  5591. "applyClientState": {
  5592. "primary": true
  5593. },
  5594. "clientIndex": 1,
  5595. "expectedState": {
  5596. "activeTargets": {
  5597. "2": {
  5598. "queries": [
  5599. {
  5600. "filters": [
  5601. ],
  5602. "orderBys": [
  5603. ],
  5604. "path": "collection"
  5605. }
  5606. ],
  5607. "resumeToken": "resume-token-1000000"
  5608. }
  5609. },
  5610. "isPrimary": true
  5611. }
  5612. },
  5613. {
  5614. "clientIndex": 0,
  5615. "drainQueue": true
  5616. },
  5617. {
  5618. "clientIndex": 0,
  5619. "runTimer": "client_metadata_refresh",
  5620. "expectedState": {
  5621. "activeLimboDocs": [
  5622. ],
  5623. "activeTargets": {
  5624. "2": {
  5625. "queries": [
  5626. {
  5627. "filters": [
  5628. ],
  5629. "orderBys": [
  5630. ],
  5631. "path": "collection"
  5632. }
  5633. ],
  5634. "resumeToken": ""
  5635. }
  5636. },
  5637. "isPrimary": false
  5638. }
  5639. },
  5640. {
  5641. "clientIndex": 1,
  5642. "drainQueue": true
  5643. },
  5644. {
  5645. "clientIndex": 1,
  5646. "watchAck": [
  5647. 2
  5648. ]
  5649. },
  5650. {
  5651. "clientIndex": 1,
  5652. "watchEntity": {
  5653. "docs": [
  5654. ],
  5655. "targets": [
  5656. 2
  5657. ]
  5658. }
  5659. },
  5660. {
  5661. "clientIndex": 1,
  5662. "watchCurrent": [
  5663. [
  5664. 2
  5665. ],
  5666. "resume-token-3000000"
  5667. ]
  5668. },
  5669. {
  5670. "clientIndex": 1,
  5671. "watchSnapshot": {
  5672. "targetIds": [
  5673. ],
  5674. "version": 3000000
  5675. },
  5676. "expectedState": {
  5677. "activeLimboDocs": [
  5678. "collection/b",
  5679. "collection/c"
  5680. ],
  5681. "activeTargets": {
  5682. "1": {
  5683. "queries": [
  5684. {
  5685. "filters": [
  5686. ],
  5687. "orderBys": [
  5688. ],
  5689. "path": "collection/b"
  5690. }
  5691. ],
  5692. "resumeToken": "",
  5693. "targetPurpose": "TargetPurposeLimboResolution"
  5694. },
  5695. "2": {
  5696. "queries": [
  5697. {
  5698. "filters": [
  5699. ],
  5700. "orderBys": [
  5701. ],
  5702. "path": "collection"
  5703. }
  5704. ],
  5705. "resumeToken": "resume-token-1000000"
  5706. },
  5707. "3": {
  5708. "queries": [
  5709. {
  5710. "filters": [
  5711. ],
  5712. "orderBys": [
  5713. ],
  5714. "path": "collection/c"
  5715. }
  5716. ],
  5717. "resumeToken": "",
  5718. "targetPurpose": "TargetPurposeLimboResolution"
  5719. }
  5720. }
  5721. }
  5722. },
  5723. {
  5724. "clientIndex": 1,
  5725. "watchAck": [
  5726. 1
  5727. ]
  5728. },
  5729. {
  5730. "clientIndex": 1,
  5731. "watchCurrent": [
  5732. [
  5733. 1
  5734. ],
  5735. "resume-token-3000000"
  5736. ]
  5737. },
  5738. {
  5739. "clientIndex": 1,
  5740. "watchSnapshot": {
  5741. "targetIds": [
  5742. ],
  5743. "version": 3000000
  5744. },
  5745. "expectedState": {
  5746. "activeLimboDocs": [
  5747. "collection/c"
  5748. ],
  5749. "activeTargets": {
  5750. "2": {
  5751. "queries": [
  5752. {
  5753. "filters": [
  5754. ],
  5755. "orderBys": [
  5756. ],
  5757. "path": "collection"
  5758. }
  5759. ],
  5760. "resumeToken": "resume-token-1000000"
  5761. },
  5762. "3": {
  5763. "queries": [
  5764. {
  5765. "filters": [
  5766. ],
  5767. "orderBys": [
  5768. ],
  5769. "path": "collection/c"
  5770. }
  5771. ],
  5772. "resumeToken": "",
  5773. "targetPurpose": "TargetPurposeLimboResolution"
  5774. }
  5775. }
  5776. }
  5777. },
  5778. {
  5779. "clientIndex": 0,
  5780. "drainQueue": true,
  5781. "expectedSnapshotEvents": [
  5782. {
  5783. "errorCode": 0,
  5784. "fromCache": true,
  5785. "hasPendingWrites": false,
  5786. "query": {
  5787. "filters": [
  5788. ],
  5789. "orderBys": [
  5790. ],
  5791. "path": "collection"
  5792. },
  5793. "removed": [
  5794. {
  5795. "createTime": 0,
  5796. "key": "collection/b",
  5797. "options": {
  5798. "hasCommittedMutations": false,
  5799. "hasLocalMutations": false
  5800. },
  5801. "value": {
  5802. "key": "b"
  5803. },
  5804. "version": 1001
  5805. }
  5806. ]
  5807. }
  5808. ]
  5809. },
  5810. {
  5811. "applyClientState": {
  5812. "primary": true
  5813. },
  5814. "clientIndex": 0,
  5815. "expectedState": {
  5816. "activeTargets": {
  5817. "2": {
  5818. "queries": [
  5819. {
  5820. "filters": [
  5821. ],
  5822. "orderBys": [
  5823. ],
  5824. "path": "collection"
  5825. }
  5826. ],
  5827. "resumeToken": "resume-token-1000000"
  5828. }
  5829. },
  5830. "isPrimary": true
  5831. }
  5832. },
  5833. {
  5834. "clientIndex": 0,
  5835. "watchAck": [
  5836. 2
  5837. ]
  5838. },
  5839. {
  5840. "clientIndex": 0,
  5841. "watchEntity": {
  5842. "docs": [
  5843. ],
  5844. "targets": [
  5845. 2
  5846. ]
  5847. }
  5848. },
  5849. {
  5850. "clientIndex": 0,
  5851. "watchCurrent": [
  5852. [
  5853. 2
  5854. ],
  5855. "resume-token-5000000"
  5856. ]
  5857. },
  5858. {
  5859. "clientIndex": 0,
  5860. "watchSnapshot": {
  5861. "targetIds": [
  5862. ],
  5863. "version": 5000000
  5864. },
  5865. "expectedState": {
  5866. "activeLimboDocs": [
  5867. "collection/c"
  5868. ],
  5869. "activeTargets": {
  5870. "2": {
  5871. "queries": [
  5872. {
  5873. "filters": [
  5874. ],
  5875. "orderBys": [
  5876. ],
  5877. "path": "collection"
  5878. }
  5879. ],
  5880. "resumeToken": "resume-token-1000000"
  5881. },
  5882. "5": {
  5883. "queries": [
  5884. {
  5885. "filters": [
  5886. ],
  5887. "orderBys": [
  5888. ],
  5889. "path": "collection/c"
  5890. }
  5891. ],
  5892. "resumeToken": "",
  5893. "targetPurpose": "TargetPurposeLimboResolution"
  5894. }
  5895. }
  5896. }
  5897. },
  5898. {
  5899. "clientIndex": 0,
  5900. "watchAck": [
  5901. 5
  5902. ]
  5903. },
  5904. {
  5905. "clientIndex": 0,
  5906. "watchCurrent": [
  5907. [
  5908. 5
  5909. ],
  5910. "resume-token-6000000"
  5911. ]
  5912. },
  5913. {
  5914. "clientIndex": 0,
  5915. "watchSnapshot": {
  5916. "targetIds": [
  5917. ],
  5918. "version": 6000000
  5919. },
  5920. "expectedSnapshotEvents": [
  5921. {
  5922. "errorCode": 0,
  5923. "fromCache": false,
  5924. "hasPendingWrites": false,
  5925. "query": {
  5926. "filters": [
  5927. ],
  5928. "orderBys": [
  5929. ],
  5930. "path": "collection"
  5931. },
  5932. "removed": [
  5933. {
  5934. "createTime": 0,
  5935. "key": "collection/c",
  5936. "options": {
  5937. "hasCommittedMutations": false,
  5938. "hasLocalMutations": false
  5939. },
  5940. "value": {
  5941. "key": "c"
  5942. },
  5943. "version": 1002
  5944. }
  5945. ]
  5946. }
  5947. ],
  5948. "expectedState": {
  5949. "activeLimboDocs": [
  5950. ],
  5951. "activeTargets": {
  5952. "2": {
  5953. "queries": [
  5954. {
  5955. "filters": [
  5956. ],
  5957. "orderBys": [
  5958. ],
  5959. "path": "collection"
  5960. }
  5961. ],
  5962. "resumeToken": "resume-token-1000000"
  5963. }
  5964. }
  5965. }
  5966. }
  5967. ]
  5968. },
  5969. "Limbo resolution handles snapshot before CURRENT": {
  5970. "describeName": "Limbo Documents:",
  5971. "itName": "Limbo resolution handles snapshot before CURRENT",
  5972. "tags": [
  5973. ],
  5974. "config": {
  5975. "numClients": 1,
  5976. "useEagerGCForMemory": false
  5977. },
  5978. "steps": [
  5979. {
  5980. "userListen": {
  5981. "query": {
  5982. "filters": [
  5983. ],
  5984. "orderBys": [
  5985. ],
  5986. "path": "collection"
  5987. },
  5988. "targetId": 2
  5989. },
  5990. "expectedState": {
  5991. "activeTargets": {
  5992. "2": {
  5993. "queries": [
  5994. {
  5995. "filters": [
  5996. ],
  5997. "orderBys": [
  5998. ],
  5999. "path": "collection"
  6000. }
  6001. ],
  6002. "resumeToken": ""
  6003. }
  6004. }
  6005. }
  6006. },
  6007. {
  6008. "watchAck": [
  6009. 2
  6010. ]
  6011. },
  6012. {
  6013. "watchEntity": {
  6014. "docs": [
  6015. {
  6016. "createTime": 0,
  6017. "key": "collection/a",
  6018. "options": {
  6019. "hasCommittedMutations": false,
  6020. "hasLocalMutations": false
  6021. },
  6022. "value": {
  6023. "include": true,
  6024. "key": "a"
  6025. },
  6026. "version": 1000
  6027. },
  6028. {
  6029. "createTime": 0,
  6030. "key": "collection/b",
  6031. "options": {
  6032. "hasCommittedMutations": false,
  6033. "hasLocalMutations": false
  6034. },
  6035. "value": {
  6036. "include": true,
  6037. "key": "b"
  6038. },
  6039. "version": 1000
  6040. }
  6041. ],
  6042. "targets": [
  6043. 2
  6044. ]
  6045. }
  6046. },
  6047. {
  6048. "watchCurrent": [
  6049. [
  6050. 2
  6051. ],
  6052. "resume-token-1000"
  6053. ]
  6054. },
  6055. {
  6056. "watchSnapshot": {
  6057. "targetIds": [
  6058. ],
  6059. "version": 1000
  6060. },
  6061. "expectedSnapshotEvents": [
  6062. {
  6063. "added": [
  6064. {
  6065. "createTime": 0,
  6066. "key": "collection/a",
  6067. "options": {
  6068. "hasCommittedMutations": false,
  6069. "hasLocalMutations": false
  6070. },
  6071. "value": {
  6072. "include": true,
  6073. "key": "a"
  6074. },
  6075. "version": 1000
  6076. },
  6077. {
  6078. "createTime": 0,
  6079. "key": "collection/b",
  6080. "options": {
  6081. "hasCommittedMutations": false,
  6082. "hasLocalMutations": false
  6083. },
  6084. "value": {
  6085. "include": true,
  6086. "key": "b"
  6087. },
  6088. "version": 1000
  6089. }
  6090. ],
  6091. "errorCode": 0,
  6092. "fromCache": false,
  6093. "hasPendingWrites": false,
  6094. "query": {
  6095. "filters": [
  6096. ],
  6097. "orderBys": [
  6098. ],
  6099. "path": "collection"
  6100. }
  6101. }
  6102. ]
  6103. },
  6104. {
  6105. "userUnlisten": [
  6106. 2,
  6107. {
  6108. "filters": [
  6109. ],
  6110. "orderBys": [
  6111. ],
  6112. "path": "collection"
  6113. }
  6114. ],
  6115. "expectedState": {
  6116. "activeTargets": {
  6117. }
  6118. }
  6119. },
  6120. {
  6121. "userListen": {
  6122. "query": {
  6123. "filters": [
  6124. [
  6125. "include",
  6126. "==",
  6127. true
  6128. ]
  6129. ],
  6130. "limit": 1,
  6131. "limitType": "LimitToFirst",
  6132. "orderBys": [
  6133. ],
  6134. "path": "collection"
  6135. },
  6136. "targetId": 4
  6137. },
  6138. "expectedSnapshotEvents": [
  6139. {
  6140. "added": [
  6141. {
  6142. "createTime": 0,
  6143. "key": "collection/a",
  6144. "options": {
  6145. "hasCommittedMutations": false,
  6146. "hasLocalMutations": false
  6147. },
  6148. "value": {
  6149. "include": true,
  6150. "key": "a"
  6151. },
  6152. "version": 1000
  6153. }
  6154. ],
  6155. "errorCode": 0,
  6156. "fromCache": true,
  6157. "hasPendingWrites": false,
  6158. "query": {
  6159. "filters": [
  6160. [
  6161. "include",
  6162. "==",
  6163. true
  6164. ]
  6165. ],
  6166. "limit": 1,
  6167. "limitType": "LimitToFirst",
  6168. "orderBys": [
  6169. ],
  6170. "path": "collection"
  6171. }
  6172. }
  6173. ],
  6174. "expectedState": {
  6175. "activeTargets": {
  6176. "4": {
  6177. "queries": [
  6178. {
  6179. "filters": [
  6180. [
  6181. "include",
  6182. "==",
  6183. true
  6184. ]
  6185. ],
  6186. "limit": 1,
  6187. "limitType": "LimitToFirst",
  6188. "orderBys": [
  6189. ],
  6190. "path": "collection"
  6191. }
  6192. ],
  6193. "resumeToken": ""
  6194. }
  6195. }
  6196. }
  6197. },
  6198. {
  6199. "watchAck": [
  6200. 4
  6201. ]
  6202. },
  6203. {
  6204. "watchEntity": {
  6205. "docs": [
  6206. {
  6207. "createTime": 0,
  6208. "key": "collection/a",
  6209. "options": {
  6210. "hasCommittedMutations": false,
  6211. "hasLocalMutations": false
  6212. },
  6213. "value": {
  6214. "include": true,
  6215. "key": "a"
  6216. },
  6217. "version": 1000
  6218. }
  6219. ],
  6220. "targets": [
  6221. 4
  6222. ]
  6223. }
  6224. },
  6225. {
  6226. "watchCurrent": [
  6227. [
  6228. 4
  6229. ],
  6230. "resume-token-2000"
  6231. ]
  6232. },
  6233. {
  6234. "watchSnapshot": {
  6235. "targetIds": [
  6236. ],
  6237. "version": 2000
  6238. },
  6239. "expectedSnapshotEvents": [
  6240. {
  6241. "errorCode": 0,
  6242. "fromCache": false,
  6243. "hasPendingWrites": false,
  6244. "query": {
  6245. "filters": [
  6246. [
  6247. "include",
  6248. "==",
  6249. true
  6250. ]
  6251. ],
  6252. "limit": 1,
  6253. "limitType": "LimitToFirst",
  6254. "orderBys": [
  6255. ],
  6256. "path": "collection"
  6257. }
  6258. }
  6259. ]
  6260. },
  6261. {
  6262. "userPatch": [
  6263. "collection/a",
  6264. {
  6265. "include": false
  6266. }
  6267. ],
  6268. "expectedSnapshotEvents": [
  6269. {
  6270. "added": [
  6271. {
  6272. "createTime": 0,
  6273. "key": "collection/b",
  6274. "options": {
  6275. "hasCommittedMutations": false,
  6276. "hasLocalMutations": false
  6277. },
  6278. "value": {
  6279. "include": true,
  6280. "key": "b"
  6281. },
  6282. "version": 1000
  6283. }
  6284. ],
  6285. "errorCode": 0,
  6286. "fromCache": true,
  6287. "hasPendingWrites": false,
  6288. "query": {
  6289. "filters": [
  6290. [
  6291. "include",
  6292. "==",
  6293. true
  6294. ]
  6295. ],
  6296. "limit": 1,
  6297. "limitType": "LimitToFirst",
  6298. "orderBys": [
  6299. ],
  6300. "path": "collection"
  6301. },
  6302. "removed": [
  6303. {
  6304. "createTime": 0,
  6305. "key": "collection/a",
  6306. "options": {
  6307. "hasCommittedMutations": false,
  6308. "hasLocalMutations": false
  6309. },
  6310. "value": {
  6311. "include": true,
  6312. "key": "a"
  6313. },
  6314. "version": 1000
  6315. }
  6316. ]
  6317. }
  6318. ],
  6319. "expectedState": {
  6320. "activeLimboDocs": [
  6321. "collection/b"
  6322. ],
  6323. "activeTargets": {
  6324. "1": {
  6325. "queries": [
  6326. {
  6327. "filters": [
  6328. ],
  6329. "orderBys": [
  6330. ],
  6331. "path": "collection/b"
  6332. }
  6333. ],
  6334. "resumeToken": "",
  6335. "targetPurpose": "TargetPurposeLimboResolution"
  6336. },
  6337. "4": {
  6338. "queries": [
  6339. {
  6340. "filters": [
  6341. [
  6342. "include",
  6343. "==",
  6344. true
  6345. ]
  6346. ],
  6347. "limit": 1,
  6348. "limitType": "LimitToFirst",
  6349. "orderBys": [
  6350. ],
  6351. "path": "collection"
  6352. }
  6353. ],
  6354. "resumeToken": ""
  6355. }
  6356. }
  6357. }
  6358. },
  6359. {
  6360. "watchAck": [
  6361. 1
  6362. ]
  6363. },
  6364. {
  6365. "watchEntity": {
  6366. "docs": [
  6367. {
  6368. "createTime": 0,
  6369. "key": "collection/b",
  6370. "options": {
  6371. "hasCommittedMutations": false,
  6372. "hasLocalMutations": false
  6373. },
  6374. "value": {
  6375. "include": true,
  6376. "key": "b"
  6377. },
  6378. "version": 1000
  6379. }
  6380. ],
  6381. "targets": [
  6382. 1
  6383. ]
  6384. }
  6385. },
  6386. {
  6387. "watchSnapshot": {
  6388. "targetIds": [
  6389. ],
  6390. "version": 2000
  6391. }
  6392. },
  6393. {
  6394. "watchCurrent": [
  6395. [
  6396. 1
  6397. ],
  6398. "resume-token-3000"
  6399. ]
  6400. },
  6401. {
  6402. "watchSnapshot": {
  6403. "targetIds": [
  6404. ],
  6405. "version": 3000
  6406. }
  6407. },
  6408. {
  6409. "watchEntity": {
  6410. "docs": [
  6411. {
  6412. "createTime": 0,
  6413. "key": "collection/a",
  6414. "options": {
  6415. "hasCommittedMutations": false,
  6416. "hasLocalMutations": false
  6417. },
  6418. "value": {
  6419. "include": true,
  6420. "key": "a"
  6421. },
  6422. "version": 1000
  6423. }
  6424. ],
  6425. "removedTargets": [
  6426. 4
  6427. ]
  6428. }
  6429. },
  6430. {
  6431. "watchEntity": {
  6432. "docs": [
  6433. {
  6434. "createTime": 0,
  6435. "key": "collection/b",
  6436. "options": {
  6437. "hasCommittedMutations": false,
  6438. "hasLocalMutations": false
  6439. },
  6440. "value": {
  6441. "include": true,
  6442. "key": "b"
  6443. },
  6444. "version": 1000
  6445. }
  6446. ],
  6447. "targets": [
  6448. 4
  6449. ]
  6450. }
  6451. },
  6452. {
  6453. "watchSnapshot": {
  6454. "targetIds": [
  6455. ],
  6456. "version": 4000
  6457. },
  6458. "expectedSnapshotEvents": [
  6459. {
  6460. "errorCode": 0,
  6461. "fromCache": false,
  6462. "hasPendingWrites": false,
  6463. "query": {
  6464. "filters": [
  6465. [
  6466. "include",
  6467. "==",
  6468. true
  6469. ]
  6470. ],
  6471. "limit": 1,
  6472. "limitType": "LimitToFirst",
  6473. "orderBys": [
  6474. ],
  6475. "path": "collection"
  6476. }
  6477. }
  6478. ],
  6479. "expectedState": {
  6480. "activeLimboDocs": [
  6481. ],
  6482. "activeTargets": {
  6483. "4": {
  6484. "queries": [
  6485. {
  6486. "filters": [
  6487. [
  6488. "include",
  6489. "==",
  6490. true
  6491. ]
  6492. ],
  6493. "limit": 1,
  6494. "limitType": "LimitToFirst",
  6495. "orderBys": [
  6496. ],
  6497. "path": "collection"
  6498. }
  6499. ],
  6500. "resumeToken": ""
  6501. }
  6502. }
  6503. }
  6504. }
  6505. ]
  6506. },
  6507. "Limbo resolution handles snapshot before CURRENT [no document update]": {
  6508. "describeName": "Limbo Documents:",
  6509. "itName": "Limbo resolution handles snapshot before CURRENT [no document update]",
  6510. "tags": [
  6511. ],
  6512. "config": {
  6513. "numClients": 1,
  6514. "useEagerGCForMemory": false
  6515. },
  6516. "steps": [
  6517. {
  6518. "userListen": {
  6519. "query": {
  6520. "filters": [
  6521. ],
  6522. "orderBys": [
  6523. ],
  6524. "path": "collection"
  6525. },
  6526. "targetId": 2
  6527. },
  6528. "expectedState": {
  6529. "activeTargets": {
  6530. "2": {
  6531. "queries": [
  6532. {
  6533. "filters": [
  6534. ],
  6535. "orderBys": [
  6536. ],
  6537. "path": "collection"
  6538. }
  6539. ],
  6540. "resumeToken": ""
  6541. }
  6542. }
  6543. }
  6544. },
  6545. {
  6546. "watchAck": [
  6547. 2
  6548. ]
  6549. },
  6550. {
  6551. "watchEntity": {
  6552. "docs": [
  6553. {
  6554. "createTime": 0,
  6555. "key": "collection/a",
  6556. "options": {
  6557. "hasCommittedMutations": false,
  6558. "hasLocalMutations": false
  6559. },
  6560. "value": {
  6561. "include": true,
  6562. "key": "a"
  6563. },
  6564. "version": 1000
  6565. },
  6566. {
  6567. "createTime": 0,
  6568. "key": "collection/b",
  6569. "options": {
  6570. "hasCommittedMutations": false,
  6571. "hasLocalMutations": false
  6572. },
  6573. "value": {
  6574. "include": true,
  6575. "key": "b"
  6576. },
  6577. "version": 1000
  6578. }
  6579. ],
  6580. "targets": [
  6581. 2
  6582. ]
  6583. }
  6584. },
  6585. {
  6586. "watchCurrent": [
  6587. [
  6588. 2
  6589. ],
  6590. "resume-token-1000"
  6591. ]
  6592. },
  6593. {
  6594. "watchSnapshot": {
  6595. "targetIds": [
  6596. ],
  6597. "version": 1000
  6598. },
  6599. "expectedSnapshotEvents": [
  6600. {
  6601. "added": [
  6602. {
  6603. "createTime": 0,
  6604. "key": "collection/a",
  6605. "options": {
  6606. "hasCommittedMutations": false,
  6607. "hasLocalMutations": false
  6608. },
  6609. "value": {
  6610. "include": true,
  6611. "key": "a"
  6612. },
  6613. "version": 1000
  6614. },
  6615. {
  6616. "createTime": 0,
  6617. "key": "collection/b",
  6618. "options": {
  6619. "hasCommittedMutations": false,
  6620. "hasLocalMutations": false
  6621. },
  6622. "value": {
  6623. "include": true,
  6624. "key": "b"
  6625. },
  6626. "version": 1000
  6627. }
  6628. ],
  6629. "errorCode": 0,
  6630. "fromCache": false,
  6631. "hasPendingWrites": false,
  6632. "query": {
  6633. "filters": [
  6634. ],
  6635. "orderBys": [
  6636. ],
  6637. "path": "collection"
  6638. }
  6639. }
  6640. ]
  6641. },
  6642. {
  6643. "userUnlisten": [
  6644. 2,
  6645. {
  6646. "filters": [
  6647. ],
  6648. "orderBys": [
  6649. ],
  6650. "path": "collection"
  6651. }
  6652. ],
  6653. "expectedState": {
  6654. "activeTargets": {
  6655. }
  6656. }
  6657. },
  6658. {
  6659. "userListen": {
  6660. "query": {
  6661. "filters": [
  6662. [
  6663. "include",
  6664. "==",
  6665. true
  6666. ]
  6667. ],
  6668. "limit": 1,
  6669. "limitType": "LimitToFirst",
  6670. "orderBys": [
  6671. ],
  6672. "path": "collection"
  6673. },
  6674. "targetId": 4
  6675. },
  6676. "expectedSnapshotEvents": [
  6677. {
  6678. "added": [
  6679. {
  6680. "createTime": 0,
  6681. "key": "collection/a",
  6682. "options": {
  6683. "hasCommittedMutations": false,
  6684. "hasLocalMutations": false
  6685. },
  6686. "value": {
  6687. "include": true,
  6688. "key": "a"
  6689. },
  6690. "version": 1000
  6691. }
  6692. ],
  6693. "errorCode": 0,
  6694. "fromCache": true,
  6695. "hasPendingWrites": false,
  6696. "query": {
  6697. "filters": [
  6698. [
  6699. "include",
  6700. "==",
  6701. true
  6702. ]
  6703. ],
  6704. "limit": 1,
  6705. "limitType": "LimitToFirst",
  6706. "orderBys": [
  6707. ],
  6708. "path": "collection"
  6709. }
  6710. }
  6711. ],
  6712. "expectedState": {
  6713. "activeTargets": {
  6714. "4": {
  6715. "queries": [
  6716. {
  6717. "filters": [
  6718. [
  6719. "include",
  6720. "==",
  6721. true
  6722. ]
  6723. ],
  6724. "limit": 1,
  6725. "limitType": "LimitToFirst",
  6726. "orderBys": [
  6727. ],
  6728. "path": "collection"
  6729. }
  6730. ],
  6731. "resumeToken": ""
  6732. }
  6733. }
  6734. }
  6735. },
  6736. {
  6737. "watchAck": [
  6738. 4
  6739. ]
  6740. },
  6741. {
  6742. "watchEntity": {
  6743. "docs": [
  6744. {
  6745. "createTime": 0,
  6746. "key": "collection/a",
  6747. "options": {
  6748. "hasCommittedMutations": false,
  6749. "hasLocalMutations": false
  6750. },
  6751. "value": {
  6752. "include": true,
  6753. "key": "a"
  6754. },
  6755. "version": 1000
  6756. }
  6757. ],
  6758. "targets": [
  6759. 4
  6760. ]
  6761. }
  6762. },
  6763. {
  6764. "watchCurrent": [
  6765. [
  6766. 4
  6767. ],
  6768. "resume-token-2000"
  6769. ]
  6770. },
  6771. {
  6772. "watchSnapshot": {
  6773. "targetIds": [
  6774. ],
  6775. "version": 2000
  6776. },
  6777. "expectedSnapshotEvents": [
  6778. {
  6779. "errorCode": 0,
  6780. "fromCache": false,
  6781. "hasPendingWrites": false,
  6782. "query": {
  6783. "filters": [
  6784. [
  6785. "include",
  6786. "==",
  6787. true
  6788. ]
  6789. ],
  6790. "limit": 1,
  6791. "limitType": "LimitToFirst",
  6792. "orderBys": [
  6793. ],
  6794. "path": "collection"
  6795. }
  6796. }
  6797. ]
  6798. },
  6799. {
  6800. "userPatch": [
  6801. "collection/a",
  6802. {
  6803. "include": false
  6804. }
  6805. ],
  6806. "expectedSnapshotEvents": [
  6807. {
  6808. "added": [
  6809. {
  6810. "createTime": 0,
  6811. "key": "collection/b",
  6812. "options": {
  6813. "hasCommittedMutations": false,
  6814. "hasLocalMutations": false
  6815. },
  6816. "value": {
  6817. "include": true,
  6818. "key": "b"
  6819. },
  6820. "version": 1000
  6821. }
  6822. ],
  6823. "errorCode": 0,
  6824. "fromCache": true,
  6825. "hasPendingWrites": false,
  6826. "query": {
  6827. "filters": [
  6828. [
  6829. "include",
  6830. "==",
  6831. true
  6832. ]
  6833. ],
  6834. "limit": 1,
  6835. "limitType": "LimitToFirst",
  6836. "orderBys": [
  6837. ],
  6838. "path": "collection"
  6839. },
  6840. "removed": [
  6841. {
  6842. "createTime": 0,
  6843. "key": "collection/a",
  6844. "options": {
  6845. "hasCommittedMutations": false,
  6846. "hasLocalMutations": false
  6847. },
  6848. "value": {
  6849. "include": true,
  6850. "key": "a"
  6851. },
  6852. "version": 1000
  6853. }
  6854. ]
  6855. }
  6856. ],
  6857. "expectedState": {
  6858. "activeLimboDocs": [
  6859. "collection/b"
  6860. ],
  6861. "activeTargets": {
  6862. "1": {
  6863. "queries": [
  6864. {
  6865. "filters": [
  6866. ],
  6867. "orderBys": [
  6868. ],
  6869. "path": "collection/b"
  6870. }
  6871. ],
  6872. "resumeToken": "",
  6873. "targetPurpose": "TargetPurposeLimboResolution"
  6874. },
  6875. "4": {
  6876. "queries": [
  6877. {
  6878. "filters": [
  6879. [
  6880. "include",
  6881. "==",
  6882. true
  6883. ]
  6884. ],
  6885. "limit": 1,
  6886. "limitType": "LimitToFirst",
  6887. "orderBys": [
  6888. ],
  6889. "path": "collection"
  6890. }
  6891. ],
  6892. "resumeToken": ""
  6893. }
  6894. }
  6895. }
  6896. },
  6897. {
  6898. "watchAck": [
  6899. 1
  6900. ]
  6901. },
  6902. {
  6903. "watchSnapshot": {
  6904. "targetIds": [
  6905. ],
  6906. "version": 2000
  6907. }
  6908. },
  6909. {
  6910. "watchCurrent": [
  6911. [
  6912. 1
  6913. ],
  6914. "resume-token-3000"
  6915. ]
  6916. },
  6917. {
  6918. "watchSnapshot": {
  6919. "targetIds": [
  6920. ],
  6921. "version": 3000
  6922. },
  6923. "expectedSnapshotEvents": [
  6924. {
  6925. "errorCode": 0,
  6926. "fromCache": false,
  6927. "hasPendingWrites": false,
  6928. "query": {
  6929. "filters": [
  6930. [
  6931. "include",
  6932. "==",
  6933. true
  6934. ]
  6935. ],
  6936. "limit": 1,
  6937. "limitType": "LimitToFirst",
  6938. "orderBys": [
  6939. ],
  6940. "path": "collection"
  6941. },
  6942. "removed": [
  6943. {
  6944. "createTime": 0,
  6945. "key": "collection/b",
  6946. "options": {
  6947. "hasCommittedMutations": false,
  6948. "hasLocalMutations": false
  6949. },
  6950. "value": {
  6951. "include": true,
  6952. "key": "b"
  6953. },
  6954. "version": 1000
  6955. }
  6956. ]
  6957. }
  6958. ],
  6959. "expectedState": {
  6960. "activeLimboDocs": [
  6961. ],
  6962. "activeTargets": {
  6963. "4": {
  6964. "queries": [
  6965. {
  6966. "filters": [
  6967. [
  6968. "include",
  6969. "==",
  6970. true
  6971. ]
  6972. ],
  6973. "limit": 1,
  6974. "limitType": "LimitToFirst",
  6975. "orderBys": [
  6976. ],
  6977. "path": "collection"
  6978. }
  6979. ],
  6980. "resumeToken": ""
  6981. }
  6982. }
  6983. }
  6984. },
  6985. {
  6986. "watchEntity": {
  6987. "docs": [
  6988. {
  6989. "createTime": 0,
  6990. "key": "collection/a",
  6991. "options": {
  6992. "hasCommittedMutations": false,
  6993. "hasLocalMutations": false
  6994. },
  6995. "value": {
  6996. "include": true,
  6997. "key": "a"
  6998. },
  6999. "version": 1000
  7000. }
  7001. ],
  7002. "removedTargets": [
  7003. 4
  7004. ]
  7005. }
  7006. },
  7007. {
  7008. "watchSnapshot": {
  7009. "targetIds": [
  7010. ],
  7011. "version": 4000
  7012. }
  7013. }
  7014. ]
  7015. },
  7016. "Limbo resolution throttling when a limbo listen is rejected.": {
  7017. "describeName": "Limbo Documents:",
  7018. "itName": "Limbo resolution throttling when a limbo listen is rejected.",
  7019. "tags": [
  7020. ],
  7021. "config": {
  7022. "maxConcurrentLimboResolutions": 1,
  7023. "numClients": 1,
  7024. "useEagerGCForMemory": true
  7025. },
  7026. "steps": [
  7027. {
  7028. "userListen": {
  7029. "query": {
  7030. "filters": [
  7031. ],
  7032. "orderBys": [
  7033. ],
  7034. "path": "collection"
  7035. },
  7036. "targetId": 2
  7037. },
  7038. "expectedState": {
  7039. "activeTargets": {
  7040. "2": {
  7041. "queries": [
  7042. {
  7043. "filters": [
  7044. ],
  7045. "orderBys": [
  7046. ],
  7047. "path": "collection"
  7048. }
  7049. ],
  7050. "resumeToken": ""
  7051. }
  7052. }
  7053. }
  7054. },
  7055. {
  7056. "watchAck": [
  7057. 2
  7058. ]
  7059. },
  7060. {
  7061. "watchEntity": {
  7062. "docs": [
  7063. {
  7064. "createTime": 0,
  7065. "key": "collection/a",
  7066. "options": {
  7067. "hasCommittedMutations": false,
  7068. "hasLocalMutations": false
  7069. },
  7070. "value": {
  7071. "key": "a"
  7072. },
  7073. "version": 1000
  7074. },
  7075. {
  7076. "createTime": 0,
  7077. "key": "collection/b",
  7078. "options": {
  7079. "hasCommittedMutations": false,
  7080. "hasLocalMutations": false
  7081. },
  7082. "value": {
  7083. "key": "b"
  7084. },
  7085. "version": 1000
  7086. }
  7087. ],
  7088. "targets": [
  7089. 2
  7090. ]
  7091. }
  7092. },
  7093. {
  7094. "watchCurrent": [
  7095. [
  7096. 2
  7097. ],
  7098. "resume-token-1000"
  7099. ]
  7100. },
  7101. {
  7102. "watchSnapshot": {
  7103. "targetIds": [
  7104. ],
  7105. "version": 1000
  7106. },
  7107. "expectedSnapshotEvents": [
  7108. {
  7109. "added": [
  7110. {
  7111. "createTime": 0,
  7112. "key": "collection/a",
  7113. "options": {
  7114. "hasCommittedMutations": false,
  7115. "hasLocalMutations": false
  7116. },
  7117. "value": {
  7118. "key": "a"
  7119. },
  7120. "version": 1000
  7121. },
  7122. {
  7123. "createTime": 0,
  7124. "key": "collection/b",
  7125. "options": {
  7126. "hasCommittedMutations": false,
  7127. "hasLocalMutations": false
  7128. },
  7129. "value": {
  7130. "key": "b"
  7131. },
  7132. "version": 1000
  7133. }
  7134. ],
  7135. "errorCode": 0,
  7136. "fromCache": false,
  7137. "hasPendingWrites": false,
  7138. "query": {
  7139. "filters": [
  7140. ],
  7141. "orderBys": [
  7142. ],
  7143. "path": "collection"
  7144. }
  7145. }
  7146. ]
  7147. },
  7148. {
  7149. "watchReset": [
  7150. 2
  7151. ]
  7152. },
  7153. {
  7154. "watchEntity": {
  7155. "docs": [
  7156. ],
  7157. "targets": [
  7158. 2
  7159. ]
  7160. }
  7161. },
  7162. {
  7163. "watchCurrent": [
  7164. [
  7165. 2
  7166. ],
  7167. "resume-token-1001"
  7168. ]
  7169. },
  7170. {
  7171. "watchSnapshot": {
  7172. "targetIds": [
  7173. ],
  7174. "version": 2000
  7175. },
  7176. "expectedSnapshotEvents": [
  7177. {
  7178. "errorCode": 0,
  7179. "fromCache": true,
  7180. "hasPendingWrites": false,
  7181. "query": {
  7182. "filters": [
  7183. ],
  7184. "orderBys": [
  7185. ],
  7186. "path": "collection"
  7187. }
  7188. }
  7189. ],
  7190. "expectedState": {
  7191. "activeLimboDocs": [
  7192. "collection/a"
  7193. ],
  7194. "activeTargets": {
  7195. "1": {
  7196. "queries": [
  7197. {
  7198. "filters": [
  7199. ],
  7200. "orderBys": [
  7201. ],
  7202. "path": "collection/a"
  7203. }
  7204. ],
  7205. "resumeToken": "",
  7206. "targetPurpose": "TargetPurposeLimboResolution"
  7207. },
  7208. "2": {
  7209. "queries": [
  7210. {
  7211. "filters": [
  7212. ],
  7213. "orderBys": [
  7214. ],
  7215. "path": "collection"
  7216. }
  7217. ],
  7218. "resumeToken": ""
  7219. }
  7220. },
  7221. "enqueuedLimboDocs": [
  7222. "collection/b"
  7223. ]
  7224. }
  7225. },
  7226. {
  7227. "watchRemove": {
  7228. "cause": {
  7229. "code": 8
  7230. },
  7231. "targetIds": [
  7232. 1
  7233. ]
  7234. },
  7235. "expectedSnapshotEvents": [
  7236. {
  7237. "errorCode": 0,
  7238. "fromCache": true,
  7239. "hasPendingWrites": false,
  7240. "query": {
  7241. "filters": [
  7242. ],
  7243. "orderBys": [
  7244. ],
  7245. "path": "collection"
  7246. },
  7247. "removed": [
  7248. {
  7249. "createTime": 0,
  7250. "key": "collection/a",
  7251. "options": {
  7252. "hasCommittedMutations": false,
  7253. "hasLocalMutations": false
  7254. },
  7255. "value": {
  7256. "key": "a"
  7257. },
  7258. "version": 1000
  7259. }
  7260. ]
  7261. }
  7262. ],
  7263. "expectedState": {
  7264. "activeLimboDocs": [
  7265. "collection/b"
  7266. ],
  7267. "activeTargets": {
  7268. "2": {
  7269. "queries": [
  7270. {
  7271. "filters": [
  7272. ],
  7273. "orderBys": [
  7274. ],
  7275. "path": "collection"
  7276. }
  7277. ],
  7278. "resumeToken": ""
  7279. },
  7280. "3": {
  7281. "queries": [
  7282. {
  7283. "filters": [
  7284. ],
  7285. "orderBys": [
  7286. ],
  7287. "path": "collection/b"
  7288. }
  7289. ],
  7290. "resumeToken": "",
  7291. "targetPurpose": "TargetPurposeLimboResolution"
  7292. }
  7293. },
  7294. "enqueuedLimboDocs": [
  7295. ]
  7296. }
  7297. },
  7298. {
  7299. "watchRemove": {
  7300. "cause": {
  7301. "code": 8
  7302. },
  7303. "targetIds": [
  7304. 3
  7305. ]
  7306. },
  7307. "expectedSnapshotEvents": [
  7308. {
  7309. "errorCode": 0,
  7310. "fromCache": false,
  7311. "hasPendingWrites": false,
  7312. "query": {
  7313. "filters": [
  7314. ],
  7315. "orderBys": [
  7316. ],
  7317. "path": "collection"
  7318. },
  7319. "removed": [
  7320. {
  7321. "createTime": 0,
  7322. "key": "collection/b",
  7323. "options": {
  7324. "hasCommittedMutations": false,
  7325. "hasLocalMutations": false
  7326. },
  7327. "value": {
  7328. "key": "b"
  7329. },
  7330. "version": 1000
  7331. }
  7332. ]
  7333. }
  7334. ],
  7335. "expectedState": {
  7336. "activeLimboDocs": [
  7337. ],
  7338. "activeTargets": {
  7339. "2": {
  7340. "queries": [
  7341. {
  7342. "filters": [
  7343. ],
  7344. "orderBys": [
  7345. ],
  7346. "path": "collection"
  7347. }
  7348. ],
  7349. "resumeToken": ""
  7350. }
  7351. },
  7352. "enqueuedLimboDocs": [
  7353. ]
  7354. }
  7355. }
  7356. ]
  7357. },
  7358. "Limbo resolution throttling with all results at once from watch": {
  7359. "describeName": "Limbo Documents:",
  7360. "itName": "Limbo resolution throttling with all results at once from watch",
  7361. "tags": [
  7362. ],
  7363. "config": {
  7364. "maxConcurrentLimboResolutions": 2,
  7365. "numClients": 1,
  7366. "useEagerGCForMemory": true
  7367. },
  7368. "steps": [
  7369. {
  7370. "userListen": {
  7371. "query": {
  7372. "filters": [
  7373. ],
  7374. "orderBys": [
  7375. ],
  7376. "path": "collection"
  7377. },
  7378. "targetId": 2
  7379. },
  7380. "expectedState": {
  7381. "activeTargets": {
  7382. "2": {
  7383. "queries": [
  7384. {
  7385. "filters": [
  7386. ],
  7387. "orderBys": [
  7388. ],
  7389. "path": "collection"
  7390. }
  7391. ],
  7392. "resumeToken": ""
  7393. }
  7394. }
  7395. }
  7396. },
  7397. {
  7398. "watchAck": [
  7399. 2
  7400. ]
  7401. },
  7402. {
  7403. "watchEntity": {
  7404. "docs": [
  7405. {
  7406. "createTime": 0,
  7407. "key": "collection/a",
  7408. "options": {
  7409. "hasCommittedMutations": false,
  7410. "hasLocalMutations": false
  7411. },
  7412. "value": {
  7413. "key": "a"
  7414. },
  7415. "version": 1000
  7416. },
  7417. {
  7418. "createTime": 0,
  7419. "key": "collection/b",
  7420. "options": {
  7421. "hasCommittedMutations": false,
  7422. "hasLocalMutations": false
  7423. },
  7424. "value": {
  7425. "key": "b"
  7426. },
  7427. "version": 1000
  7428. },
  7429. {
  7430. "createTime": 0,
  7431. "key": "collection/c",
  7432. "options": {
  7433. "hasCommittedMutations": false,
  7434. "hasLocalMutations": false
  7435. },
  7436. "value": {
  7437. "key": "c"
  7438. },
  7439. "version": 1000
  7440. },
  7441. {
  7442. "createTime": 0,
  7443. "key": "collection/d",
  7444. "options": {
  7445. "hasCommittedMutations": false,
  7446. "hasLocalMutations": false
  7447. },
  7448. "value": {
  7449. "key": "d"
  7450. },
  7451. "version": 1000
  7452. },
  7453. {
  7454. "createTime": 0,
  7455. "key": "collection/e",
  7456. "options": {
  7457. "hasCommittedMutations": false,
  7458. "hasLocalMutations": false
  7459. },
  7460. "value": {
  7461. "key": "e"
  7462. },
  7463. "version": 1000
  7464. }
  7465. ],
  7466. "targets": [
  7467. 2
  7468. ]
  7469. }
  7470. },
  7471. {
  7472. "watchCurrent": [
  7473. [
  7474. 2
  7475. ],
  7476. "resume-token-1000"
  7477. ]
  7478. },
  7479. {
  7480. "watchSnapshot": {
  7481. "targetIds": [
  7482. ],
  7483. "version": 1000
  7484. },
  7485. "expectedSnapshotEvents": [
  7486. {
  7487. "added": [
  7488. {
  7489. "createTime": 0,
  7490. "key": "collection/a",
  7491. "options": {
  7492. "hasCommittedMutations": false,
  7493. "hasLocalMutations": false
  7494. },
  7495. "value": {
  7496. "key": "a"
  7497. },
  7498. "version": 1000
  7499. },
  7500. {
  7501. "createTime": 0,
  7502. "key": "collection/b",
  7503. "options": {
  7504. "hasCommittedMutations": false,
  7505. "hasLocalMutations": false
  7506. },
  7507. "value": {
  7508. "key": "b"
  7509. },
  7510. "version": 1000
  7511. },
  7512. {
  7513. "createTime": 0,
  7514. "key": "collection/c",
  7515. "options": {
  7516. "hasCommittedMutations": false,
  7517. "hasLocalMutations": false
  7518. },
  7519. "value": {
  7520. "key": "c"
  7521. },
  7522. "version": 1000
  7523. },
  7524. {
  7525. "createTime": 0,
  7526. "key": "collection/d",
  7527. "options": {
  7528. "hasCommittedMutations": false,
  7529. "hasLocalMutations": false
  7530. },
  7531. "value": {
  7532. "key": "d"
  7533. },
  7534. "version": 1000
  7535. },
  7536. {
  7537. "createTime": 0,
  7538. "key": "collection/e",
  7539. "options": {
  7540. "hasCommittedMutations": false,
  7541. "hasLocalMutations": false
  7542. },
  7543. "value": {
  7544. "key": "e"
  7545. },
  7546. "version": 1000
  7547. }
  7548. ],
  7549. "errorCode": 0,
  7550. "fromCache": false,
  7551. "hasPendingWrites": false,
  7552. "query": {
  7553. "filters": [
  7554. ],
  7555. "orderBys": [
  7556. ],
  7557. "path": "collection"
  7558. }
  7559. }
  7560. ]
  7561. },
  7562. {
  7563. "watchReset": [
  7564. 2
  7565. ]
  7566. },
  7567. {
  7568. "watchEntity": {
  7569. "docs": [
  7570. ],
  7571. "targets": [
  7572. 2
  7573. ]
  7574. }
  7575. },
  7576. {
  7577. "watchCurrent": [
  7578. [
  7579. 2
  7580. ],
  7581. "resume-token-2000"
  7582. ]
  7583. },
  7584. {
  7585. "watchSnapshot": {
  7586. "targetIds": [
  7587. ],
  7588. "version": 2000
  7589. },
  7590. "expectedSnapshotEvents": [
  7591. {
  7592. "errorCode": 0,
  7593. "fromCache": true,
  7594. "hasPendingWrites": false,
  7595. "query": {
  7596. "filters": [
  7597. ],
  7598. "orderBys": [
  7599. ],
  7600. "path": "collection"
  7601. }
  7602. }
  7603. ],
  7604. "expectedState": {
  7605. "activeLimboDocs": [
  7606. "collection/a",
  7607. "collection/b"
  7608. ],
  7609. "activeTargets": {
  7610. "1": {
  7611. "queries": [
  7612. {
  7613. "filters": [
  7614. ],
  7615. "orderBys": [
  7616. ],
  7617. "path": "collection/a"
  7618. }
  7619. ],
  7620. "resumeToken": "",
  7621. "targetPurpose": "TargetPurposeLimboResolution"
  7622. },
  7623. "2": {
  7624. "queries": [
  7625. {
  7626. "filters": [
  7627. ],
  7628. "orderBys": [
  7629. ],
  7630. "path": "collection"
  7631. }
  7632. ],
  7633. "resumeToken": ""
  7634. },
  7635. "3": {
  7636. "queries": [
  7637. {
  7638. "filters": [
  7639. ],
  7640. "orderBys": [
  7641. ],
  7642. "path": "collection/b"
  7643. }
  7644. ],
  7645. "resumeToken": "",
  7646. "targetPurpose": "TargetPurposeLimboResolution"
  7647. }
  7648. },
  7649. "enqueuedLimboDocs": [
  7650. "collection/c",
  7651. "collection/d",
  7652. "collection/e"
  7653. ]
  7654. }
  7655. },
  7656. {
  7657. "watchAck": [
  7658. 1
  7659. ]
  7660. },
  7661. {
  7662. "watchAck": [
  7663. 3
  7664. ]
  7665. },
  7666. {
  7667. "watchCurrent": [
  7668. [
  7669. 1
  7670. ],
  7671. "resume-token-2001"
  7672. ]
  7673. },
  7674. {
  7675. "watchCurrent": [
  7676. [
  7677. 3
  7678. ],
  7679. "resume-token-2001"
  7680. ]
  7681. },
  7682. {
  7683. "watchSnapshot": {
  7684. "targetIds": [
  7685. ],
  7686. "version": 2001
  7687. },
  7688. "expectedSnapshotEvents": [
  7689. {
  7690. "errorCode": 0,
  7691. "fromCache": true,
  7692. "hasPendingWrites": false,
  7693. "query": {
  7694. "filters": [
  7695. ],
  7696. "orderBys": [
  7697. ],
  7698. "path": "collection"
  7699. },
  7700. "removed": [
  7701. {
  7702. "createTime": 0,
  7703. "key": "collection/a",
  7704. "options": {
  7705. "hasCommittedMutations": false,
  7706. "hasLocalMutations": false
  7707. },
  7708. "value": {
  7709. "key": "a"
  7710. },
  7711. "version": 1000
  7712. },
  7713. {
  7714. "createTime": 0,
  7715. "key": "collection/b",
  7716. "options": {
  7717. "hasCommittedMutations": false,
  7718. "hasLocalMutations": false
  7719. },
  7720. "value": {
  7721. "key": "b"
  7722. },
  7723. "version": 1000
  7724. }
  7725. ]
  7726. }
  7727. ],
  7728. "expectedState": {
  7729. "activeLimboDocs": [
  7730. "collection/c",
  7731. "collection/d"
  7732. ],
  7733. "activeTargets": {
  7734. "2": {
  7735. "queries": [
  7736. {
  7737. "filters": [
  7738. ],
  7739. "orderBys": [
  7740. ],
  7741. "path": "collection"
  7742. }
  7743. ],
  7744. "resumeToken": ""
  7745. },
  7746. "5": {
  7747. "queries": [
  7748. {
  7749. "filters": [
  7750. ],
  7751. "orderBys": [
  7752. ],
  7753. "path": "collection/c"
  7754. }
  7755. ],
  7756. "resumeToken": "",
  7757. "targetPurpose": "TargetPurposeLimboResolution"
  7758. },
  7759. "7": {
  7760. "queries": [
  7761. {
  7762. "filters": [
  7763. ],
  7764. "orderBys": [
  7765. ],
  7766. "path": "collection/d"
  7767. }
  7768. ],
  7769. "resumeToken": "",
  7770. "targetPurpose": "TargetPurposeLimboResolution"
  7771. }
  7772. },
  7773. "enqueuedLimboDocs": [
  7774. "collection/e"
  7775. ]
  7776. }
  7777. },
  7778. {
  7779. "watchAck": [
  7780. 5
  7781. ]
  7782. },
  7783. {
  7784. "watchAck": [
  7785. 7
  7786. ]
  7787. },
  7788. {
  7789. "watchCurrent": [
  7790. [
  7791. 5
  7792. ],
  7793. "resume-token-2002"
  7794. ]
  7795. },
  7796. {
  7797. "watchCurrent": [
  7798. [
  7799. 7
  7800. ],
  7801. "resume-token-2002"
  7802. ]
  7803. },
  7804. {
  7805. "watchSnapshot": {
  7806. "targetIds": [
  7807. ],
  7808. "version": 2002
  7809. },
  7810. "expectedSnapshotEvents": [
  7811. {
  7812. "errorCode": 0,
  7813. "fromCache": true,
  7814. "hasPendingWrites": false,
  7815. "query": {
  7816. "filters": [
  7817. ],
  7818. "orderBys": [
  7819. ],
  7820. "path": "collection"
  7821. },
  7822. "removed": [
  7823. {
  7824. "createTime": 0,
  7825. "key": "collection/c",
  7826. "options": {
  7827. "hasCommittedMutations": false,
  7828. "hasLocalMutations": false
  7829. },
  7830. "value": {
  7831. "key": "c"
  7832. },
  7833. "version": 1000
  7834. },
  7835. {
  7836. "createTime": 0,
  7837. "key": "collection/d",
  7838. "options": {
  7839. "hasCommittedMutations": false,
  7840. "hasLocalMutations": false
  7841. },
  7842. "value": {
  7843. "key": "d"
  7844. },
  7845. "version": 1000
  7846. }
  7847. ]
  7848. }
  7849. ],
  7850. "expectedState": {
  7851. "activeLimboDocs": [
  7852. "collection/e"
  7853. ],
  7854. "activeTargets": {
  7855. "2": {
  7856. "queries": [
  7857. {
  7858. "filters": [
  7859. ],
  7860. "orderBys": [
  7861. ],
  7862. "path": "collection"
  7863. }
  7864. ],
  7865. "resumeToken": ""
  7866. },
  7867. "9": {
  7868. "queries": [
  7869. {
  7870. "filters": [
  7871. ],
  7872. "orderBys": [
  7873. ],
  7874. "path": "collection/e"
  7875. }
  7876. ],
  7877. "resumeToken": "",
  7878. "targetPurpose": "TargetPurposeLimboResolution"
  7879. }
  7880. },
  7881. "enqueuedLimboDocs": [
  7882. ]
  7883. }
  7884. },
  7885. {
  7886. "watchAck": [
  7887. 9
  7888. ]
  7889. },
  7890. {
  7891. "watchCurrent": [
  7892. [
  7893. 9
  7894. ],
  7895. "resume-token-2003"
  7896. ]
  7897. },
  7898. {
  7899. "watchSnapshot": {
  7900. "targetIds": [
  7901. ],
  7902. "version": 2003
  7903. },
  7904. "expectedSnapshotEvents": [
  7905. {
  7906. "errorCode": 0,
  7907. "fromCache": false,
  7908. "hasPendingWrites": false,
  7909. "query": {
  7910. "filters": [
  7911. ],
  7912. "orderBys": [
  7913. ],
  7914. "path": "collection"
  7915. },
  7916. "removed": [
  7917. {
  7918. "createTime": 0,
  7919. "key": "collection/e",
  7920. "options": {
  7921. "hasCommittedMutations": false,
  7922. "hasLocalMutations": false
  7923. },
  7924. "value": {
  7925. "key": "e"
  7926. },
  7927. "version": 1000
  7928. }
  7929. ]
  7930. }
  7931. ],
  7932. "expectedState": {
  7933. "activeLimboDocs": [
  7934. ],
  7935. "activeTargets": {
  7936. "2": {
  7937. "queries": [
  7938. {
  7939. "filters": [
  7940. ],
  7941. "orderBys": [
  7942. ],
  7943. "path": "collection"
  7944. }
  7945. ],
  7946. "resumeToken": ""
  7947. }
  7948. },
  7949. "enqueuedLimboDocs": [
  7950. ]
  7951. }
  7952. }
  7953. ]
  7954. },
  7955. "Limbo resolution throttling with bloom filter application": {
  7956. "describeName": "Limbo Documents:",
  7957. "itName": "Limbo resolution throttling with bloom filter application",
  7958. "tags": [
  7959. ],
  7960. "config": {
  7961. "maxConcurrentLimboResolutions": 2,
  7962. "numClients": 1,
  7963. "useEagerGCForMemory": true
  7964. },
  7965. "steps": [
  7966. {
  7967. "userListen": {
  7968. "query": {
  7969. "filters": [
  7970. ],
  7971. "orderBys": [
  7972. ],
  7973. "path": "collection"
  7974. },
  7975. "targetId": 2
  7976. },
  7977. "expectedState": {
  7978. "activeTargets": {
  7979. "2": {
  7980. "queries": [
  7981. {
  7982. "filters": [
  7983. ],
  7984. "orderBys": [
  7985. ],
  7986. "path": "collection"
  7987. }
  7988. ],
  7989. "resumeToken": ""
  7990. }
  7991. }
  7992. }
  7993. },
  7994. {
  7995. "watchAck": [
  7996. 2
  7997. ]
  7998. },
  7999. {
  8000. "watchEntity": {
  8001. "docs": [
  8002. {
  8003. "createTime": 0,
  8004. "key": "collection/a1",
  8005. "options": {
  8006. "hasCommittedMutations": false,
  8007. "hasLocalMutations": false
  8008. },
  8009. "value": {
  8010. "key": "a1"
  8011. },
  8012. "version": 1000
  8013. },
  8014. {
  8015. "createTime": 0,
  8016. "key": "collection/a2",
  8017. "options": {
  8018. "hasCommittedMutations": false,
  8019. "hasLocalMutations": false
  8020. },
  8021. "value": {
  8022. "key": "a2"
  8023. },
  8024. "version": 1000
  8025. },
  8026. {
  8027. "createTime": 0,
  8028. "key": "collection/a3",
  8029. "options": {
  8030. "hasCommittedMutations": false,
  8031. "hasLocalMutations": false
  8032. },
  8033. "value": {
  8034. "key": "a3"
  8035. },
  8036. "version": 1000
  8037. }
  8038. ],
  8039. "targets": [
  8040. 2
  8041. ]
  8042. }
  8043. },
  8044. {
  8045. "watchCurrent": [
  8046. [
  8047. 2
  8048. ],
  8049. "resume-token-1000"
  8050. ]
  8051. },
  8052. {
  8053. "watchSnapshot": {
  8054. "targetIds": [
  8055. ],
  8056. "version": 1000
  8057. },
  8058. "expectedSnapshotEvents": [
  8059. {
  8060. "added": [
  8061. {
  8062. "createTime": 0,
  8063. "key": "collection/a1",
  8064. "options": {
  8065. "hasCommittedMutations": false,
  8066. "hasLocalMutations": false
  8067. },
  8068. "value": {
  8069. "key": "a1"
  8070. },
  8071. "version": 1000
  8072. },
  8073. {
  8074. "createTime": 0,
  8075. "key": "collection/a2",
  8076. "options": {
  8077. "hasCommittedMutations": false,
  8078. "hasLocalMutations": false
  8079. },
  8080. "value": {
  8081. "key": "a2"
  8082. },
  8083. "version": 1000
  8084. },
  8085. {
  8086. "createTime": 0,
  8087. "key": "collection/a3",
  8088. "options": {
  8089. "hasCommittedMutations": false,
  8090. "hasLocalMutations": false
  8091. },
  8092. "value": {
  8093. "key": "a3"
  8094. },
  8095. "version": 1000
  8096. }
  8097. ],
  8098. "errorCode": 0,
  8099. "fromCache": false,
  8100. "hasPendingWrites": false,
  8101. "query": {
  8102. "filters": [
  8103. ],
  8104. "orderBys": [
  8105. ],
  8106. "path": "collection"
  8107. }
  8108. }
  8109. ]
  8110. },
  8111. {
  8112. "enableNetwork": false,
  8113. "expectedSnapshotEvents": [
  8114. {
  8115. "errorCode": 0,
  8116. "fromCache": true,
  8117. "hasPendingWrites": false,
  8118. "query": {
  8119. "filters": [
  8120. ],
  8121. "orderBys": [
  8122. ],
  8123. "path": "collection"
  8124. }
  8125. }
  8126. ],
  8127. "expectedState": {
  8128. "activeLimboDocs": [
  8129. ],
  8130. "activeTargets": {
  8131. },
  8132. "enqueuedLimboDocs": [
  8133. ]
  8134. }
  8135. },
  8136. {
  8137. "enableNetwork": true,
  8138. "expectedState": {
  8139. "activeTargets": {
  8140. "2": {
  8141. "queries": [
  8142. {
  8143. "filters": [
  8144. ],
  8145. "orderBys": [
  8146. ],
  8147. "path": "collection"
  8148. }
  8149. ],
  8150. "resumeToken": "resume-token-1000"
  8151. }
  8152. }
  8153. }
  8154. },
  8155. {
  8156. "watchAck": [
  8157. 2
  8158. ]
  8159. },
  8160. {
  8161. "watchEntity": {
  8162. "docs": [
  8163. {
  8164. "createTime": 0,
  8165. "key": "collection/b1",
  8166. "options": {
  8167. "hasCommittedMutations": false,
  8168. "hasLocalMutations": false
  8169. },
  8170. "value": {
  8171. "key": "b1"
  8172. },
  8173. "version": 1000
  8174. },
  8175. {
  8176. "createTime": 0,
  8177. "key": "collection/b2",
  8178. "options": {
  8179. "hasCommittedMutations": false,
  8180. "hasLocalMutations": false
  8181. },
  8182. "value": {
  8183. "key": "b2"
  8184. },
  8185. "version": 1000
  8186. },
  8187. {
  8188. "createTime": 0,
  8189. "key": "collection/b3",
  8190. "options": {
  8191. "hasCommittedMutations": false,
  8192. "hasLocalMutations": false
  8193. },
  8194. "value": {
  8195. "key": "b3"
  8196. },
  8197. "version": 1000
  8198. }
  8199. ],
  8200. "targets": [
  8201. 2
  8202. ]
  8203. }
  8204. },
  8205. {
  8206. "watchFilter": {
  8207. "bloomFilter": {
  8208. "bits": {
  8209. "bitmap": "yABCEAeZURNRGAkgAQ==",
  8210. "padding": 4
  8211. },
  8212. "hashCount": 10
  8213. },
  8214. "keys": [
  8215. "collection/b1",
  8216. "collection/b2",
  8217. "collection/b3"
  8218. ],
  8219. "targetIds": [
  8220. 2
  8221. ]
  8222. }
  8223. },
  8224. {
  8225. "watchSnapshot": {
  8226. "targetIds": [
  8227. ],
  8228. "version": 1001
  8229. },
  8230. "expectedSnapshotEvents": [
  8231. {
  8232. "added": [
  8233. {
  8234. "createTime": 0,
  8235. "key": "collection/b1",
  8236. "options": {
  8237. "hasCommittedMutations": false,
  8238. "hasLocalMutations": false
  8239. },
  8240. "value": {
  8241. "key": "b1"
  8242. },
  8243. "version": 1000
  8244. },
  8245. {
  8246. "createTime": 0,
  8247. "key": "collection/b2",
  8248. "options": {
  8249. "hasCommittedMutations": false,
  8250. "hasLocalMutations": false
  8251. },
  8252. "value": {
  8253. "key": "b2"
  8254. },
  8255. "version": 1000
  8256. },
  8257. {
  8258. "createTime": 0,
  8259. "key": "collection/b3",
  8260. "options": {
  8261. "hasCommittedMutations": false,
  8262. "hasLocalMutations": false
  8263. },
  8264. "value": {
  8265. "key": "b3"
  8266. },
  8267. "version": 1000
  8268. }
  8269. ],
  8270. "errorCode": 0,
  8271. "fromCache": true,
  8272. "hasPendingWrites": false,
  8273. "query": {
  8274. "filters": [
  8275. ],
  8276. "orderBys": [
  8277. ],
  8278. "path": "collection"
  8279. }
  8280. }
  8281. ]
  8282. },
  8283. {
  8284. "watchCurrent": [
  8285. [
  8286. 2
  8287. ],
  8288. "resume-token-1002"
  8289. ]
  8290. },
  8291. {
  8292. "watchSnapshot": {
  8293. "targetIds": [
  8294. ],
  8295. "version": 1002
  8296. },
  8297. "expectedState": {
  8298. "activeLimboDocs": [
  8299. "collection/a1",
  8300. "collection/a2"
  8301. ],
  8302. "activeTargets": {
  8303. "1": {
  8304. "queries": [
  8305. {
  8306. "filters": [
  8307. ],
  8308. "orderBys": [
  8309. ],
  8310. "path": "collection/a1"
  8311. }
  8312. ],
  8313. "resumeToken": "",
  8314. "targetPurpose": "TargetPurposeLimboResolution"
  8315. },
  8316. "2": {
  8317. "queries": [
  8318. {
  8319. "filters": [
  8320. ],
  8321. "orderBys": [
  8322. ],
  8323. "path": "collection"
  8324. }
  8325. ],
  8326. "resumeToken": "resume-token-1000"
  8327. },
  8328. "3": {
  8329. "queries": [
  8330. {
  8331. "filters": [
  8332. ],
  8333. "orderBys": [
  8334. ],
  8335. "path": "collection/a2"
  8336. }
  8337. ],
  8338. "resumeToken": "",
  8339. "targetPurpose": "TargetPurposeLimboResolution"
  8340. }
  8341. },
  8342. "enqueuedLimboDocs": [
  8343. "collection/a3"
  8344. ]
  8345. }
  8346. }
  8347. ]
  8348. },
  8349. "Limbo resolution throttling with existence filter mismatch": {
  8350. "describeName": "Limbo Documents:",
  8351. "itName": "Limbo resolution throttling with existence filter mismatch",
  8352. "tags": [
  8353. ],
  8354. "config": {
  8355. "maxConcurrentLimboResolutions": 2,
  8356. "numClients": 1,
  8357. "useEagerGCForMemory": true
  8358. },
  8359. "steps": [
  8360. {
  8361. "userListen": {
  8362. "query": {
  8363. "filters": [
  8364. ],
  8365. "orderBys": [
  8366. ],
  8367. "path": "collection"
  8368. },
  8369. "targetId": 2
  8370. },
  8371. "expectedState": {
  8372. "activeTargets": {
  8373. "2": {
  8374. "queries": [
  8375. {
  8376. "filters": [
  8377. ],
  8378. "orderBys": [
  8379. ],
  8380. "path": "collection"
  8381. }
  8382. ],
  8383. "resumeToken": ""
  8384. }
  8385. }
  8386. }
  8387. },
  8388. {
  8389. "watchAck": [
  8390. 2
  8391. ]
  8392. },
  8393. {
  8394. "watchEntity": {
  8395. "docs": [
  8396. {
  8397. "createTime": 0,
  8398. "key": "collection/a1",
  8399. "options": {
  8400. "hasCommittedMutations": false,
  8401. "hasLocalMutations": false
  8402. },
  8403. "value": {
  8404. "key": "a1"
  8405. },
  8406. "version": 1000
  8407. },
  8408. {
  8409. "createTime": 0,
  8410. "key": "collection/a2",
  8411. "options": {
  8412. "hasCommittedMutations": false,
  8413. "hasLocalMutations": false
  8414. },
  8415. "value": {
  8416. "key": "a2"
  8417. },
  8418. "version": 1000
  8419. },
  8420. {
  8421. "createTime": 0,
  8422. "key": "collection/a3",
  8423. "options": {
  8424. "hasCommittedMutations": false,
  8425. "hasLocalMutations": false
  8426. },
  8427. "value": {
  8428. "key": "a3"
  8429. },
  8430. "version": 1000
  8431. }
  8432. ],
  8433. "targets": [
  8434. 2
  8435. ]
  8436. }
  8437. },
  8438. {
  8439. "watchCurrent": [
  8440. [
  8441. 2
  8442. ],
  8443. "resume-token-1000"
  8444. ]
  8445. },
  8446. {
  8447. "watchSnapshot": {
  8448. "targetIds": [
  8449. ],
  8450. "version": 1000
  8451. },
  8452. "expectedSnapshotEvents": [
  8453. {
  8454. "added": [
  8455. {
  8456. "createTime": 0,
  8457. "key": "collection/a1",
  8458. "options": {
  8459. "hasCommittedMutations": false,
  8460. "hasLocalMutations": false
  8461. },
  8462. "value": {
  8463. "key": "a1"
  8464. },
  8465. "version": 1000
  8466. },
  8467. {
  8468. "createTime": 0,
  8469. "key": "collection/a2",
  8470. "options": {
  8471. "hasCommittedMutations": false,
  8472. "hasLocalMutations": false
  8473. },
  8474. "value": {
  8475. "key": "a2"
  8476. },
  8477. "version": 1000
  8478. },
  8479. {
  8480. "createTime": 0,
  8481. "key": "collection/a3",
  8482. "options": {
  8483. "hasCommittedMutations": false,
  8484. "hasLocalMutations": false
  8485. },
  8486. "value": {
  8487. "key": "a3"
  8488. },
  8489. "version": 1000
  8490. }
  8491. ],
  8492. "errorCode": 0,
  8493. "fromCache": false,
  8494. "hasPendingWrites": false,
  8495. "query": {
  8496. "filters": [
  8497. ],
  8498. "orderBys": [
  8499. ],
  8500. "path": "collection"
  8501. }
  8502. }
  8503. ]
  8504. },
  8505. {
  8506. "enableNetwork": false,
  8507. "expectedSnapshotEvents": [
  8508. {
  8509. "errorCode": 0,
  8510. "fromCache": true,
  8511. "hasPendingWrites": false,
  8512. "query": {
  8513. "filters": [
  8514. ],
  8515. "orderBys": [
  8516. ],
  8517. "path": "collection"
  8518. }
  8519. }
  8520. ],
  8521. "expectedState": {
  8522. "activeLimboDocs": [
  8523. ],
  8524. "activeTargets": {
  8525. },
  8526. "enqueuedLimboDocs": [
  8527. ]
  8528. }
  8529. },
  8530. {
  8531. "enableNetwork": true,
  8532. "expectedState": {
  8533. "activeTargets": {
  8534. "2": {
  8535. "queries": [
  8536. {
  8537. "filters": [
  8538. ],
  8539. "orderBys": [
  8540. ],
  8541. "path": "collection"
  8542. }
  8543. ],
  8544. "resumeToken": "resume-token-1000"
  8545. }
  8546. }
  8547. }
  8548. },
  8549. {
  8550. "watchAck": [
  8551. 2
  8552. ]
  8553. },
  8554. {
  8555. "watchEntity": {
  8556. "docs": [
  8557. {
  8558. "createTime": 0,
  8559. "key": "collection/b1",
  8560. "options": {
  8561. "hasCommittedMutations": false,
  8562. "hasLocalMutations": false
  8563. },
  8564. "value": {
  8565. "key": "b1"
  8566. },
  8567. "version": 1000
  8568. },
  8569. {
  8570. "createTime": 0,
  8571. "key": "collection/b2",
  8572. "options": {
  8573. "hasCommittedMutations": false,
  8574. "hasLocalMutations": false
  8575. },
  8576. "value": {
  8577. "key": "b2"
  8578. },
  8579. "version": 1000
  8580. },
  8581. {
  8582. "createTime": 0,
  8583. "key": "collection/b3",
  8584. "options": {
  8585. "hasCommittedMutations": false,
  8586. "hasLocalMutations": false
  8587. },
  8588. "value": {
  8589. "key": "b3"
  8590. },
  8591. "version": 1000
  8592. }
  8593. ],
  8594. "targets": [
  8595. 2
  8596. ]
  8597. }
  8598. },
  8599. {
  8600. "watchFilter": {
  8601. "keys": [
  8602. "collection/b1",
  8603. "collection/b2",
  8604. "collection/b3"
  8605. ],
  8606. "targetIds": [
  8607. 2
  8608. ]
  8609. }
  8610. },
  8611. {
  8612. "watchSnapshot": {
  8613. "targetIds": [
  8614. ],
  8615. "version": 1001
  8616. },
  8617. "expectedSnapshotEvents": [
  8618. {
  8619. "added": [
  8620. {
  8621. "createTime": 0,
  8622. "key": "collection/b1",
  8623. "options": {
  8624. "hasCommittedMutations": false,
  8625. "hasLocalMutations": false
  8626. },
  8627. "value": {
  8628. "key": "b1"
  8629. },
  8630. "version": 1000
  8631. },
  8632. {
  8633. "createTime": 0,
  8634. "key": "collection/b2",
  8635. "options": {
  8636. "hasCommittedMutations": false,
  8637. "hasLocalMutations": false
  8638. },
  8639. "value": {
  8640. "key": "b2"
  8641. },
  8642. "version": 1000
  8643. },
  8644. {
  8645. "createTime": 0,
  8646. "key": "collection/b3",
  8647. "options": {
  8648. "hasCommittedMutations": false,
  8649. "hasLocalMutations": false
  8650. },
  8651. "value": {
  8652. "key": "b3"
  8653. },
  8654. "version": 1000
  8655. }
  8656. ],
  8657. "errorCode": 0,
  8658. "fromCache": true,
  8659. "hasPendingWrites": false,
  8660. "query": {
  8661. "filters": [
  8662. ],
  8663. "orderBys": [
  8664. ],
  8665. "path": "collection"
  8666. }
  8667. }
  8668. ],
  8669. "expectedState": {
  8670. "activeTargets": {
  8671. "2": {
  8672. "queries": [
  8673. {
  8674. "filters": [
  8675. ],
  8676. "orderBys": [
  8677. ],
  8678. "path": "collection"
  8679. }
  8680. ],
  8681. "resumeToken": "",
  8682. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8683. }
  8684. }
  8685. }
  8686. },
  8687. {
  8688. "watchRemove": {
  8689. "targetIds": [
  8690. 2
  8691. ]
  8692. }
  8693. },
  8694. {
  8695. "watchAck": [
  8696. 2
  8697. ]
  8698. },
  8699. {
  8700. "watchEntity": {
  8701. "docs": [
  8702. {
  8703. "createTime": 0,
  8704. "key": "collection/b1",
  8705. "options": {
  8706. "hasCommittedMutations": false,
  8707. "hasLocalMutations": false
  8708. },
  8709. "value": {
  8710. "key": "b1"
  8711. },
  8712. "version": 1000
  8713. },
  8714. {
  8715. "createTime": 0,
  8716. "key": "collection/b2",
  8717. "options": {
  8718. "hasCommittedMutations": false,
  8719. "hasLocalMutations": false
  8720. },
  8721. "value": {
  8722. "key": "b2"
  8723. },
  8724. "version": 1000
  8725. },
  8726. {
  8727. "createTime": 0,
  8728. "key": "collection/b3",
  8729. "options": {
  8730. "hasCommittedMutations": false,
  8731. "hasLocalMutations": false
  8732. },
  8733. "value": {
  8734. "key": "b3"
  8735. },
  8736. "version": 1000
  8737. }
  8738. ],
  8739. "targets": [
  8740. 2
  8741. ]
  8742. }
  8743. },
  8744. {
  8745. "watchCurrent": [
  8746. [
  8747. 2
  8748. ],
  8749. "resume-token-1002"
  8750. ]
  8751. },
  8752. {
  8753. "watchSnapshot": {
  8754. "targetIds": [
  8755. ],
  8756. "version": 1002
  8757. },
  8758. "expectedState": {
  8759. "activeLimboDocs": [
  8760. "collection/a1",
  8761. "collection/a2"
  8762. ],
  8763. "activeTargets": {
  8764. "1": {
  8765. "queries": [
  8766. {
  8767. "filters": [
  8768. ],
  8769. "orderBys": [
  8770. ],
  8771. "path": "collection/a1"
  8772. }
  8773. ],
  8774. "resumeToken": "",
  8775. "targetPurpose": "TargetPurposeLimboResolution"
  8776. },
  8777. "2": {
  8778. "queries": [
  8779. {
  8780. "filters": [
  8781. ],
  8782. "orderBys": [
  8783. ],
  8784. "path": "collection"
  8785. }
  8786. ],
  8787. "resumeToken": "",
  8788. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8789. },
  8790. "3": {
  8791. "queries": [
  8792. {
  8793. "filters": [
  8794. ],
  8795. "orderBys": [
  8796. ],
  8797. "path": "collection/a2"
  8798. }
  8799. ],
  8800. "resumeToken": "",
  8801. "targetPurpose": "TargetPurposeLimboResolution"
  8802. }
  8803. },
  8804. "enqueuedLimboDocs": [
  8805. "collection/a3"
  8806. ]
  8807. }
  8808. },
  8809. {
  8810. "watchAck": [
  8811. 1
  8812. ]
  8813. },
  8814. {
  8815. "watchAck": [
  8816. 3
  8817. ]
  8818. },
  8819. {
  8820. "watchCurrent": [
  8821. [
  8822. 1
  8823. ],
  8824. "resume-token-1003"
  8825. ]
  8826. },
  8827. {
  8828. "watchCurrent": [
  8829. [
  8830. 3
  8831. ],
  8832. "resume-token-1003"
  8833. ]
  8834. },
  8835. {
  8836. "watchSnapshot": {
  8837. "targetIds": [
  8838. ],
  8839. "version": 1003
  8840. },
  8841. "expectedSnapshotEvents": [
  8842. {
  8843. "errorCode": 0,
  8844. "fromCache": true,
  8845. "hasPendingWrites": false,
  8846. "query": {
  8847. "filters": [
  8848. ],
  8849. "orderBys": [
  8850. ],
  8851. "path": "collection"
  8852. },
  8853. "removed": [
  8854. {
  8855. "createTime": 0,
  8856. "key": "collection/a1",
  8857. "options": {
  8858. "hasCommittedMutations": false,
  8859. "hasLocalMutations": false
  8860. },
  8861. "value": {
  8862. "key": "a1"
  8863. },
  8864. "version": 1000
  8865. },
  8866. {
  8867. "createTime": 0,
  8868. "key": "collection/a2",
  8869. "options": {
  8870. "hasCommittedMutations": false,
  8871. "hasLocalMutations": false
  8872. },
  8873. "value": {
  8874. "key": "a2"
  8875. },
  8876. "version": 1000
  8877. }
  8878. ]
  8879. }
  8880. ],
  8881. "expectedState": {
  8882. "activeLimboDocs": [
  8883. "collection/a3"
  8884. ],
  8885. "activeTargets": {
  8886. "2": {
  8887. "queries": [
  8888. {
  8889. "filters": [
  8890. ],
  8891. "orderBys": [
  8892. ],
  8893. "path": "collection"
  8894. }
  8895. ],
  8896. "resumeToken": "",
  8897. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8898. },
  8899. "5": {
  8900. "queries": [
  8901. {
  8902. "filters": [
  8903. ],
  8904. "orderBys": [
  8905. ],
  8906. "path": "collection/a3"
  8907. }
  8908. ],
  8909. "resumeToken": "",
  8910. "targetPurpose": "TargetPurposeLimboResolution"
  8911. }
  8912. },
  8913. "enqueuedLimboDocs": [
  8914. ]
  8915. }
  8916. },
  8917. {
  8918. "watchAck": [
  8919. 5
  8920. ]
  8921. },
  8922. {
  8923. "watchCurrent": [
  8924. [
  8925. 5
  8926. ],
  8927. "resume-token-1004"
  8928. ]
  8929. },
  8930. {
  8931. "watchSnapshot": {
  8932. "targetIds": [
  8933. ],
  8934. "version": 1004
  8935. },
  8936. "expectedSnapshotEvents": [
  8937. {
  8938. "errorCode": 0,
  8939. "fromCache": false,
  8940. "hasPendingWrites": false,
  8941. "query": {
  8942. "filters": [
  8943. ],
  8944. "orderBys": [
  8945. ],
  8946. "path": "collection"
  8947. },
  8948. "removed": [
  8949. {
  8950. "createTime": 0,
  8951. "key": "collection/a3",
  8952. "options": {
  8953. "hasCommittedMutations": false,
  8954. "hasLocalMutations": false
  8955. },
  8956. "value": {
  8957. "key": "a3"
  8958. },
  8959. "version": 1000
  8960. }
  8961. ]
  8962. }
  8963. ],
  8964. "expectedState": {
  8965. "activeLimboDocs": [
  8966. ],
  8967. "activeTargets": {
  8968. "2": {
  8969. "queries": [
  8970. {
  8971. "filters": [
  8972. ],
  8973. "orderBys": [
  8974. ],
  8975. "path": "collection"
  8976. }
  8977. ],
  8978. "resumeToken": "",
  8979. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8980. }
  8981. },
  8982. "enqueuedLimboDocs": [
  8983. ]
  8984. }
  8985. }
  8986. ]
  8987. },
  8988. "Limbo resolution throttling with results one at a time from watch": {
  8989. "describeName": "Limbo Documents:",
  8990. "itName": "Limbo resolution throttling with results one at a time from watch",
  8991. "tags": [
  8992. ],
  8993. "config": {
  8994. "maxConcurrentLimboResolutions": 2,
  8995. "numClients": 1,
  8996. "useEagerGCForMemory": true
  8997. },
  8998. "steps": [
  8999. {
  9000. "userListen": {
  9001. "query": {
  9002. "filters": [
  9003. ],
  9004. "orderBys": [
  9005. ],
  9006. "path": "collection"
  9007. },
  9008. "targetId": 2
  9009. },
  9010. "expectedState": {
  9011. "activeTargets": {
  9012. "2": {
  9013. "queries": [
  9014. {
  9015. "filters": [
  9016. ],
  9017. "orderBys": [
  9018. ],
  9019. "path": "collection"
  9020. }
  9021. ],
  9022. "resumeToken": ""
  9023. }
  9024. }
  9025. }
  9026. },
  9027. {
  9028. "watchAck": [
  9029. 2
  9030. ]
  9031. },
  9032. {
  9033. "watchEntity": {
  9034. "docs": [
  9035. {
  9036. "createTime": 0,
  9037. "key": "collection/a",
  9038. "options": {
  9039. "hasCommittedMutations": false,
  9040. "hasLocalMutations": false
  9041. },
  9042. "value": {
  9043. "key": "a"
  9044. },
  9045. "version": 1000
  9046. },
  9047. {
  9048. "createTime": 0,
  9049. "key": "collection/b",
  9050. "options": {
  9051. "hasCommittedMutations": false,
  9052. "hasLocalMutations": false
  9053. },
  9054. "value": {
  9055. "key": "b"
  9056. },
  9057. "version": 1000
  9058. },
  9059. {
  9060. "createTime": 0,
  9061. "key": "collection/c",
  9062. "options": {
  9063. "hasCommittedMutations": false,
  9064. "hasLocalMutations": false
  9065. },
  9066. "value": {
  9067. "key": "c"
  9068. },
  9069. "version": 1000
  9070. },
  9071. {
  9072. "createTime": 0,
  9073. "key": "collection/d",
  9074. "options": {
  9075. "hasCommittedMutations": false,
  9076. "hasLocalMutations": false
  9077. },
  9078. "value": {
  9079. "key": "d"
  9080. },
  9081. "version": 1000
  9082. },
  9083. {
  9084. "createTime": 0,
  9085. "key": "collection/e",
  9086. "options": {
  9087. "hasCommittedMutations": false,
  9088. "hasLocalMutations": false
  9089. },
  9090. "value": {
  9091. "key": "e"
  9092. },
  9093. "version": 1000
  9094. }
  9095. ],
  9096. "targets": [
  9097. 2
  9098. ]
  9099. }
  9100. },
  9101. {
  9102. "watchCurrent": [
  9103. [
  9104. 2
  9105. ],
  9106. "resume-token-1000"
  9107. ]
  9108. },
  9109. {
  9110. "watchSnapshot": {
  9111. "targetIds": [
  9112. ],
  9113. "version": 1000
  9114. },
  9115. "expectedSnapshotEvents": [
  9116. {
  9117. "added": [
  9118. {
  9119. "createTime": 0,
  9120. "key": "collection/a",
  9121. "options": {
  9122. "hasCommittedMutations": false,
  9123. "hasLocalMutations": false
  9124. },
  9125. "value": {
  9126. "key": "a"
  9127. },
  9128. "version": 1000
  9129. },
  9130. {
  9131. "createTime": 0,
  9132. "key": "collection/b",
  9133. "options": {
  9134. "hasCommittedMutations": false,
  9135. "hasLocalMutations": false
  9136. },
  9137. "value": {
  9138. "key": "b"
  9139. },
  9140. "version": 1000
  9141. },
  9142. {
  9143. "createTime": 0,
  9144. "key": "collection/c",
  9145. "options": {
  9146. "hasCommittedMutations": false,
  9147. "hasLocalMutations": false
  9148. },
  9149. "value": {
  9150. "key": "c"
  9151. },
  9152. "version": 1000
  9153. },
  9154. {
  9155. "createTime": 0,
  9156. "key": "collection/d",
  9157. "options": {
  9158. "hasCommittedMutations": false,
  9159. "hasLocalMutations": false
  9160. },
  9161. "value": {
  9162. "key": "d"
  9163. },
  9164. "version": 1000
  9165. },
  9166. {
  9167. "createTime": 0,
  9168. "key": "collection/e",
  9169. "options": {
  9170. "hasCommittedMutations": false,
  9171. "hasLocalMutations": false
  9172. },
  9173. "value": {
  9174. "key": "e"
  9175. },
  9176. "version": 1000
  9177. }
  9178. ],
  9179. "errorCode": 0,
  9180. "fromCache": false,
  9181. "hasPendingWrites": false,
  9182. "query": {
  9183. "filters": [
  9184. ],
  9185. "orderBys": [
  9186. ],
  9187. "path": "collection"
  9188. }
  9189. }
  9190. ]
  9191. },
  9192. {
  9193. "watchReset": [
  9194. 2
  9195. ]
  9196. },
  9197. {
  9198. "watchEntity": {
  9199. "docs": [
  9200. ],
  9201. "targets": [
  9202. 2
  9203. ]
  9204. }
  9205. },
  9206. {
  9207. "watchCurrent": [
  9208. [
  9209. 2
  9210. ],
  9211. "resume-token-2000"
  9212. ]
  9213. },
  9214. {
  9215. "watchSnapshot": {
  9216. "targetIds": [
  9217. ],
  9218. "version": 2000
  9219. },
  9220. "expectedSnapshotEvents": [
  9221. {
  9222. "errorCode": 0,
  9223. "fromCache": true,
  9224. "hasPendingWrites": false,
  9225. "query": {
  9226. "filters": [
  9227. ],
  9228. "orderBys": [
  9229. ],
  9230. "path": "collection"
  9231. }
  9232. }
  9233. ],
  9234. "expectedState": {
  9235. "activeLimboDocs": [
  9236. "collection/a",
  9237. "collection/b"
  9238. ],
  9239. "activeTargets": {
  9240. "1": {
  9241. "queries": [
  9242. {
  9243. "filters": [
  9244. ],
  9245. "orderBys": [
  9246. ],
  9247. "path": "collection/a"
  9248. }
  9249. ],
  9250. "resumeToken": "",
  9251. "targetPurpose": "TargetPurposeLimboResolution"
  9252. },
  9253. "2": {
  9254. "queries": [
  9255. {
  9256. "filters": [
  9257. ],
  9258. "orderBys": [
  9259. ],
  9260. "path": "collection"
  9261. }
  9262. ],
  9263. "resumeToken": ""
  9264. },
  9265. "3": {
  9266. "queries": [
  9267. {
  9268. "filters": [
  9269. ],
  9270. "orderBys": [
  9271. ],
  9272. "path": "collection/b"
  9273. }
  9274. ],
  9275. "resumeToken": "",
  9276. "targetPurpose": "TargetPurposeLimboResolution"
  9277. }
  9278. },
  9279. "enqueuedLimboDocs": [
  9280. "collection/c",
  9281. "collection/d",
  9282. "collection/e"
  9283. ]
  9284. }
  9285. },
  9286. {
  9287. "watchAck": [
  9288. 1
  9289. ]
  9290. },
  9291. {
  9292. "watchAck": [
  9293. 3
  9294. ]
  9295. },
  9296. {
  9297. "watchCurrent": [
  9298. [
  9299. 1
  9300. ],
  9301. "resume-token-2001"
  9302. ]
  9303. },
  9304. {
  9305. "watchSnapshot": {
  9306. "targetIds": [
  9307. ],
  9308. "version": 2001
  9309. },
  9310. "expectedSnapshotEvents": [
  9311. {
  9312. "errorCode": 0,
  9313. "fromCache": true,
  9314. "hasPendingWrites": false,
  9315. "query": {
  9316. "filters": [
  9317. ],
  9318. "orderBys": [
  9319. ],
  9320. "path": "collection"
  9321. },
  9322. "removed": [
  9323. {
  9324. "createTime": 0,
  9325. "key": "collection/a",
  9326. "options": {
  9327. "hasCommittedMutations": false,
  9328. "hasLocalMutations": false
  9329. },
  9330. "value": {
  9331. "key": "a"
  9332. },
  9333. "version": 1000
  9334. }
  9335. ]
  9336. }
  9337. ],
  9338. "expectedState": {
  9339. "activeLimboDocs": [
  9340. "collection/b",
  9341. "collection/c"
  9342. ],
  9343. "activeTargets": {
  9344. "2": {
  9345. "queries": [
  9346. {
  9347. "filters": [
  9348. ],
  9349. "orderBys": [
  9350. ],
  9351. "path": "collection"
  9352. }
  9353. ],
  9354. "resumeToken": ""
  9355. },
  9356. "3": {
  9357. "queries": [
  9358. {
  9359. "filters": [
  9360. ],
  9361. "orderBys": [
  9362. ],
  9363. "path": "collection/b"
  9364. }
  9365. ],
  9366. "resumeToken": "",
  9367. "targetPurpose": "TargetPurposeLimboResolution"
  9368. },
  9369. "5": {
  9370. "queries": [
  9371. {
  9372. "filters": [
  9373. ],
  9374. "orderBys": [
  9375. ],
  9376. "path": "collection/c"
  9377. }
  9378. ],
  9379. "resumeToken": "",
  9380. "targetPurpose": "TargetPurposeLimboResolution"
  9381. }
  9382. },
  9383. "enqueuedLimboDocs": [
  9384. "collection/d",
  9385. "collection/e"
  9386. ]
  9387. }
  9388. },
  9389. {
  9390. "watchAck": [
  9391. 5
  9392. ]
  9393. },
  9394. {
  9395. "watchCurrent": [
  9396. [
  9397. 3
  9398. ],
  9399. "resume-token-2002"
  9400. ]
  9401. },
  9402. {
  9403. "watchSnapshot": {
  9404. "targetIds": [
  9405. ],
  9406. "version": 2002
  9407. },
  9408. "expectedSnapshotEvents": [
  9409. {
  9410. "errorCode": 0,
  9411. "fromCache": true,
  9412. "hasPendingWrites": false,
  9413. "query": {
  9414. "filters": [
  9415. ],
  9416. "orderBys": [
  9417. ],
  9418. "path": "collection"
  9419. },
  9420. "removed": [
  9421. {
  9422. "createTime": 0,
  9423. "key": "collection/b",
  9424. "options": {
  9425. "hasCommittedMutations": false,
  9426. "hasLocalMutations": false
  9427. },
  9428. "value": {
  9429. "key": "b"
  9430. },
  9431. "version": 1000
  9432. }
  9433. ]
  9434. }
  9435. ],
  9436. "expectedState": {
  9437. "activeLimboDocs": [
  9438. "collection/c",
  9439. "collection/d"
  9440. ],
  9441. "activeTargets": {
  9442. "2": {
  9443. "queries": [
  9444. {
  9445. "filters": [
  9446. ],
  9447. "orderBys": [
  9448. ],
  9449. "path": "collection"
  9450. }
  9451. ],
  9452. "resumeToken": ""
  9453. },
  9454. "5": {
  9455. "queries": [
  9456. {
  9457. "filters": [
  9458. ],
  9459. "orderBys": [
  9460. ],
  9461. "path": "collection/c"
  9462. }
  9463. ],
  9464. "resumeToken": "",
  9465. "targetPurpose": "TargetPurposeLimboResolution"
  9466. },
  9467. "7": {
  9468. "queries": [
  9469. {
  9470. "filters": [
  9471. ],
  9472. "orderBys": [
  9473. ],
  9474. "path": "collection/d"
  9475. }
  9476. ],
  9477. "resumeToken": "",
  9478. "targetPurpose": "TargetPurposeLimboResolution"
  9479. }
  9480. },
  9481. "enqueuedLimboDocs": [
  9482. "collection/e"
  9483. ]
  9484. }
  9485. },
  9486. {
  9487. "watchAck": [
  9488. 7
  9489. ]
  9490. },
  9491. {
  9492. "watchCurrent": [
  9493. [
  9494. 5
  9495. ],
  9496. "resume-token-2003"
  9497. ]
  9498. },
  9499. {
  9500. "watchSnapshot": {
  9501. "targetIds": [
  9502. ],
  9503. "version": 2003
  9504. },
  9505. "expectedSnapshotEvents": [
  9506. {
  9507. "errorCode": 0,
  9508. "fromCache": true,
  9509. "hasPendingWrites": false,
  9510. "query": {
  9511. "filters": [
  9512. ],
  9513. "orderBys": [
  9514. ],
  9515. "path": "collection"
  9516. },
  9517. "removed": [
  9518. {
  9519. "createTime": 0,
  9520. "key": "collection/c",
  9521. "options": {
  9522. "hasCommittedMutations": false,
  9523. "hasLocalMutations": false
  9524. },
  9525. "value": {
  9526. "key": "c"
  9527. },
  9528. "version": 1000
  9529. }
  9530. ]
  9531. }
  9532. ],
  9533. "expectedState": {
  9534. "activeLimboDocs": [
  9535. "collection/d",
  9536. "collection/e"
  9537. ],
  9538. "activeTargets": {
  9539. "2": {
  9540. "queries": [
  9541. {
  9542. "filters": [
  9543. ],
  9544. "orderBys": [
  9545. ],
  9546. "path": "collection"
  9547. }
  9548. ],
  9549. "resumeToken": ""
  9550. },
  9551. "7": {
  9552. "queries": [
  9553. {
  9554. "filters": [
  9555. ],
  9556. "orderBys": [
  9557. ],
  9558. "path": "collection/d"
  9559. }
  9560. ],
  9561. "resumeToken": "",
  9562. "targetPurpose": "TargetPurposeLimboResolution"
  9563. },
  9564. "9": {
  9565. "queries": [
  9566. {
  9567. "filters": [
  9568. ],
  9569. "orderBys": [
  9570. ],
  9571. "path": "collection/e"
  9572. }
  9573. ],
  9574. "resumeToken": "",
  9575. "targetPurpose": "TargetPurposeLimboResolution"
  9576. }
  9577. },
  9578. "enqueuedLimboDocs": [
  9579. ]
  9580. }
  9581. },
  9582. {
  9583. "watchAck": [
  9584. 9
  9585. ]
  9586. },
  9587. {
  9588. "watchCurrent": [
  9589. [
  9590. 7
  9591. ],
  9592. "resume-token-2004"
  9593. ]
  9594. },
  9595. {
  9596. "watchSnapshot": {
  9597. "targetIds": [
  9598. ],
  9599. "version": 2004
  9600. },
  9601. "expectedSnapshotEvents": [
  9602. {
  9603. "errorCode": 0,
  9604. "fromCache": true,
  9605. "hasPendingWrites": false,
  9606. "query": {
  9607. "filters": [
  9608. ],
  9609. "orderBys": [
  9610. ],
  9611. "path": "collection"
  9612. },
  9613. "removed": [
  9614. {
  9615. "createTime": 0,
  9616. "key": "collection/d",
  9617. "options": {
  9618. "hasCommittedMutations": false,
  9619. "hasLocalMutations": false
  9620. },
  9621. "value": {
  9622. "key": "d"
  9623. },
  9624. "version": 1000
  9625. }
  9626. ]
  9627. }
  9628. ],
  9629. "expectedState": {
  9630. "activeLimboDocs": [
  9631. "collection/e"
  9632. ],
  9633. "activeTargets": {
  9634. "2": {
  9635. "queries": [
  9636. {
  9637. "filters": [
  9638. ],
  9639. "orderBys": [
  9640. ],
  9641. "path": "collection"
  9642. }
  9643. ],
  9644. "resumeToken": ""
  9645. },
  9646. "9": {
  9647. "queries": [
  9648. {
  9649. "filters": [
  9650. ],
  9651. "orderBys": [
  9652. ],
  9653. "path": "collection/e"
  9654. }
  9655. ],
  9656. "resumeToken": "",
  9657. "targetPurpose": "TargetPurposeLimboResolution"
  9658. }
  9659. },
  9660. "enqueuedLimboDocs": [
  9661. ]
  9662. }
  9663. },
  9664. {
  9665. "watchCurrent": [
  9666. [
  9667. 9
  9668. ],
  9669. "resume-token-2005"
  9670. ]
  9671. },
  9672. {
  9673. "watchSnapshot": {
  9674. "targetIds": [
  9675. ],
  9676. "version": 2005
  9677. },
  9678. "expectedSnapshotEvents": [
  9679. {
  9680. "errorCode": 0,
  9681. "fromCache": false,
  9682. "hasPendingWrites": false,
  9683. "query": {
  9684. "filters": [
  9685. ],
  9686. "orderBys": [
  9687. ],
  9688. "path": "collection"
  9689. },
  9690. "removed": [
  9691. {
  9692. "createTime": 0,
  9693. "key": "collection/e",
  9694. "options": {
  9695. "hasCommittedMutations": false,
  9696. "hasLocalMutations": false
  9697. },
  9698. "value": {
  9699. "key": "e"
  9700. },
  9701. "version": 1000
  9702. }
  9703. ]
  9704. }
  9705. ],
  9706. "expectedState": {
  9707. "activeLimboDocs": [
  9708. ],
  9709. "activeTargets": {
  9710. "2": {
  9711. "queries": [
  9712. {
  9713. "filters": [
  9714. ],
  9715. "orderBys": [
  9716. ],
  9717. "path": "collection"
  9718. }
  9719. ],
  9720. "resumeToken": ""
  9721. }
  9722. },
  9723. "enqueuedLimboDocs": [
  9724. ]
  9725. }
  9726. }
  9727. ]
  9728. },
  9729. "LimitToLast query from secondary results in expected limbo doc": {
  9730. "describeName": "Limbo Documents:",
  9731. "itName": "LimitToLast query from secondary results in expected limbo doc",
  9732. "tags": [
  9733. "multi-client"
  9734. ],
  9735. "config": {
  9736. "numClients": 2,
  9737. "useEagerGCForMemory": false
  9738. },
  9739. "steps": [
  9740. {
  9741. "clientIndex": 0,
  9742. "drainQueue": true
  9743. },
  9744. {
  9745. "applyClientState": {
  9746. "visibility": "visible"
  9747. },
  9748. "clientIndex": 0
  9749. },
  9750. {
  9751. "clientIndex": 1,
  9752. "drainQueue": true
  9753. },
  9754. {
  9755. "clientIndex": 1,
  9756. "userListen": {
  9757. "query": {
  9758. "filters": [
  9759. ],
  9760. "limit": 3,
  9761. "limitType": "LimitToLast",
  9762. "orderBys": [
  9763. [
  9764. "val",
  9765. "desc"
  9766. ]
  9767. ],
  9768. "path": "collection"
  9769. },
  9770. "targetId": 2
  9771. },
  9772. "expectedState": {
  9773. "activeTargets": {
  9774. "2": {
  9775. "queries": [
  9776. {
  9777. "filters": [
  9778. ],
  9779. "limit": 3,
  9780. "limitType": "LimitToLast",
  9781. "orderBys": [
  9782. [
  9783. "val",
  9784. "desc"
  9785. ]
  9786. ],
  9787. "path": "collection"
  9788. }
  9789. ],
  9790. "resumeToken": ""
  9791. }
  9792. }
  9793. }
  9794. },
  9795. {
  9796. "clientIndex": 0,
  9797. "drainQueue": true,
  9798. "expectedState": {
  9799. "activeTargets": {
  9800. "2": {
  9801. "queries": [
  9802. {
  9803. "filters": [
  9804. ],
  9805. "limit": 3,
  9806. "limitType": "LimitToLast",
  9807. "orderBys": [
  9808. [
  9809. "val",
  9810. "desc"
  9811. ]
  9812. ],
  9813. "path": "collection"
  9814. }
  9815. ],
  9816. "resumeToken": ""
  9817. }
  9818. }
  9819. }
  9820. },
  9821. {
  9822. "clientIndex": 0,
  9823. "watchAck": [
  9824. 2
  9825. ]
  9826. },
  9827. {
  9828. "clientIndex": 0,
  9829. "watchEntity": {
  9830. "docs": [
  9831. {
  9832. "createTime": 0,
  9833. "key": "collection/a",
  9834. "options": {
  9835. "hasCommittedMutations": false,
  9836. "hasLocalMutations": false
  9837. },
  9838. "value": {
  9839. "val": 11
  9840. },
  9841. "version": 1000
  9842. },
  9843. {
  9844. "createTime": 0,
  9845. "key": "collection/b",
  9846. "options": {
  9847. "hasCommittedMutations": false,
  9848. "hasLocalMutations": false
  9849. },
  9850. "value": {
  9851. "val": 12
  9852. },
  9853. "version": 1000
  9854. },
  9855. {
  9856. "createTime": 0,
  9857. "key": "collection/c",
  9858. "options": {
  9859. "hasCommittedMutations": false,
  9860. "hasLocalMutations": false
  9861. },
  9862. "value": {
  9863. "val": 13
  9864. },
  9865. "version": 1000
  9866. }
  9867. ],
  9868. "targets": [
  9869. 2
  9870. ]
  9871. }
  9872. },
  9873. {
  9874. "clientIndex": 0,
  9875. "watchCurrent": [
  9876. [
  9877. 2
  9878. ],
  9879. "resume-token-1000"
  9880. ]
  9881. },
  9882. {
  9883. "clientIndex": 0,
  9884. "watchSnapshot": {
  9885. "targetIds": [
  9886. ],
  9887. "version": 1000
  9888. }
  9889. },
  9890. {
  9891. "clientIndex": 1,
  9892. "drainQueue": true,
  9893. "expectedSnapshotEvents": [
  9894. {
  9895. "added": [
  9896. {
  9897. "createTime": 0,
  9898. "key": "collection/c",
  9899. "options": {
  9900. "hasCommittedMutations": false,
  9901. "hasLocalMutations": false
  9902. },
  9903. "value": {
  9904. "val": 13
  9905. },
  9906. "version": 1000
  9907. },
  9908. {
  9909. "createTime": 0,
  9910. "key": "collection/b",
  9911. "options": {
  9912. "hasCommittedMutations": false,
  9913. "hasLocalMutations": false
  9914. },
  9915. "value": {
  9916. "val": 12
  9917. },
  9918. "version": 1000
  9919. },
  9920. {
  9921. "createTime": 0,
  9922. "key": "collection/a",
  9923. "options": {
  9924. "hasCommittedMutations": false,
  9925. "hasLocalMutations": false
  9926. },
  9927. "value": {
  9928. "val": 11
  9929. },
  9930. "version": 1000
  9931. }
  9932. ],
  9933. "errorCode": 0,
  9934. "fromCache": false,
  9935. "hasPendingWrites": false,
  9936. "query": {
  9937. "filters": [
  9938. ],
  9939. "limit": 3,
  9940. "limitType": "LimitToLast",
  9941. "orderBys": [
  9942. [
  9943. "val",
  9944. "desc"
  9945. ]
  9946. ],
  9947. "path": "collection"
  9948. }
  9949. }
  9950. ]
  9951. },
  9952. {
  9953. "clientIndex": 0,
  9954. "drainQueue": true
  9955. },
  9956. {
  9957. "clientIndex": 0,
  9958. "watchReset": [
  9959. ]
  9960. },
  9961. {
  9962. "clientIndex": 0,
  9963. "watchEntity": {
  9964. "docs": [
  9965. {
  9966. "createTime": 0,
  9967. "key": "collection/a",
  9968. "options": {
  9969. "hasCommittedMutations": false,
  9970. "hasLocalMutations": false
  9971. },
  9972. "value": {
  9973. "val": 11
  9974. },
  9975. "version": 2000
  9976. },
  9977. {
  9978. "createTime": 0,
  9979. "key": "collection/b",
  9980. "options": {
  9981. "hasCommittedMutations": false,
  9982. "hasLocalMutations": false
  9983. },
  9984. "value": {
  9985. "val": 12
  9986. },
  9987. "version": 2000
  9988. },
  9989. {
  9990. "createTime": 0,
  9991. "key": "collection/d",
  9992. "options": {
  9993. "hasCommittedMutations": false,
  9994. "hasLocalMutations": false
  9995. },
  9996. "value": {
  9997. "val": 100
  9998. },
  9999. "version": 2000
  10000. }
  10001. ],
  10002. "targets": [
  10003. 2
  10004. ]
  10005. }
  10006. },
  10007. {
  10008. "clientIndex": 0,
  10009. "watchCurrent": [
  10010. [
  10011. 2
  10012. ],
  10013. "resume-token-2000"
  10014. ]
  10015. },
  10016. {
  10017. "clientIndex": 0,
  10018. "watchSnapshot": {
  10019. "targetIds": [
  10020. ],
  10021. "version": 2000
  10022. },
  10023. "expectedState": {
  10024. "activeLimboDocs": [
  10025. "collection/c"
  10026. ],
  10027. "activeTargets": {
  10028. "1": {
  10029. "queries": [
  10030. {
  10031. "filters": [
  10032. ],
  10033. "orderBys": [
  10034. ],
  10035. "path": "collection/c"
  10036. }
  10037. ],
  10038. "resumeToken": "",
  10039. "targetPurpose": "TargetPurposeLimboResolution"
  10040. },
  10041. "2": {
  10042. "queries": [
  10043. {
  10044. "filters": [
  10045. ],
  10046. "limit": 3,
  10047. "limitType": "LimitToLast",
  10048. "orderBys": [
  10049. [
  10050. "val",
  10051. "desc"
  10052. ]
  10053. ],
  10054. "path": "collection"
  10055. }
  10056. ],
  10057. "resumeToken": ""
  10058. }
  10059. }
  10060. }
  10061. },
  10062. {
  10063. "clientIndex": 1,
  10064. "drainQueue": true,
  10065. "expectedSnapshotEvents": [
  10066. {
  10067. "errorCode": 0,
  10068. "fromCache": true,
  10069. "hasPendingWrites": false,
  10070. "query": {
  10071. "filters": [
  10072. ],
  10073. "limit": 3,
  10074. "limitType": "LimitToLast",
  10075. "orderBys": [
  10076. [
  10077. "val",
  10078. "desc"
  10079. ]
  10080. ],
  10081. "path": "collection"
  10082. }
  10083. }
  10084. ]
  10085. }
  10086. ]
  10087. },
  10088. "LimitToLast query from secondary results in no expected limbo doc": {
  10089. "describeName": "Limbo Documents:",
  10090. "itName": "LimitToLast query from secondary results in no expected limbo doc",
  10091. "tags": [
  10092. "multi-client"
  10093. ],
  10094. "config": {
  10095. "numClients": 2,
  10096. "useEagerGCForMemory": false
  10097. },
  10098. "steps": [
  10099. {
  10100. "clientIndex": 0,
  10101. "drainQueue": true
  10102. },
  10103. {
  10104. "applyClientState": {
  10105. "visibility": "visible"
  10106. },
  10107. "clientIndex": 0
  10108. },
  10109. {
  10110. "clientIndex": 1,
  10111. "drainQueue": true
  10112. },
  10113. {
  10114. "clientIndex": 1,
  10115. "userListen": {
  10116. "query": {
  10117. "filters": [
  10118. ],
  10119. "limit": 3,
  10120. "limitType": "LimitToLast",
  10121. "orderBys": [
  10122. [
  10123. "val",
  10124. "desc"
  10125. ]
  10126. ],
  10127. "path": "collection"
  10128. },
  10129. "targetId": 2
  10130. },
  10131. "expectedState": {
  10132. "activeTargets": {
  10133. "2": {
  10134. "queries": [
  10135. {
  10136. "filters": [
  10137. ],
  10138. "limit": 3,
  10139. "limitType": "LimitToLast",
  10140. "orderBys": [
  10141. [
  10142. "val",
  10143. "desc"
  10144. ]
  10145. ],
  10146. "path": "collection"
  10147. }
  10148. ],
  10149. "resumeToken": ""
  10150. }
  10151. }
  10152. }
  10153. },
  10154. {
  10155. "clientIndex": 0,
  10156. "drainQueue": true,
  10157. "expectedState": {
  10158. "activeTargets": {
  10159. "2": {
  10160. "queries": [
  10161. {
  10162. "filters": [
  10163. ],
  10164. "limit": 3,
  10165. "limitType": "LimitToLast",
  10166. "orderBys": [
  10167. [
  10168. "val",
  10169. "desc"
  10170. ]
  10171. ],
  10172. "path": "collection"
  10173. }
  10174. ],
  10175. "resumeToken": ""
  10176. }
  10177. }
  10178. }
  10179. },
  10180. {
  10181. "clientIndex": 0,
  10182. "watchAck": [
  10183. 2
  10184. ]
  10185. },
  10186. {
  10187. "clientIndex": 0,
  10188. "watchEntity": {
  10189. "docs": [
  10190. {
  10191. "createTime": 0,
  10192. "key": "collection/a",
  10193. "options": {
  10194. "hasCommittedMutations": false,
  10195. "hasLocalMutations": false
  10196. },
  10197. "value": {
  10198. "val": 11
  10199. },
  10200. "version": 1000
  10201. },
  10202. {
  10203. "createTime": 0,
  10204. "key": "collection/b",
  10205. "options": {
  10206. "hasCommittedMutations": false,
  10207. "hasLocalMutations": false
  10208. },
  10209. "value": {
  10210. "val": 12
  10211. },
  10212. "version": 1000
  10213. },
  10214. {
  10215. "createTime": 0,
  10216. "key": "collection/c",
  10217. "options": {
  10218. "hasCommittedMutations": false,
  10219. "hasLocalMutations": false
  10220. },
  10221. "value": {
  10222. "val": 13
  10223. },
  10224. "version": 1000
  10225. }
  10226. ],
  10227. "targets": [
  10228. 2
  10229. ]
  10230. }
  10231. },
  10232. {
  10233. "clientIndex": 0,
  10234. "watchCurrent": [
  10235. [
  10236. 2
  10237. ],
  10238. "resume-token-1000"
  10239. ]
  10240. },
  10241. {
  10242. "clientIndex": 0,
  10243. "watchSnapshot": {
  10244. "targetIds": [
  10245. ],
  10246. "version": 1000
  10247. }
  10248. },
  10249. {
  10250. "clientIndex": 1,
  10251. "drainQueue": true,
  10252. "expectedSnapshotEvents": [
  10253. {
  10254. "added": [
  10255. {
  10256. "createTime": 0,
  10257. "key": "collection/c",
  10258. "options": {
  10259. "hasCommittedMutations": false,
  10260. "hasLocalMutations": false
  10261. },
  10262. "value": {
  10263. "val": 13
  10264. },
  10265. "version": 1000
  10266. },
  10267. {
  10268. "createTime": 0,
  10269. "key": "collection/b",
  10270. "options": {
  10271. "hasCommittedMutations": false,
  10272. "hasLocalMutations": false
  10273. },
  10274. "value": {
  10275. "val": 12
  10276. },
  10277. "version": 1000
  10278. },
  10279. {
  10280. "createTime": 0,
  10281. "key": "collection/a",
  10282. "options": {
  10283. "hasCommittedMutations": false,
  10284. "hasLocalMutations": false
  10285. },
  10286. "value": {
  10287. "val": 11
  10288. },
  10289. "version": 1000
  10290. }
  10291. ],
  10292. "errorCode": 0,
  10293. "fromCache": false,
  10294. "hasPendingWrites": false,
  10295. "query": {
  10296. "filters": [
  10297. ],
  10298. "limit": 3,
  10299. "limitType": "LimitToLast",
  10300. "orderBys": [
  10301. [
  10302. "val",
  10303. "desc"
  10304. ]
  10305. ],
  10306. "path": "collection"
  10307. }
  10308. }
  10309. ]
  10310. },
  10311. {
  10312. "clientIndex": 0,
  10313. "drainQueue": true
  10314. },
  10315. {
  10316. "clientIndex": 0,
  10317. "watchReset": [
  10318. ]
  10319. },
  10320. {
  10321. "clientIndex": 0,
  10322. "watchEntity": {
  10323. "docs": [
  10324. {
  10325. "createTime": 0,
  10326. "key": "collection/a",
  10327. "options": {
  10328. "hasCommittedMutations": false,
  10329. "hasLocalMutations": false
  10330. },
  10331. "value": {
  10332. "val": 5
  10333. },
  10334. "version": 2000
  10335. },
  10336. {
  10337. "createTime": 0,
  10338. "key": "collection/b",
  10339. "options": {
  10340. "hasCommittedMutations": false,
  10341. "hasLocalMutations": false
  10342. },
  10343. "value": {
  10344. "val": 6
  10345. },
  10346. "version": 2000
  10347. },
  10348. {
  10349. "createTime": 0,
  10350. "key": "collection/d",
  10351. "options": {
  10352. "hasCommittedMutations": false,
  10353. "hasLocalMutations": false
  10354. },
  10355. "value": {
  10356. "val": 7
  10357. },
  10358. "version": 2000
  10359. }
  10360. ],
  10361. "targets": [
  10362. 2
  10363. ]
  10364. }
  10365. },
  10366. {
  10367. "clientIndex": 0,
  10368. "watchCurrent": [
  10369. [
  10370. 2
  10371. ],
  10372. "resume-token-2000"
  10373. ]
  10374. },
  10375. {
  10376. "clientIndex": 0,
  10377. "watchSnapshot": {
  10378. "targetIds": [
  10379. ],
  10380. "version": 2000
  10381. }
  10382. },
  10383. {
  10384. "clientIndex": 1,
  10385. "drainQueue": true,
  10386. "expectedSnapshotEvents": [
  10387. {
  10388. "added": [
  10389. {
  10390. "createTime": 0,
  10391. "key": "collection/d",
  10392. "options": {
  10393. "hasCommittedMutations": false,
  10394. "hasLocalMutations": false
  10395. },
  10396. "value": {
  10397. "val": 7
  10398. },
  10399. "version": 2000
  10400. }
  10401. ],
  10402. "errorCode": 0,
  10403. "fromCache": false,
  10404. "hasPendingWrites": false,
  10405. "modified": [
  10406. {
  10407. "createTime": 0,
  10408. "key": "collection/b",
  10409. "options": {
  10410. "hasCommittedMutations": false,
  10411. "hasLocalMutations": false
  10412. },
  10413. "value": {
  10414. "val": 6
  10415. },
  10416. "version": 2000
  10417. },
  10418. {
  10419. "createTime": 0,
  10420. "key": "collection/a",
  10421. "options": {
  10422. "hasCommittedMutations": false,
  10423. "hasLocalMutations": false
  10424. },
  10425. "value": {
  10426. "val": 5
  10427. },
  10428. "version": 2000
  10429. }
  10430. ],
  10431. "query": {
  10432. "filters": [
  10433. ],
  10434. "limit": 3,
  10435. "limitType": "LimitToLast",
  10436. "orderBys": [
  10437. [
  10438. "val",
  10439. "desc"
  10440. ]
  10441. ],
  10442. "path": "collection"
  10443. },
  10444. "removed": [
  10445. {
  10446. "createTime": 0,
  10447. "key": "collection/c",
  10448. "options": {
  10449. "hasCommittedMutations": false,
  10450. "hasLocalMutations": false
  10451. },
  10452. "value": {
  10453. "val": 13
  10454. },
  10455. "version": 1000
  10456. }
  10457. ]
  10458. }
  10459. ]
  10460. },
  10461. {
  10462. "clientIndex": 0,
  10463. "drainQueue": true,
  10464. "expectedState": {
  10465. "activeLimboDocs": [
  10466. ],
  10467. "activeTargets": {
  10468. "2": {
  10469. "queries": [
  10470. {
  10471. "filters": [
  10472. ],
  10473. "limit": 3,
  10474. "limitType": "LimitToLast",
  10475. "orderBys": [
  10476. [
  10477. "val",
  10478. "desc"
  10479. ]
  10480. ],
  10481. "path": "collection"
  10482. }
  10483. ],
  10484. "resumeToken": ""
  10485. }
  10486. }
  10487. }
  10488. }
  10489. ]
  10490. }
  10491. }