Skip to content

Firestore: Fix global refs exhaustion issue in Android#1364

Merged
dconeybe merged 5 commits into
mainfrom
dconeybe/ArenaRef2
Jun 30, 2023
Merged

Firestore: Fix global refs exhaustion issue in Android#1364
dconeybe merged 5 commits into
mainfrom
dconeybe/ArenaRef2

Conversation

@dconeybe

@dconeybe dconeybe commented Jun 27, 2023

Copy link
Copy Markdown
Contributor

Properly fix the the global refs exhaustion issue tracked by firebase/firebase-unity-sdk#569, and reported in firebase/quickstart-unity#1303 and firebase/quickstart-unity#1193 (comment) (Googlers see b/251869890 for more details). Part 1, a partial mitigation, was #1111.

This PR supersedes, and builds upon the work done by @cherylEnkidu in, #1176.

Googlers see go/firestore-cpp-sdk-android-global-ref-exhaustion-bug and b/251869890 for more information.

@dconeybe dconeybe added the tests-requested: quick Trigger a quick set of integration tests. label Jun 27, 2023
@github-actions github-actions Bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jun 27, 2023
@github-actions

github-actions Bot commented Jun 27, 2023

Copy link
Copy Markdown

Integration test with FLAKINESS (succeeded after retry)

Requested by @dconeybe on commit f2f99bb
Last updated: Fri Jun 30 14:35 PDT 2023
View integration test log & download artifacts

Failures Configs
app_check [TEST] [FLAKINESS] [Android] [1/3 os: macos] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
firestore [TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/2 android_device: android_target]
(2 failed tests)  ServerTimestampTest.TestServerTimestampsUsesPreviousValueFromLocalMutation
  SourceTest.GetNonExistingCollectionWhileOnlineWithDefaultGetOptions
gma [TEST] [FLAKINESS] [Android] [1/3 os: macos] [1/2 android_device: android_target]
(1 failed tests)  CRASH/TIMEOUT

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions Bot added the tests: succeeded This PR's integration tests succeeded. label Jun 27, 2023
@firebase-workflow-trigger firebase-workflow-trigger Bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 27, 2023
@dconeybe dconeybe requested a review from wu-hui June 27, 2023 19:12

@wu-hui wu-hui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an impressive PR, I love how organized it is.

I left couple comments on potential improvements in some code comments, but LGTM overall, nice work!

Comment thread firestore/src_java/com/google/firebase/firestore/internal/cpp/ObjectArena.java Outdated
Comment thread firestore/src_java/com/google/firebase/firestore/internal/cpp/ObjectArena.java Outdated
Comment thread firestore/src/jni/arena_ref.h
@dconeybe dconeybe added tests-requested: quick Trigger a quick set of integration tests. and removed tests: succeeded This PR's integration tests succeeded. labels Jun 30, 2023
@github-actions github-actions Bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jun 30, 2023
@dconeybe dconeybe requested a review from wu-hui June 30, 2023 16:08
@dconeybe dconeybe added tests-requested: quick Trigger a quick set of integration tests. and removed tests: in-progress This PR's integration tests are in progress. labels Jun 30, 2023
@github-actions github-actions Bot added tests: in-progress This PR's integration tests are in progress. tests: succeeded This PR's integration tests succeeded. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jun 30, 2023
@firebase-workflow-trigger firebase-workflow-trigger Bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 30, 2023
@dconeybe dconeybe merged commit f2f99bb into main Jun 30, 2023
@dconeybe dconeybe deleted the dconeybe/ArenaRef2 branch June 30, 2023 18:55
@github-actions github-actions Bot added tests: in-progress This PR's integration tests are in progress. tests: succeeded This PR's integration tests succeeded. and removed tests: succeeded This PR's integration tests succeeded. labels Jun 30, 2023
@firebase-workflow-trigger firebase-workflow-trigger Bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 30, 2023
@firebase firebase locked and limited conversation to collaborators Jul 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore tests: succeeded This PR's integration tests succeeded.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants