Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firestore_client.cc: increase the kRegularBackfillDelay from 1ms to 1000ms #10170

Merged
merged 2 commits into from Sep 5, 2022

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Sep 3, 2022

Fix CPU thrashing from the index backfiller, which was being scheduled for execution every 1ms. The fix in this PR is to increase the scheduling period to 1000ms.

This also works around an intermittent crash on Firestore's shutdown, which cause the integration tests in the firebase-cpp-sdk to crash.

This bug was introduced in 9.5.0 by #10021.

Googlers see b/244656664 for details.

Fixes #10168

dconeybe added a commit to firebase/firebase-cpp-sdk that referenced this pull request Sep 3, 2022
@google-oss-bot
Copy link

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestore.framework

    Overall coverage changed from 88.48% (96450bd) to 88.49% (df6e49b) by +0.00%.

    FilenameBase (96450bd)Merge (df6e49b)Diff
    task.cc93.91%94.78%+0.87%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/imzvwdjzeO.html

@dconeybe dconeybe merged commit 37c6f48 into master Sep 5, 2022
@dconeybe dconeybe deleted the dconeybe/Backfiller1msExecutionPeriodFix branch September 5, 2022 02:24
akmarinov pushed a commit to combyne/firebase-ios-sdk that referenced this pull request Sep 29, 2022
…nto inapp-customization

* 'release/9.6.0' of github.com:combyne/firebase-ios-sdk: (116 commits)
  Fix typo (firebase#10196)
  Fix zip bloat issue (firebase#10183)
  Add All and Infrastructure as product options (firebase#10185)
  [v9.6.0] Update CHANGELOGs for macOS keychain fix (firebase#10181)
  Add API tests for Analytics.sessionID() (firebase#10178)
  [CoreInternal] Add explicit generics typing for Array.Index usage (2) (firebase#10176)
  [Infra] Commits should exclude .build/ folder from nested dirs (firebase#10180)
  [Messaging] macOS keychain auth prompt fix (firebase#10166)
  Analytics 9.6.0 (firebase#10177)
  Fix index backfilling frequency (firebase#10173)
  Add protos for COUNT (firebase#10175)
  Fix name collision with "result" in pretty printing logic in generated proto code. (firebase#10169)
  firestore_client.cc: increase the kRegularBackfillDelay from 1ms to 1000ms (firebase#10170)
  [Core] Link WatchKit for watchOS (firebase#10157)
  [Core] Support watchOS lifecycle notifications (firebase#10112)
  Move zip and prerelease nightlies early (firebase#10152)
  Update versions for Release 9.6.0 (firebase#10145)
  [MLModelDownloader] Disable keychain-dependent tests on macCatalyst and macOS (firebase#10148)
  [AppCheck] Disable tests that use keychain (firebase#10146)
  Fix priority inversion issue exposed by Xcode 14 (firebase#10144)
  ...
@firebase firebase locked and limited conversation to collaborators Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] FireStore keep on using CPU
3 participants