Skip to content

Commit 15d47bc

Browse files
committed
testing_hooks_util.ts: REVERT ME: add _logWarn() to existenceFilterMismatchInfoFromRaw() to help debug this error:
``` TypeError: Cannot read properties of undefined (reading 'existenceFilter') ``` https://github.com/firebase/firebase-js-sdk/actions/runs/4355588983/jobs/7612412525
1 parent 9bfdcc2 commit 15d47bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/firestore/test/integration/util/testing_hooks_util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { _TestingHooks as TestingHooks } from './firebase_export';
18+
import { _TestingHooks as TestingHooks, _logWarn } from './firebase_export';
1919

2020
/**
2121
* Captures all existence filter mismatches in the Watch 'Listen' stream that
@@ -105,6 +105,10 @@ export interface ExistenceFilterBloomFilter {
105105
function existenceFilterMismatchInfoFromRaw(
106106
raw: RawExistenceFilterMismatchInfo
107107
): ExistenceFilterMismatchInfo {
108+
_logWarn(
109+
'zzyzx existenceFilterMismatchInfoFromRaw() start; raw:',
110+
JSON.stringify(raw, null, 2)
111+
);
108112
return {
109113
actualCount: raw.actualCount,
110114
expectedCount: raw.change.existenceFilter.count,

0 commit comments

Comments
 (0)