limbo_spec_test.json 234 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493
  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. "no-ios",
  7960. "no-android"
  7961. ],
  7962. "config": {
  7963. "maxConcurrentLimboResolutions": 2,
  7964. "numClients": 1,
  7965. "useEagerGCForMemory": true
  7966. },
  7967. "steps": [
  7968. {
  7969. "userListen": {
  7970. "query": {
  7971. "filters": [
  7972. ],
  7973. "orderBys": [
  7974. ],
  7975. "path": "collection"
  7976. },
  7977. "targetId": 2
  7978. },
  7979. "expectedState": {
  7980. "activeTargets": {
  7981. "2": {
  7982. "queries": [
  7983. {
  7984. "filters": [
  7985. ],
  7986. "orderBys": [
  7987. ],
  7988. "path": "collection"
  7989. }
  7990. ],
  7991. "resumeToken": ""
  7992. }
  7993. }
  7994. }
  7995. },
  7996. {
  7997. "watchAck": [
  7998. 2
  7999. ]
  8000. },
  8001. {
  8002. "watchEntity": {
  8003. "docs": [
  8004. {
  8005. "createTime": 0,
  8006. "key": "collection/a1",
  8007. "options": {
  8008. "hasCommittedMutations": false,
  8009. "hasLocalMutations": false
  8010. },
  8011. "value": {
  8012. "key": "a1"
  8013. },
  8014. "version": 1000
  8015. },
  8016. {
  8017. "createTime": 0,
  8018. "key": "collection/a2",
  8019. "options": {
  8020. "hasCommittedMutations": false,
  8021. "hasLocalMutations": false
  8022. },
  8023. "value": {
  8024. "key": "a2"
  8025. },
  8026. "version": 1000
  8027. },
  8028. {
  8029. "createTime": 0,
  8030. "key": "collection/a3",
  8031. "options": {
  8032. "hasCommittedMutations": false,
  8033. "hasLocalMutations": false
  8034. },
  8035. "value": {
  8036. "key": "a3"
  8037. },
  8038. "version": 1000
  8039. }
  8040. ],
  8041. "targets": [
  8042. 2
  8043. ]
  8044. }
  8045. },
  8046. {
  8047. "watchCurrent": [
  8048. [
  8049. 2
  8050. ],
  8051. "resume-token-1000"
  8052. ]
  8053. },
  8054. {
  8055. "watchSnapshot": {
  8056. "targetIds": [
  8057. ],
  8058. "version": 1000
  8059. },
  8060. "expectedSnapshotEvents": [
  8061. {
  8062. "added": [
  8063. {
  8064. "createTime": 0,
  8065. "key": "collection/a1",
  8066. "options": {
  8067. "hasCommittedMutations": false,
  8068. "hasLocalMutations": false
  8069. },
  8070. "value": {
  8071. "key": "a1"
  8072. },
  8073. "version": 1000
  8074. },
  8075. {
  8076. "createTime": 0,
  8077. "key": "collection/a2",
  8078. "options": {
  8079. "hasCommittedMutations": false,
  8080. "hasLocalMutations": false
  8081. },
  8082. "value": {
  8083. "key": "a2"
  8084. },
  8085. "version": 1000
  8086. },
  8087. {
  8088. "createTime": 0,
  8089. "key": "collection/a3",
  8090. "options": {
  8091. "hasCommittedMutations": false,
  8092. "hasLocalMutations": false
  8093. },
  8094. "value": {
  8095. "key": "a3"
  8096. },
  8097. "version": 1000
  8098. }
  8099. ],
  8100. "errorCode": 0,
  8101. "fromCache": false,
  8102. "hasPendingWrites": false,
  8103. "query": {
  8104. "filters": [
  8105. ],
  8106. "orderBys": [
  8107. ],
  8108. "path": "collection"
  8109. }
  8110. }
  8111. ]
  8112. },
  8113. {
  8114. "enableNetwork": false,
  8115. "expectedSnapshotEvents": [
  8116. {
  8117. "errorCode": 0,
  8118. "fromCache": true,
  8119. "hasPendingWrites": false,
  8120. "query": {
  8121. "filters": [
  8122. ],
  8123. "orderBys": [
  8124. ],
  8125. "path": "collection"
  8126. }
  8127. }
  8128. ],
  8129. "expectedState": {
  8130. "activeLimboDocs": [
  8131. ],
  8132. "activeTargets": {
  8133. },
  8134. "enqueuedLimboDocs": [
  8135. ]
  8136. }
  8137. },
  8138. {
  8139. "enableNetwork": true,
  8140. "expectedState": {
  8141. "activeTargets": {
  8142. "2": {
  8143. "queries": [
  8144. {
  8145. "filters": [
  8146. ],
  8147. "orderBys": [
  8148. ],
  8149. "path": "collection"
  8150. }
  8151. ],
  8152. "resumeToken": "resume-token-1000"
  8153. }
  8154. }
  8155. }
  8156. },
  8157. {
  8158. "watchAck": [
  8159. 2
  8160. ]
  8161. },
  8162. {
  8163. "watchEntity": {
  8164. "docs": [
  8165. {
  8166. "createTime": 0,
  8167. "key": "collection/b1",
  8168. "options": {
  8169. "hasCommittedMutations": false,
  8170. "hasLocalMutations": false
  8171. },
  8172. "value": {
  8173. "key": "b1"
  8174. },
  8175. "version": 1000
  8176. },
  8177. {
  8178. "createTime": 0,
  8179. "key": "collection/b2",
  8180. "options": {
  8181. "hasCommittedMutations": false,
  8182. "hasLocalMutations": false
  8183. },
  8184. "value": {
  8185. "key": "b2"
  8186. },
  8187. "version": 1000
  8188. },
  8189. {
  8190. "createTime": 0,
  8191. "key": "collection/b3",
  8192. "options": {
  8193. "hasCommittedMutations": false,
  8194. "hasLocalMutations": false
  8195. },
  8196. "value": {
  8197. "key": "b3"
  8198. },
  8199. "version": 1000
  8200. }
  8201. ],
  8202. "targets": [
  8203. 2
  8204. ]
  8205. }
  8206. },
  8207. {
  8208. "watchFilter": {
  8209. "bloomFilter": {
  8210. "bits": {
  8211. "bitmap": "yABCEAeZURNRGAkgAQ==",
  8212. "padding": 4
  8213. },
  8214. "hashCount": 10
  8215. },
  8216. "keys": [
  8217. "collection/b1",
  8218. "collection/b2",
  8219. "collection/b3"
  8220. ],
  8221. "targetIds": [
  8222. 2
  8223. ]
  8224. }
  8225. },
  8226. {
  8227. "watchSnapshot": {
  8228. "targetIds": [
  8229. ],
  8230. "version": 1001
  8231. },
  8232. "expectedSnapshotEvents": [
  8233. {
  8234. "added": [
  8235. {
  8236. "createTime": 0,
  8237. "key": "collection/b1",
  8238. "options": {
  8239. "hasCommittedMutations": false,
  8240. "hasLocalMutations": false
  8241. },
  8242. "value": {
  8243. "key": "b1"
  8244. },
  8245. "version": 1000
  8246. },
  8247. {
  8248. "createTime": 0,
  8249. "key": "collection/b2",
  8250. "options": {
  8251. "hasCommittedMutations": false,
  8252. "hasLocalMutations": false
  8253. },
  8254. "value": {
  8255. "key": "b2"
  8256. },
  8257. "version": 1000
  8258. },
  8259. {
  8260. "createTime": 0,
  8261. "key": "collection/b3",
  8262. "options": {
  8263. "hasCommittedMutations": false,
  8264. "hasLocalMutations": false
  8265. },
  8266. "value": {
  8267. "key": "b3"
  8268. },
  8269. "version": 1000
  8270. }
  8271. ],
  8272. "errorCode": 0,
  8273. "fromCache": true,
  8274. "hasPendingWrites": false,
  8275. "query": {
  8276. "filters": [
  8277. ],
  8278. "orderBys": [
  8279. ],
  8280. "path": "collection"
  8281. }
  8282. }
  8283. ]
  8284. },
  8285. {
  8286. "watchCurrent": [
  8287. [
  8288. 2
  8289. ],
  8290. "resume-token-1002"
  8291. ]
  8292. },
  8293. {
  8294. "watchSnapshot": {
  8295. "targetIds": [
  8296. ],
  8297. "version": 1002
  8298. },
  8299. "expectedState": {
  8300. "activeLimboDocs": [
  8301. "collection/a1",
  8302. "collection/a2"
  8303. ],
  8304. "activeTargets": {
  8305. "1": {
  8306. "queries": [
  8307. {
  8308. "filters": [
  8309. ],
  8310. "orderBys": [
  8311. ],
  8312. "path": "collection/a1"
  8313. }
  8314. ],
  8315. "resumeToken": "",
  8316. "targetPurpose": "TargetPurposeLimboResolution"
  8317. },
  8318. "2": {
  8319. "queries": [
  8320. {
  8321. "filters": [
  8322. ],
  8323. "orderBys": [
  8324. ],
  8325. "path": "collection"
  8326. }
  8327. ],
  8328. "resumeToken": "resume-token-1000"
  8329. },
  8330. "3": {
  8331. "queries": [
  8332. {
  8333. "filters": [
  8334. ],
  8335. "orderBys": [
  8336. ],
  8337. "path": "collection/a2"
  8338. }
  8339. ],
  8340. "resumeToken": "",
  8341. "targetPurpose": "TargetPurposeLimboResolution"
  8342. }
  8343. },
  8344. "enqueuedLimboDocs": [
  8345. "collection/a3"
  8346. ]
  8347. }
  8348. }
  8349. ]
  8350. },
  8351. "Limbo resolution throttling with existence filter mismatch": {
  8352. "describeName": "Limbo Documents:",
  8353. "itName": "Limbo resolution throttling with existence filter mismatch",
  8354. "tags": [
  8355. ],
  8356. "config": {
  8357. "maxConcurrentLimboResolutions": 2,
  8358. "numClients": 1,
  8359. "useEagerGCForMemory": true
  8360. },
  8361. "steps": [
  8362. {
  8363. "userListen": {
  8364. "query": {
  8365. "filters": [
  8366. ],
  8367. "orderBys": [
  8368. ],
  8369. "path": "collection"
  8370. },
  8371. "targetId": 2
  8372. },
  8373. "expectedState": {
  8374. "activeTargets": {
  8375. "2": {
  8376. "queries": [
  8377. {
  8378. "filters": [
  8379. ],
  8380. "orderBys": [
  8381. ],
  8382. "path": "collection"
  8383. }
  8384. ],
  8385. "resumeToken": ""
  8386. }
  8387. }
  8388. }
  8389. },
  8390. {
  8391. "watchAck": [
  8392. 2
  8393. ]
  8394. },
  8395. {
  8396. "watchEntity": {
  8397. "docs": [
  8398. {
  8399. "createTime": 0,
  8400. "key": "collection/a1",
  8401. "options": {
  8402. "hasCommittedMutations": false,
  8403. "hasLocalMutations": false
  8404. },
  8405. "value": {
  8406. "key": "a1"
  8407. },
  8408. "version": 1000
  8409. },
  8410. {
  8411. "createTime": 0,
  8412. "key": "collection/a2",
  8413. "options": {
  8414. "hasCommittedMutations": false,
  8415. "hasLocalMutations": false
  8416. },
  8417. "value": {
  8418. "key": "a2"
  8419. },
  8420. "version": 1000
  8421. },
  8422. {
  8423. "createTime": 0,
  8424. "key": "collection/a3",
  8425. "options": {
  8426. "hasCommittedMutations": false,
  8427. "hasLocalMutations": false
  8428. },
  8429. "value": {
  8430. "key": "a3"
  8431. },
  8432. "version": 1000
  8433. }
  8434. ],
  8435. "targets": [
  8436. 2
  8437. ]
  8438. }
  8439. },
  8440. {
  8441. "watchCurrent": [
  8442. [
  8443. 2
  8444. ],
  8445. "resume-token-1000"
  8446. ]
  8447. },
  8448. {
  8449. "watchSnapshot": {
  8450. "targetIds": [
  8451. ],
  8452. "version": 1000
  8453. },
  8454. "expectedSnapshotEvents": [
  8455. {
  8456. "added": [
  8457. {
  8458. "createTime": 0,
  8459. "key": "collection/a1",
  8460. "options": {
  8461. "hasCommittedMutations": false,
  8462. "hasLocalMutations": false
  8463. },
  8464. "value": {
  8465. "key": "a1"
  8466. },
  8467. "version": 1000
  8468. },
  8469. {
  8470. "createTime": 0,
  8471. "key": "collection/a2",
  8472. "options": {
  8473. "hasCommittedMutations": false,
  8474. "hasLocalMutations": false
  8475. },
  8476. "value": {
  8477. "key": "a2"
  8478. },
  8479. "version": 1000
  8480. },
  8481. {
  8482. "createTime": 0,
  8483. "key": "collection/a3",
  8484. "options": {
  8485. "hasCommittedMutations": false,
  8486. "hasLocalMutations": false
  8487. },
  8488. "value": {
  8489. "key": "a3"
  8490. },
  8491. "version": 1000
  8492. }
  8493. ],
  8494. "errorCode": 0,
  8495. "fromCache": false,
  8496. "hasPendingWrites": false,
  8497. "query": {
  8498. "filters": [
  8499. ],
  8500. "orderBys": [
  8501. ],
  8502. "path": "collection"
  8503. }
  8504. }
  8505. ]
  8506. },
  8507. {
  8508. "enableNetwork": false,
  8509. "expectedSnapshotEvents": [
  8510. {
  8511. "errorCode": 0,
  8512. "fromCache": true,
  8513. "hasPendingWrites": false,
  8514. "query": {
  8515. "filters": [
  8516. ],
  8517. "orderBys": [
  8518. ],
  8519. "path": "collection"
  8520. }
  8521. }
  8522. ],
  8523. "expectedState": {
  8524. "activeLimboDocs": [
  8525. ],
  8526. "activeTargets": {
  8527. },
  8528. "enqueuedLimboDocs": [
  8529. ]
  8530. }
  8531. },
  8532. {
  8533. "enableNetwork": true,
  8534. "expectedState": {
  8535. "activeTargets": {
  8536. "2": {
  8537. "queries": [
  8538. {
  8539. "filters": [
  8540. ],
  8541. "orderBys": [
  8542. ],
  8543. "path": "collection"
  8544. }
  8545. ],
  8546. "resumeToken": "resume-token-1000"
  8547. }
  8548. }
  8549. }
  8550. },
  8551. {
  8552. "watchAck": [
  8553. 2
  8554. ]
  8555. },
  8556. {
  8557. "watchEntity": {
  8558. "docs": [
  8559. {
  8560. "createTime": 0,
  8561. "key": "collection/b1",
  8562. "options": {
  8563. "hasCommittedMutations": false,
  8564. "hasLocalMutations": false
  8565. },
  8566. "value": {
  8567. "key": "b1"
  8568. },
  8569. "version": 1000
  8570. },
  8571. {
  8572. "createTime": 0,
  8573. "key": "collection/b2",
  8574. "options": {
  8575. "hasCommittedMutations": false,
  8576. "hasLocalMutations": false
  8577. },
  8578. "value": {
  8579. "key": "b2"
  8580. },
  8581. "version": 1000
  8582. },
  8583. {
  8584. "createTime": 0,
  8585. "key": "collection/b3",
  8586. "options": {
  8587. "hasCommittedMutations": false,
  8588. "hasLocalMutations": false
  8589. },
  8590. "value": {
  8591. "key": "b3"
  8592. },
  8593. "version": 1000
  8594. }
  8595. ],
  8596. "targets": [
  8597. 2
  8598. ]
  8599. }
  8600. },
  8601. {
  8602. "watchFilter": {
  8603. "keys": [
  8604. "collection/b1",
  8605. "collection/b2",
  8606. "collection/b3"
  8607. ],
  8608. "targetIds": [
  8609. 2
  8610. ]
  8611. }
  8612. },
  8613. {
  8614. "watchSnapshot": {
  8615. "targetIds": [
  8616. ],
  8617. "version": 1001
  8618. },
  8619. "expectedSnapshotEvents": [
  8620. {
  8621. "added": [
  8622. {
  8623. "createTime": 0,
  8624. "key": "collection/b1",
  8625. "options": {
  8626. "hasCommittedMutations": false,
  8627. "hasLocalMutations": false
  8628. },
  8629. "value": {
  8630. "key": "b1"
  8631. },
  8632. "version": 1000
  8633. },
  8634. {
  8635. "createTime": 0,
  8636. "key": "collection/b2",
  8637. "options": {
  8638. "hasCommittedMutations": false,
  8639. "hasLocalMutations": false
  8640. },
  8641. "value": {
  8642. "key": "b2"
  8643. },
  8644. "version": 1000
  8645. },
  8646. {
  8647. "createTime": 0,
  8648. "key": "collection/b3",
  8649. "options": {
  8650. "hasCommittedMutations": false,
  8651. "hasLocalMutations": false
  8652. },
  8653. "value": {
  8654. "key": "b3"
  8655. },
  8656. "version": 1000
  8657. }
  8658. ],
  8659. "errorCode": 0,
  8660. "fromCache": true,
  8661. "hasPendingWrites": false,
  8662. "query": {
  8663. "filters": [
  8664. ],
  8665. "orderBys": [
  8666. ],
  8667. "path": "collection"
  8668. }
  8669. }
  8670. ],
  8671. "expectedState": {
  8672. "activeTargets": {
  8673. "2": {
  8674. "queries": [
  8675. {
  8676. "filters": [
  8677. ],
  8678. "orderBys": [
  8679. ],
  8680. "path": "collection"
  8681. }
  8682. ],
  8683. "resumeToken": "",
  8684. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8685. }
  8686. }
  8687. }
  8688. },
  8689. {
  8690. "watchRemove": {
  8691. "targetIds": [
  8692. 2
  8693. ]
  8694. }
  8695. },
  8696. {
  8697. "watchAck": [
  8698. 2
  8699. ]
  8700. },
  8701. {
  8702. "watchEntity": {
  8703. "docs": [
  8704. {
  8705. "createTime": 0,
  8706. "key": "collection/b1",
  8707. "options": {
  8708. "hasCommittedMutations": false,
  8709. "hasLocalMutations": false
  8710. },
  8711. "value": {
  8712. "key": "b1"
  8713. },
  8714. "version": 1000
  8715. },
  8716. {
  8717. "createTime": 0,
  8718. "key": "collection/b2",
  8719. "options": {
  8720. "hasCommittedMutations": false,
  8721. "hasLocalMutations": false
  8722. },
  8723. "value": {
  8724. "key": "b2"
  8725. },
  8726. "version": 1000
  8727. },
  8728. {
  8729. "createTime": 0,
  8730. "key": "collection/b3",
  8731. "options": {
  8732. "hasCommittedMutations": false,
  8733. "hasLocalMutations": false
  8734. },
  8735. "value": {
  8736. "key": "b3"
  8737. },
  8738. "version": 1000
  8739. }
  8740. ],
  8741. "targets": [
  8742. 2
  8743. ]
  8744. }
  8745. },
  8746. {
  8747. "watchCurrent": [
  8748. [
  8749. 2
  8750. ],
  8751. "resume-token-1002"
  8752. ]
  8753. },
  8754. {
  8755. "watchSnapshot": {
  8756. "targetIds": [
  8757. ],
  8758. "version": 1002
  8759. },
  8760. "expectedState": {
  8761. "activeLimboDocs": [
  8762. "collection/a1",
  8763. "collection/a2"
  8764. ],
  8765. "activeTargets": {
  8766. "1": {
  8767. "queries": [
  8768. {
  8769. "filters": [
  8770. ],
  8771. "orderBys": [
  8772. ],
  8773. "path": "collection/a1"
  8774. }
  8775. ],
  8776. "resumeToken": "",
  8777. "targetPurpose": "TargetPurposeLimboResolution"
  8778. },
  8779. "2": {
  8780. "queries": [
  8781. {
  8782. "filters": [
  8783. ],
  8784. "orderBys": [
  8785. ],
  8786. "path": "collection"
  8787. }
  8788. ],
  8789. "resumeToken": "",
  8790. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8791. },
  8792. "3": {
  8793. "queries": [
  8794. {
  8795. "filters": [
  8796. ],
  8797. "orderBys": [
  8798. ],
  8799. "path": "collection/a2"
  8800. }
  8801. ],
  8802. "resumeToken": "",
  8803. "targetPurpose": "TargetPurposeLimboResolution"
  8804. }
  8805. },
  8806. "enqueuedLimboDocs": [
  8807. "collection/a3"
  8808. ]
  8809. }
  8810. },
  8811. {
  8812. "watchAck": [
  8813. 1
  8814. ]
  8815. },
  8816. {
  8817. "watchAck": [
  8818. 3
  8819. ]
  8820. },
  8821. {
  8822. "watchCurrent": [
  8823. [
  8824. 1
  8825. ],
  8826. "resume-token-1003"
  8827. ]
  8828. },
  8829. {
  8830. "watchCurrent": [
  8831. [
  8832. 3
  8833. ],
  8834. "resume-token-1003"
  8835. ]
  8836. },
  8837. {
  8838. "watchSnapshot": {
  8839. "targetIds": [
  8840. ],
  8841. "version": 1003
  8842. },
  8843. "expectedSnapshotEvents": [
  8844. {
  8845. "errorCode": 0,
  8846. "fromCache": true,
  8847. "hasPendingWrites": false,
  8848. "query": {
  8849. "filters": [
  8850. ],
  8851. "orderBys": [
  8852. ],
  8853. "path": "collection"
  8854. },
  8855. "removed": [
  8856. {
  8857. "createTime": 0,
  8858. "key": "collection/a1",
  8859. "options": {
  8860. "hasCommittedMutations": false,
  8861. "hasLocalMutations": false
  8862. },
  8863. "value": {
  8864. "key": "a1"
  8865. },
  8866. "version": 1000
  8867. },
  8868. {
  8869. "createTime": 0,
  8870. "key": "collection/a2",
  8871. "options": {
  8872. "hasCommittedMutations": false,
  8873. "hasLocalMutations": false
  8874. },
  8875. "value": {
  8876. "key": "a2"
  8877. },
  8878. "version": 1000
  8879. }
  8880. ]
  8881. }
  8882. ],
  8883. "expectedState": {
  8884. "activeLimboDocs": [
  8885. "collection/a3"
  8886. ],
  8887. "activeTargets": {
  8888. "2": {
  8889. "queries": [
  8890. {
  8891. "filters": [
  8892. ],
  8893. "orderBys": [
  8894. ],
  8895. "path": "collection"
  8896. }
  8897. ],
  8898. "resumeToken": "",
  8899. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8900. },
  8901. "5": {
  8902. "queries": [
  8903. {
  8904. "filters": [
  8905. ],
  8906. "orderBys": [
  8907. ],
  8908. "path": "collection/a3"
  8909. }
  8910. ],
  8911. "resumeToken": "",
  8912. "targetPurpose": "TargetPurposeLimboResolution"
  8913. }
  8914. },
  8915. "enqueuedLimboDocs": [
  8916. ]
  8917. }
  8918. },
  8919. {
  8920. "watchAck": [
  8921. 5
  8922. ]
  8923. },
  8924. {
  8925. "watchCurrent": [
  8926. [
  8927. 5
  8928. ],
  8929. "resume-token-1004"
  8930. ]
  8931. },
  8932. {
  8933. "watchSnapshot": {
  8934. "targetIds": [
  8935. ],
  8936. "version": 1004
  8937. },
  8938. "expectedSnapshotEvents": [
  8939. {
  8940. "errorCode": 0,
  8941. "fromCache": false,
  8942. "hasPendingWrites": false,
  8943. "query": {
  8944. "filters": [
  8945. ],
  8946. "orderBys": [
  8947. ],
  8948. "path": "collection"
  8949. },
  8950. "removed": [
  8951. {
  8952. "createTime": 0,
  8953. "key": "collection/a3",
  8954. "options": {
  8955. "hasCommittedMutations": false,
  8956. "hasLocalMutations": false
  8957. },
  8958. "value": {
  8959. "key": "a3"
  8960. },
  8961. "version": 1000
  8962. }
  8963. ]
  8964. }
  8965. ],
  8966. "expectedState": {
  8967. "activeLimboDocs": [
  8968. ],
  8969. "activeTargets": {
  8970. "2": {
  8971. "queries": [
  8972. {
  8973. "filters": [
  8974. ],
  8975. "orderBys": [
  8976. ],
  8977. "path": "collection"
  8978. }
  8979. ],
  8980. "resumeToken": "",
  8981. "targetPurpose": "TargetPurposeExistenceFilterMismatch"
  8982. }
  8983. },
  8984. "enqueuedLimboDocs": [
  8985. ]
  8986. }
  8987. }
  8988. ]
  8989. },
  8990. "Limbo resolution throttling with results one at a time from watch": {
  8991. "describeName": "Limbo Documents:",
  8992. "itName": "Limbo resolution throttling with results one at a time from watch",
  8993. "tags": [
  8994. ],
  8995. "config": {
  8996. "maxConcurrentLimboResolutions": 2,
  8997. "numClients": 1,
  8998. "useEagerGCForMemory": true
  8999. },
  9000. "steps": [
  9001. {
  9002. "userListen": {
  9003. "query": {
  9004. "filters": [
  9005. ],
  9006. "orderBys": [
  9007. ],
  9008. "path": "collection"
  9009. },
  9010. "targetId": 2
  9011. },
  9012. "expectedState": {
  9013. "activeTargets": {
  9014. "2": {
  9015. "queries": [
  9016. {
  9017. "filters": [
  9018. ],
  9019. "orderBys": [
  9020. ],
  9021. "path": "collection"
  9022. }
  9023. ],
  9024. "resumeToken": ""
  9025. }
  9026. }
  9027. }
  9028. },
  9029. {
  9030. "watchAck": [
  9031. 2
  9032. ]
  9033. },
  9034. {
  9035. "watchEntity": {
  9036. "docs": [
  9037. {
  9038. "createTime": 0,
  9039. "key": "collection/a",
  9040. "options": {
  9041. "hasCommittedMutations": false,
  9042. "hasLocalMutations": false
  9043. },
  9044. "value": {
  9045. "key": "a"
  9046. },
  9047. "version": 1000
  9048. },
  9049. {
  9050. "createTime": 0,
  9051. "key": "collection/b",
  9052. "options": {
  9053. "hasCommittedMutations": false,
  9054. "hasLocalMutations": false
  9055. },
  9056. "value": {
  9057. "key": "b"
  9058. },
  9059. "version": 1000
  9060. },
  9061. {
  9062. "createTime": 0,
  9063. "key": "collection/c",
  9064. "options": {
  9065. "hasCommittedMutations": false,
  9066. "hasLocalMutations": false
  9067. },
  9068. "value": {
  9069. "key": "c"
  9070. },
  9071. "version": 1000
  9072. },
  9073. {
  9074. "createTime": 0,
  9075. "key": "collection/d",
  9076. "options": {
  9077. "hasCommittedMutations": false,
  9078. "hasLocalMutations": false
  9079. },
  9080. "value": {
  9081. "key": "d"
  9082. },
  9083. "version": 1000
  9084. },
  9085. {
  9086. "createTime": 0,
  9087. "key": "collection/e",
  9088. "options": {
  9089. "hasCommittedMutations": false,
  9090. "hasLocalMutations": false
  9091. },
  9092. "value": {
  9093. "key": "e"
  9094. },
  9095. "version": 1000
  9096. }
  9097. ],
  9098. "targets": [
  9099. 2
  9100. ]
  9101. }
  9102. },
  9103. {
  9104. "watchCurrent": [
  9105. [
  9106. 2
  9107. ],
  9108. "resume-token-1000"
  9109. ]
  9110. },
  9111. {
  9112. "watchSnapshot": {
  9113. "targetIds": [
  9114. ],
  9115. "version": 1000
  9116. },
  9117. "expectedSnapshotEvents": [
  9118. {
  9119. "added": [
  9120. {
  9121. "createTime": 0,
  9122. "key": "collection/a",
  9123. "options": {
  9124. "hasCommittedMutations": false,
  9125. "hasLocalMutations": false
  9126. },
  9127. "value": {
  9128. "key": "a"
  9129. },
  9130. "version": 1000
  9131. },
  9132. {
  9133. "createTime": 0,
  9134. "key": "collection/b",
  9135. "options": {
  9136. "hasCommittedMutations": false,
  9137. "hasLocalMutations": false
  9138. },
  9139. "value": {
  9140. "key": "b"
  9141. },
  9142. "version": 1000
  9143. },
  9144. {
  9145. "createTime": 0,
  9146. "key": "collection/c",
  9147. "options": {
  9148. "hasCommittedMutations": false,
  9149. "hasLocalMutations": false
  9150. },
  9151. "value": {
  9152. "key": "c"
  9153. },
  9154. "version": 1000
  9155. },
  9156. {
  9157. "createTime": 0,
  9158. "key": "collection/d",
  9159. "options": {
  9160. "hasCommittedMutations": false,
  9161. "hasLocalMutations": false
  9162. },
  9163. "value": {
  9164. "key": "d"
  9165. },
  9166. "version": 1000
  9167. },
  9168. {
  9169. "createTime": 0,
  9170. "key": "collection/e",
  9171. "options": {
  9172. "hasCommittedMutations": false,
  9173. "hasLocalMutations": false
  9174. },
  9175. "value": {
  9176. "key": "e"
  9177. },
  9178. "version": 1000
  9179. }
  9180. ],
  9181. "errorCode": 0,
  9182. "fromCache": false,
  9183. "hasPendingWrites": false,
  9184. "query": {
  9185. "filters": [
  9186. ],
  9187. "orderBys": [
  9188. ],
  9189. "path": "collection"
  9190. }
  9191. }
  9192. ]
  9193. },
  9194. {
  9195. "watchReset": [
  9196. 2
  9197. ]
  9198. },
  9199. {
  9200. "watchEntity": {
  9201. "docs": [
  9202. ],
  9203. "targets": [
  9204. 2
  9205. ]
  9206. }
  9207. },
  9208. {
  9209. "watchCurrent": [
  9210. [
  9211. 2
  9212. ],
  9213. "resume-token-2000"
  9214. ]
  9215. },
  9216. {
  9217. "watchSnapshot": {
  9218. "targetIds": [
  9219. ],
  9220. "version": 2000
  9221. },
  9222. "expectedSnapshotEvents": [
  9223. {
  9224. "errorCode": 0,
  9225. "fromCache": true,
  9226. "hasPendingWrites": false,
  9227. "query": {
  9228. "filters": [
  9229. ],
  9230. "orderBys": [
  9231. ],
  9232. "path": "collection"
  9233. }
  9234. }
  9235. ],
  9236. "expectedState": {
  9237. "activeLimboDocs": [
  9238. "collection/a",
  9239. "collection/b"
  9240. ],
  9241. "activeTargets": {
  9242. "1": {
  9243. "queries": [
  9244. {
  9245. "filters": [
  9246. ],
  9247. "orderBys": [
  9248. ],
  9249. "path": "collection/a"
  9250. }
  9251. ],
  9252. "resumeToken": "",
  9253. "targetPurpose": "TargetPurposeLimboResolution"
  9254. },
  9255. "2": {
  9256. "queries": [
  9257. {
  9258. "filters": [
  9259. ],
  9260. "orderBys": [
  9261. ],
  9262. "path": "collection"
  9263. }
  9264. ],
  9265. "resumeToken": ""
  9266. },
  9267. "3": {
  9268. "queries": [
  9269. {
  9270. "filters": [
  9271. ],
  9272. "orderBys": [
  9273. ],
  9274. "path": "collection/b"
  9275. }
  9276. ],
  9277. "resumeToken": "",
  9278. "targetPurpose": "TargetPurposeLimboResolution"
  9279. }
  9280. },
  9281. "enqueuedLimboDocs": [
  9282. "collection/c",
  9283. "collection/d",
  9284. "collection/e"
  9285. ]
  9286. }
  9287. },
  9288. {
  9289. "watchAck": [
  9290. 1
  9291. ]
  9292. },
  9293. {
  9294. "watchAck": [
  9295. 3
  9296. ]
  9297. },
  9298. {
  9299. "watchCurrent": [
  9300. [
  9301. 1
  9302. ],
  9303. "resume-token-2001"
  9304. ]
  9305. },
  9306. {
  9307. "watchSnapshot": {
  9308. "targetIds": [
  9309. ],
  9310. "version": 2001
  9311. },
  9312. "expectedSnapshotEvents": [
  9313. {
  9314. "errorCode": 0,
  9315. "fromCache": true,
  9316. "hasPendingWrites": false,
  9317. "query": {
  9318. "filters": [
  9319. ],
  9320. "orderBys": [
  9321. ],
  9322. "path": "collection"
  9323. },
  9324. "removed": [
  9325. {
  9326. "createTime": 0,
  9327. "key": "collection/a",
  9328. "options": {
  9329. "hasCommittedMutations": false,
  9330. "hasLocalMutations": false
  9331. },
  9332. "value": {
  9333. "key": "a"
  9334. },
  9335. "version": 1000
  9336. }
  9337. ]
  9338. }
  9339. ],
  9340. "expectedState": {
  9341. "activeLimboDocs": [
  9342. "collection/b",
  9343. "collection/c"
  9344. ],
  9345. "activeTargets": {
  9346. "2": {
  9347. "queries": [
  9348. {
  9349. "filters": [
  9350. ],
  9351. "orderBys": [
  9352. ],
  9353. "path": "collection"
  9354. }
  9355. ],
  9356. "resumeToken": ""
  9357. },
  9358. "3": {
  9359. "queries": [
  9360. {
  9361. "filters": [
  9362. ],
  9363. "orderBys": [
  9364. ],
  9365. "path": "collection/b"
  9366. }
  9367. ],
  9368. "resumeToken": "",
  9369. "targetPurpose": "TargetPurposeLimboResolution"
  9370. },
  9371. "5": {
  9372. "queries": [
  9373. {
  9374. "filters": [
  9375. ],
  9376. "orderBys": [
  9377. ],
  9378. "path": "collection/c"
  9379. }
  9380. ],
  9381. "resumeToken": "",
  9382. "targetPurpose": "TargetPurposeLimboResolution"
  9383. }
  9384. },
  9385. "enqueuedLimboDocs": [
  9386. "collection/d",
  9387. "collection/e"
  9388. ]
  9389. }
  9390. },
  9391. {
  9392. "watchAck": [
  9393. 5
  9394. ]
  9395. },
  9396. {
  9397. "watchCurrent": [
  9398. [
  9399. 3
  9400. ],
  9401. "resume-token-2002"
  9402. ]
  9403. },
  9404. {
  9405. "watchSnapshot": {
  9406. "targetIds": [
  9407. ],
  9408. "version": 2002
  9409. },
  9410. "expectedSnapshotEvents": [
  9411. {
  9412. "errorCode": 0,
  9413. "fromCache": true,
  9414. "hasPendingWrites": false,
  9415. "query": {
  9416. "filters": [
  9417. ],
  9418. "orderBys": [
  9419. ],
  9420. "path": "collection"
  9421. },
  9422. "removed": [
  9423. {
  9424. "createTime": 0,
  9425. "key": "collection/b",
  9426. "options": {
  9427. "hasCommittedMutations": false,
  9428. "hasLocalMutations": false
  9429. },
  9430. "value": {
  9431. "key": "b"
  9432. },
  9433. "version": 1000
  9434. }
  9435. ]
  9436. }
  9437. ],
  9438. "expectedState": {
  9439. "activeLimboDocs": [
  9440. "collection/c",
  9441. "collection/d"
  9442. ],
  9443. "activeTargets": {
  9444. "2": {
  9445. "queries": [
  9446. {
  9447. "filters": [
  9448. ],
  9449. "orderBys": [
  9450. ],
  9451. "path": "collection"
  9452. }
  9453. ],
  9454. "resumeToken": ""
  9455. },
  9456. "5": {
  9457. "queries": [
  9458. {
  9459. "filters": [
  9460. ],
  9461. "orderBys": [
  9462. ],
  9463. "path": "collection/c"
  9464. }
  9465. ],
  9466. "resumeToken": "",
  9467. "targetPurpose": "TargetPurposeLimboResolution"
  9468. },
  9469. "7": {
  9470. "queries": [
  9471. {
  9472. "filters": [
  9473. ],
  9474. "orderBys": [
  9475. ],
  9476. "path": "collection/d"
  9477. }
  9478. ],
  9479. "resumeToken": "",
  9480. "targetPurpose": "TargetPurposeLimboResolution"
  9481. }
  9482. },
  9483. "enqueuedLimboDocs": [
  9484. "collection/e"
  9485. ]
  9486. }
  9487. },
  9488. {
  9489. "watchAck": [
  9490. 7
  9491. ]
  9492. },
  9493. {
  9494. "watchCurrent": [
  9495. [
  9496. 5
  9497. ],
  9498. "resume-token-2003"
  9499. ]
  9500. },
  9501. {
  9502. "watchSnapshot": {
  9503. "targetIds": [
  9504. ],
  9505. "version": 2003
  9506. },
  9507. "expectedSnapshotEvents": [
  9508. {
  9509. "errorCode": 0,
  9510. "fromCache": true,
  9511. "hasPendingWrites": false,
  9512. "query": {
  9513. "filters": [
  9514. ],
  9515. "orderBys": [
  9516. ],
  9517. "path": "collection"
  9518. },
  9519. "removed": [
  9520. {
  9521. "createTime": 0,
  9522. "key": "collection/c",
  9523. "options": {
  9524. "hasCommittedMutations": false,
  9525. "hasLocalMutations": false
  9526. },
  9527. "value": {
  9528. "key": "c"
  9529. },
  9530. "version": 1000
  9531. }
  9532. ]
  9533. }
  9534. ],
  9535. "expectedState": {
  9536. "activeLimboDocs": [
  9537. "collection/d",
  9538. "collection/e"
  9539. ],
  9540. "activeTargets": {
  9541. "2": {
  9542. "queries": [
  9543. {
  9544. "filters": [
  9545. ],
  9546. "orderBys": [
  9547. ],
  9548. "path": "collection"
  9549. }
  9550. ],
  9551. "resumeToken": ""
  9552. },
  9553. "7": {
  9554. "queries": [
  9555. {
  9556. "filters": [
  9557. ],
  9558. "orderBys": [
  9559. ],
  9560. "path": "collection/d"
  9561. }
  9562. ],
  9563. "resumeToken": "",
  9564. "targetPurpose": "TargetPurposeLimboResolution"
  9565. },
  9566. "9": {
  9567. "queries": [
  9568. {
  9569. "filters": [
  9570. ],
  9571. "orderBys": [
  9572. ],
  9573. "path": "collection/e"
  9574. }
  9575. ],
  9576. "resumeToken": "",
  9577. "targetPurpose": "TargetPurposeLimboResolution"
  9578. }
  9579. },
  9580. "enqueuedLimboDocs": [
  9581. ]
  9582. }
  9583. },
  9584. {
  9585. "watchAck": [
  9586. 9
  9587. ]
  9588. },
  9589. {
  9590. "watchCurrent": [
  9591. [
  9592. 7
  9593. ],
  9594. "resume-token-2004"
  9595. ]
  9596. },
  9597. {
  9598. "watchSnapshot": {
  9599. "targetIds": [
  9600. ],
  9601. "version": 2004
  9602. },
  9603. "expectedSnapshotEvents": [
  9604. {
  9605. "errorCode": 0,
  9606. "fromCache": true,
  9607. "hasPendingWrites": false,
  9608. "query": {
  9609. "filters": [
  9610. ],
  9611. "orderBys": [
  9612. ],
  9613. "path": "collection"
  9614. },
  9615. "removed": [
  9616. {
  9617. "createTime": 0,
  9618. "key": "collection/d",
  9619. "options": {
  9620. "hasCommittedMutations": false,
  9621. "hasLocalMutations": false
  9622. },
  9623. "value": {
  9624. "key": "d"
  9625. },
  9626. "version": 1000
  9627. }
  9628. ]
  9629. }
  9630. ],
  9631. "expectedState": {
  9632. "activeLimboDocs": [
  9633. "collection/e"
  9634. ],
  9635. "activeTargets": {
  9636. "2": {
  9637. "queries": [
  9638. {
  9639. "filters": [
  9640. ],
  9641. "orderBys": [
  9642. ],
  9643. "path": "collection"
  9644. }
  9645. ],
  9646. "resumeToken": ""
  9647. },
  9648. "9": {
  9649. "queries": [
  9650. {
  9651. "filters": [
  9652. ],
  9653. "orderBys": [
  9654. ],
  9655. "path": "collection/e"
  9656. }
  9657. ],
  9658. "resumeToken": "",
  9659. "targetPurpose": "TargetPurposeLimboResolution"
  9660. }
  9661. },
  9662. "enqueuedLimboDocs": [
  9663. ]
  9664. }
  9665. },
  9666. {
  9667. "watchCurrent": [
  9668. [
  9669. 9
  9670. ],
  9671. "resume-token-2005"
  9672. ]
  9673. },
  9674. {
  9675. "watchSnapshot": {
  9676. "targetIds": [
  9677. ],
  9678. "version": 2005
  9679. },
  9680. "expectedSnapshotEvents": [
  9681. {
  9682. "errorCode": 0,
  9683. "fromCache": false,
  9684. "hasPendingWrites": false,
  9685. "query": {
  9686. "filters": [
  9687. ],
  9688. "orderBys": [
  9689. ],
  9690. "path": "collection"
  9691. },
  9692. "removed": [
  9693. {
  9694. "createTime": 0,
  9695. "key": "collection/e",
  9696. "options": {
  9697. "hasCommittedMutations": false,
  9698. "hasLocalMutations": false
  9699. },
  9700. "value": {
  9701. "key": "e"
  9702. },
  9703. "version": 1000
  9704. }
  9705. ]
  9706. }
  9707. ],
  9708. "expectedState": {
  9709. "activeLimboDocs": [
  9710. ],
  9711. "activeTargets": {
  9712. "2": {
  9713. "queries": [
  9714. {
  9715. "filters": [
  9716. ],
  9717. "orderBys": [
  9718. ],
  9719. "path": "collection"
  9720. }
  9721. ],
  9722. "resumeToken": ""
  9723. }
  9724. },
  9725. "enqueuedLimboDocs": [
  9726. ]
  9727. }
  9728. }
  9729. ]
  9730. },
  9731. "LimitToLast query from secondary results in expected limbo doc": {
  9732. "describeName": "Limbo Documents:",
  9733. "itName": "LimitToLast query from secondary results in expected limbo doc",
  9734. "tags": [
  9735. "multi-client"
  9736. ],
  9737. "config": {
  9738. "numClients": 2,
  9739. "useEagerGCForMemory": false
  9740. },
  9741. "steps": [
  9742. {
  9743. "clientIndex": 0,
  9744. "drainQueue": true
  9745. },
  9746. {
  9747. "applyClientState": {
  9748. "visibility": "visible"
  9749. },
  9750. "clientIndex": 0
  9751. },
  9752. {
  9753. "clientIndex": 1,
  9754. "drainQueue": true
  9755. },
  9756. {
  9757. "clientIndex": 1,
  9758. "userListen": {
  9759. "query": {
  9760. "filters": [
  9761. ],
  9762. "limit": 3,
  9763. "limitType": "LimitToLast",
  9764. "orderBys": [
  9765. [
  9766. "val",
  9767. "desc"
  9768. ]
  9769. ],
  9770. "path": "collection"
  9771. },
  9772. "targetId": 2
  9773. },
  9774. "expectedState": {
  9775. "activeTargets": {
  9776. "2": {
  9777. "queries": [
  9778. {
  9779. "filters": [
  9780. ],
  9781. "limit": 3,
  9782. "limitType": "LimitToLast",
  9783. "orderBys": [
  9784. [
  9785. "val",
  9786. "desc"
  9787. ]
  9788. ],
  9789. "path": "collection"
  9790. }
  9791. ],
  9792. "resumeToken": ""
  9793. }
  9794. }
  9795. }
  9796. },
  9797. {
  9798. "clientIndex": 0,
  9799. "drainQueue": true,
  9800. "expectedState": {
  9801. "activeTargets": {
  9802. "2": {
  9803. "queries": [
  9804. {
  9805. "filters": [
  9806. ],
  9807. "limit": 3,
  9808. "limitType": "LimitToLast",
  9809. "orderBys": [
  9810. [
  9811. "val",
  9812. "desc"
  9813. ]
  9814. ],
  9815. "path": "collection"
  9816. }
  9817. ],
  9818. "resumeToken": ""
  9819. }
  9820. }
  9821. }
  9822. },
  9823. {
  9824. "clientIndex": 0,
  9825. "watchAck": [
  9826. 2
  9827. ]
  9828. },
  9829. {
  9830. "clientIndex": 0,
  9831. "watchEntity": {
  9832. "docs": [
  9833. {
  9834. "createTime": 0,
  9835. "key": "collection/a",
  9836. "options": {
  9837. "hasCommittedMutations": false,
  9838. "hasLocalMutations": false
  9839. },
  9840. "value": {
  9841. "val": 11
  9842. },
  9843. "version": 1000
  9844. },
  9845. {
  9846. "createTime": 0,
  9847. "key": "collection/b",
  9848. "options": {
  9849. "hasCommittedMutations": false,
  9850. "hasLocalMutations": false
  9851. },
  9852. "value": {
  9853. "val": 12
  9854. },
  9855. "version": 1000
  9856. },
  9857. {
  9858. "createTime": 0,
  9859. "key": "collection/c",
  9860. "options": {
  9861. "hasCommittedMutations": false,
  9862. "hasLocalMutations": false
  9863. },
  9864. "value": {
  9865. "val": 13
  9866. },
  9867. "version": 1000
  9868. }
  9869. ],
  9870. "targets": [
  9871. 2
  9872. ]
  9873. }
  9874. },
  9875. {
  9876. "clientIndex": 0,
  9877. "watchCurrent": [
  9878. [
  9879. 2
  9880. ],
  9881. "resume-token-1000"
  9882. ]
  9883. },
  9884. {
  9885. "clientIndex": 0,
  9886. "watchSnapshot": {
  9887. "targetIds": [
  9888. ],
  9889. "version": 1000
  9890. }
  9891. },
  9892. {
  9893. "clientIndex": 1,
  9894. "drainQueue": true,
  9895. "expectedSnapshotEvents": [
  9896. {
  9897. "added": [
  9898. {
  9899. "createTime": 0,
  9900. "key": "collection/c",
  9901. "options": {
  9902. "hasCommittedMutations": false,
  9903. "hasLocalMutations": false
  9904. },
  9905. "value": {
  9906. "val": 13
  9907. },
  9908. "version": 1000
  9909. },
  9910. {
  9911. "createTime": 0,
  9912. "key": "collection/b",
  9913. "options": {
  9914. "hasCommittedMutations": false,
  9915. "hasLocalMutations": false
  9916. },
  9917. "value": {
  9918. "val": 12
  9919. },
  9920. "version": 1000
  9921. },
  9922. {
  9923. "createTime": 0,
  9924. "key": "collection/a",
  9925. "options": {
  9926. "hasCommittedMutations": false,
  9927. "hasLocalMutations": false
  9928. },
  9929. "value": {
  9930. "val": 11
  9931. },
  9932. "version": 1000
  9933. }
  9934. ],
  9935. "errorCode": 0,
  9936. "fromCache": false,
  9937. "hasPendingWrites": false,
  9938. "query": {
  9939. "filters": [
  9940. ],
  9941. "limit": 3,
  9942. "limitType": "LimitToLast",
  9943. "orderBys": [
  9944. [
  9945. "val",
  9946. "desc"
  9947. ]
  9948. ],
  9949. "path": "collection"
  9950. }
  9951. }
  9952. ]
  9953. },
  9954. {
  9955. "clientIndex": 0,
  9956. "drainQueue": true
  9957. },
  9958. {
  9959. "clientIndex": 0,
  9960. "watchReset": [
  9961. ]
  9962. },
  9963. {
  9964. "clientIndex": 0,
  9965. "watchEntity": {
  9966. "docs": [
  9967. {
  9968. "createTime": 0,
  9969. "key": "collection/a",
  9970. "options": {
  9971. "hasCommittedMutations": false,
  9972. "hasLocalMutations": false
  9973. },
  9974. "value": {
  9975. "val": 11
  9976. },
  9977. "version": 2000
  9978. },
  9979. {
  9980. "createTime": 0,
  9981. "key": "collection/b",
  9982. "options": {
  9983. "hasCommittedMutations": false,
  9984. "hasLocalMutations": false
  9985. },
  9986. "value": {
  9987. "val": 12
  9988. },
  9989. "version": 2000
  9990. },
  9991. {
  9992. "createTime": 0,
  9993. "key": "collection/d",
  9994. "options": {
  9995. "hasCommittedMutations": false,
  9996. "hasLocalMutations": false
  9997. },
  9998. "value": {
  9999. "val": 100
  10000. },
  10001. "version": 2000
  10002. }
  10003. ],
  10004. "targets": [
  10005. 2
  10006. ]
  10007. }
  10008. },
  10009. {
  10010. "clientIndex": 0,
  10011. "watchCurrent": [
  10012. [
  10013. 2
  10014. ],
  10015. "resume-token-2000"
  10016. ]
  10017. },
  10018. {
  10019. "clientIndex": 0,
  10020. "watchSnapshot": {
  10021. "targetIds": [
  10022. ],
  10023. "version": 2000
  10024. },
  10025. "expectedState": {
  10026. "activeLimboDocs": [
  10027. "collection/c"
  10028. ],
  10029. "activeTargets": {
  10030. "1": {
  10031. "queries": [
  10032. {
  10033. "filters": [
  10034. ],
  10035. "orderBys": [
  10036. ],
  10037. "path": "collection/c"
  10038. }
  10039. ],
  10040. "resumeToken": "",
  10041. "targetPurpose": "TargetPurposeLimboResolution"
  10042. },
  10043. "2": {
  10044. "queries": [
  10045. {
  10046. "filters": [
  10047. ],
  10048. "limit": 3,
  10049. "limitType": "LimitToLast",
  10050. "orderBys": [
  10051. [
  10052. "val",
  10053. "desc"
  10054. ]
  10055. ],
  10056. "path": "collection"
  10057. }
  10058. ],
  10059. "resumeToken": ""
  10060. }
  10061. }
  10062. }
  10063. },
  10064. {
  10065. "clientIndex": 1,
  10066. "drainQueue": true,
  10067. "expectedSnapshotEvents": [
  10068. {
  10069. "errorCode": 0,
  10070. "fromCache": true,
  10071. "hasPendingWrites": false,
  10072. "query": {
  10073. "filters": [
  10074. ],
  10075. "limit": 3,
  10076. "limitType": "LimitToLast",
  10077. "orderBys": [
  10078. [
  10079. "val",
  10080. "desc"
  10081. ]
  10082. ],
  10083. "path": "collection"
  10084. }
  10085. }
  10086. ]
  10087. }
  10088. ]
  10089. },
  10090. "LimitToLast query from secondary results in no expected limbo doc": {
  10091. "describeName": "Limbo Documents:",
  10092. "itName": "LimitToLast query from secondary results in no expected limbo doc",
  10093. "tags": [
  10094. "multi-client"
  10095. ],
  10096. "config": {
  10097. "numClients": 2,
  10098. "useEagerGCForMemory": false
  10099. },
  10100. "steps": [
  10101. {
  10102. "clientIndex": 0,
  10103. "drainQueue": true
  10104. },
  10105. {
  10106. "applyClientState": {
  10107. "visibility": "visible"
  10108. },
  10109. "clientIndex": 0
  10110. },
  10111. {
  10112. "clientIndex": 1,
  10113. "drainQueue": true
  10114. },
  10115. {
  10116. "clientIndex": 1,
  10117. "userListen": {
  10118. "query": {
  10119. "filters": [
  10120. ],
  10121. "limit": 3,
  10122. "limitType": "LimitToLast",
  10123. "orderBys": [
  10124. [
  10125. "val",
  10126. "desc"
  10127. ]
  10128. ],
  10129. "path": "collection"
  10130. },
  10131. "targetId": 2
  10132. },
  10133. "expectedState": {
  10134. "activeTargets": {
  10135. "2": {
  10136. "queries": [
  10137. {
  10138. "filters": [
  10139. ],
  10140. "limit": 3,
  10141. "limitType": "LimitToLast",
  10142. "orderBys": [
  10143. [
  10144. "val",
  10145. "desc"
  10146. ]
  10147. ],
  10148. "path": "collection"
  10149. }
  10150. ],
  10151. "resumeToken": ""
  10152. }
  10153. }
  10154. }
  10155. },
  10156. {
  10157. "clientIndex": 0,
  10158. "drainQueue": true,
  10159. "expectedState": {
  10160. "activeTargets": {
  10161. "2": {
  10162. "queries": [
  10163. {
  10164. "filters": [
  10165. ],
  10166. "limit": 3,
  10167. "limitType": "LimitToLast",
  10168. "orderBys": [
  10169. [
  10170. "val",
  10171. "desc"
  10172. ]
  10173. ],
  10174. "path": "collection"
  10175. }
  10176. ],
  10177. "resumeToken": ""
  10178. }
  10179. }
  10180. }
  10181. },
  10182. {
  10183. "clientIndex": 0,
  10184. "watchAck": [
  10185. 2
  10186. ]
  10187. },
  10188. {
  10189. "clientIndex": 0,
  10190. "watchEntity": {
  10191. "docs": [
  10192. {
  10193. "createTime": 0,
  10194. "key": "collection/a",
  10195. "options": {
  10196. "hasCommittedMutations": false,
  10197. "hasLocalMutations": false
  10198. },
  10199. "value": {
  10200. "val": 11
  10201. },
  10202. "version": 1000
  10203. },
  10204. {
  10205. "createTime": 0,
  10206. "key": "collection/b",
  10207. "options": {
  10208. "hasCommittedMutations": false,
  10209. "hasLocalMutations": false
  10210. },
  10211. "value": {
  10212. "val": 12
  10213. },
  10214. "version": 1000
  10215. },
  10216. {
  10217. "createTime": 0,
  10218. "key": "collection/c",
  10219. "options": {
  10220. "hasCommittedMutations": false,
  10221. "hasLocalMutations": false
  10222. },
  10223. "value": {
  10224. "val": 13
  10225. },
  10226. "version": 1000
  10227. }
  10228. ],
  10229. "targets": [
  10230. 2
  10231. ]
  10232. }
  10233. },
  10234. {
  10235. "clientIndex": 0,
  10236. "watchCurrent": [
  10237. [
  10238. 2
  10239. ],
  10240. "resume-token-1000"
  10241. ]
  10242. },
  10243. {
  10244. "clientIndex": 0,
  10245. "watchSnapshot": {
  10246. "targetIds": [
  10247. ],
  10248. "version": 1000
  10249. }
  10250. },
  10251. {
  10252. "clientIndex": 1,
  10253. "drainQueue": true,
  10254. "expectedSnapshotEvents": [
  10255. {
  10256. "added": [
  10257. {
  10258. "createTime": 0,
  10259. "key": "collection/c",
  10260. "options": {
  10261. "hasCommittedMutations": false,
  10262. "hasLocalMutations": false
  10263. },
  10264. "value": {
  10265. "val": 13
  10266. },
  10267. "version": 1000
  10268. },
  10269. {
  10270. "createTime": 0,
  10271. "key": "collection/b",
  10272. "options": {
  10273. "hasCommittedMutations": false,
  10274. "hasLocalMutations": false
  10275. },
  10276. "value": {
  10277. "val": 12
  10278. },
  10279. "version": 1000
  10280. },
  10281. {
  10282. "createTime": 0,
  10283. "key": "collection/a",
  10284. "options": {
  10285. "hasCommittedMutations": false,
  10286. "hasLocalMutations": false
  10287. },
  10288. "value": {
  10289. "val": 11
  10290. },
  10291. "version": 1000
  10292. }
  10293. ],
  10294. "errorCode": 0,
  10295. "fromCache": false,
  10296. "hasPendingWrites": false,
  10297. "query": {
  10298. "filters": [
  10299. ],
  10300. "limit": 3,
  10301. "limitType": "LimitToLast",
  10302. "orderBys": [
  10303. [
  10304. "val",
  10305. "desc"
  10306. ]
  10307. ],
  10308. "path": "collection"
  10309. }
  10310. }
  10311. ]
  10312. },
  10313. {
  10314. "clientIndex": 0,
  10315. "drainQueue": true
  10316. },
  10317. {
  10318. "clientIndex": 0,
  10319. "watchReset": [
  10320. ]
  10321. },
  10322. {
  10323. "clientIndex": 0,
  10324. "watchEntity": {
  10325. "docs": [
  10326. {
  10327. "createTime": 0,
  10328. "key": "collection/a",
  10329. "options": {
  10330. "hasCommittedMutations": false,
  10331. "hasLocalMutations": false
  10332. },
  10333. "value": {
  10334. "val": 5
  10335. },
  10336. "version": 2000
  10337. },
  10338. {
  10339. "createTime": 0,
  10340. "key": "collection/b",
  10341. "options": {
  10342. "hasCommittedMutations": false,
  10343. "hasLocalMutations": false
  10344. },
  10345. "value": {
  10346. "val": 6
  10347. },
  10348. "version": 2000
  10349. },
  10350. {
  10351. "createTime": 0,
  10352. "key": "collection/d",
  10353. "options": {
  10354. "hasCommittedMutations": false,
  10355. "hasLocalMutations": false
  10356. },
  10357. "value": {
  10358. "val": 7
  10359. },
  10360. "version": 2000
  10361. }
  10362. ],
  10363. "targets": [
  10364. 2
  10365. ]
  10366. }
  10367. },
  10368. {
  10369. "clientIndex": 0,
  10370. "watchCurrent": [
  10371. [
  10372. 2
  10373. ],
  10374. "resume-token-2000"
  10375. ]
  10376. },
  10377. {
  10378. "clientIndex": 0,
  10379. "watchSnapshot": {
  10380. "targetIds": [
  10381. ],
  10382. "version": 2000
  10383. }
  10384. },
  10385. {
  10386. "clientIndex": 1,
  10387. "drainQueue": true,
  10388. "expectedSnapshotEvents": [
  10389. {
  10390. "added": [
  10391. {
  10392. "createTime": 0,
  10393. "key": "collection/d",
  10394. "options": {
  10395. "hasCommittedMutations": false,
  10396. "hasLocalMutations": false
  10397. },
  10398. "value": {
  10399. "val": 7
  10400. },
  10401. "version": 2000
  10402. }
  10403. ],
  10404. "errorCode": 0,
  10405. "fromCache": false,
  10406. "hasPendingWrites": false,
  10407. "modified": [
  10408. {
  10409. "createTime": 0,
  10410. "key": "collection/b",
  10411. "options": {
  10412. "hasCommittedMutations": false,
  10413. "hasLocalMutations": false
  10414. },
  10415. "value": {
  10416. "val": 6
  10417. },
  10418. "version": 2000
  10419. },
  10420. {
  10421. "createTime": 0,
  10422. "key": "collection/a",
  10423. "options": {
  10424. "hasCommittedMutations": false,
  10425. "hasLocalMutations": false
  10426. },
  10427. "value": {
  10428. "val": 5
  10429. },
  10430. "version": 2000
  10431. }
  10432. ],
  10433. "query": {
  10434. "filters": [
  10435. ],
  10436. "limit": 3,
  10437. "limitType": "LimitToLast",
  10438. "orderBys": [
  10439. [
  10440. "val",
  10441. "desc"
  10442. ]
  10443. ],
  10444. "path": "collection"
  10445. },
  10446. "removed": [
  10447. {
  10448. "createTime": 0,
  10449. "key": "collection/c",
  10450. "options": {
  10451. "hasCommittedMutations": false,
  10452. "hasLocalMutations": false
  10453. },
  10454. "value": {
  10455. "val": 13
  10456. },
  10457. "version": 1000
  10458. }
  10459. ]
  10460. }
  10461. ]
  10462. },
  10463. {
  10464. "clientIndex": 0,
  10465. "drainQueue": true,
  10466. "expectedState": {
  10467. "activeLimboDocs": [
  10468. ],
  10469. "activeTargets": {
  10470. "2": {
  10471. "queries": [
  10472. {
  10473. "filters": [
  10474. ],
  10475. "limit": 3,
  10476. "limitType": "LimitToLast",
  10477. "orderBys": [
  10478. [
  10479. "val",
  10480. "desc"
  10481. ]
  10482. ],
  10483. "path": "collection"
  10484. }
  10485. ],
  10486. "resumeToken": ""
  10487. }
  10488. }
  10489. }
  10490. }
  10491. ]
  10492. }
  10493. }