Skip to content

Making methods in core.Query that memoize results thread safe. #5099

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

Merged
merged 4 commits into from
Jun 26, 2023

Conversation

MarkDuckworth
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 22, 2023

Release note changes

The following release notes were modified. Please ensure they look correct.

Release Notes
firebase-firestore
### {{firestore}} version 24.6.2 {: #firestore_v24-6-2}

* {{feature}} Expose MultiDb support in API. GitHub [#4015](//github.com/firebase/firebase-android-sdk/issues/4015){: .external}

* {{fixed}} Fixed a thread interference issue that may lead to a ConcurrentModificationException.
    (GitHub [#5091](//github.com/firebase/firebase-android-sdk/issues/5091){: .external})

#### {{firestore}} Kotlin extensions version 24.6.2 {: #firestore-ktx_v24-6-2}

The Kotlin extensions library transitively includes the updated
`firebase-firestore` library. The Kotlin extensions library has no additional
updates.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 22, 2023

Unit Test Results

   162 files   -    632     162 suites   - 632   2m 27s ⏱️ - 32m 43s
1 164 tests  - 3 751  1 148 ✔️  - 3 745  16 💤  -   5  0  - 1 
2 328 runs   - 7 411  2 296 ✔️  - 7 400  32 💤  - 10  0  - 1 

Results for commit 5d0503a. ± Comparison against base commit d028b21.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 22, 2023

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 44.34% (d028b21) to 44.33% (a5abb56) by -0.01%.

    FilenameBase (d028b21)Merge (a5abb56)Diff
    DeleteMutation.java90.48%95.24%+4.76%
    LruGarbageCollector.java97.27%93.64%-3.64%
    SetMutation.java97.22%94.44%-2.78%

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 22, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 22, 2023

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Notes

Startup Times

  • fire-fst

    DeviceStatisticsDistributions
    oriole-32
    Percentiled028b21a5abb56DiffSignificant (?)
    p10327 ±14 μs326 ±10 μs-972 ns (-0.3%)NO
    p25346 ±20 μs338 ±16 μs-7.55 μs (-2.2%)NO
    p50383 ±53 μs359 ±35 μs-23.8 μs (-6.2%)NO
    p75468 ±99.7 μs399 ±71 μs-69.4 μs (-14.8%)NO
    p90565 ±107 μs501 ±139 μs-63.9 μs (-11.3%)NO

    20 test runs in comparison
    CommitTest Runs
    d028b21
    • 2023-06-22_21:48:32.026327_GIyP
    • 2023-06-22_21:48:32.028893_MGIt
    • 2023-06-22_21:48:32.028903_QRJT
    • 2023-06-22_21:48:32.028909_fxKd
    • 2023-06-22_21:48:32.028918_QMBn
    • 2023-06-22_21:48:32.028924_Mrss
    • 2023-06-22_21:48:32.028929_hNZT
    • 2023-06-22_21:48:32.028934_aiel
    • 2023-06-22_21:48:32.028939_HHLN
    • 2023-06-22_21:48:32.028944_znfg
    a5abb56
    • 2023-06-23_22:33:49.925759_SlUv
    • 2023-06-23_22:33:49.929062_EIOe
    • 2023-06-23_22:33:49.929072_qmqh
    • 2023-06-23_22:33:49.929080_nsjO
    • 2023-06-23_22:33:49.929086_VXxN
    • 2023-06-23_22:33:49.929092_oTDv
    • 2023-06-23_22:33:49.929097_UUyM
    • 2023-06-23_22:33:49.929102_vESK
    • 2023-06-23_22:33:49.929107_Lpye
    • 2023-06-23_22:33:49.929113_vhST
    redfin-30
    Percentiled028b21a5abb56DiffSignificant (?)
    p10634 ±25 μs643 ±18 μs+8.63 μs (+1.4%)NO
    p25654 ±34 μs655 ±22 μs+1.25 μs (+0.2%)NO
    p50680 ±44 μs676 ±29 μs-4.18 μs (-0.6%)NO
    p75714 ±60 μs703 ±37 μs-10.9 μs (-1.5%)NO
    p90766 ±93 μs753 ±85 μs-13.3 μs (-1.7%)NO

    20 test runs in comparison
    CommitTest Runs
    d028b21
    • 2023-06-22_21:48:32.026327_GIyP
    • 2023-06-22_21:48:32.028893_MGIt
    • 2023-06-22_21:48:32.028903_QRJT
    • 2023-06-22_21:48:32.028909_fxKd
    • 2023-06-22_21:48:32.028918_QMBn
    • 2023-06-22_21:48:32.028924_Mrss
    • 2023-06-22_21:48:32.028929_hNZT
    • 2023-06-22_21:48:32.028934_aiel
    • 2023-06-22_21:48:32.028939_HHLN
    • 2023-06-22_21:48:32.028944_znfg
    a5abb56
    • 2023-06-23_22:33:49.925759_SlUv
    • 2023-06-23_22:33:49.929062_EIOe
    • 2023-06-23_22:33:49.929072_qmqh
    • 2023-06-23_22:33:49.929080_nsjO
    • 2023-06-23_22:33:49.929086_VXxN
    • 2023-06-23_22:33:49.929092_oTDv
    • 2023-06-23_22:33:49.929097_UUyM
    • 2023-06-23_22:33:49.929102_vESK
    • 2023-06-23_22:33:49.929107_Lpye
    • 2023-06-23_22:33:49.929113_vhST
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentiled028b21a5abb56DiffSignificant (?)
    p10192 ±4 ms197 ±4 ms+4.41 ms (+2.3%)NO
    p25197 ±5 ms202 ±3 ms+4.57 ms (+2.3%)NO
    p50204 ±4 ms210 ±3 ms+5.51 ms (+2.7%)NO
    p75212 ±5 ms219 ±4 ms+6.39 ms (+3.0%)NO
    p90221 ±6 ms232 ±6 ms+11.0 ms (+5.0%)NO

    20 test runs in comparison
    CommitTest Runs
    d028b21
    • 2023-06-22_21:48:32.026327_GIyP
    • 2023-06-22_21:48:32.028893_MGIt
    • 2023-06-22_21:48:32.028903_QRJT
    • 2023-06-22_21:48:32.028909_fxKd
    • 2023-06-22_21:48:32.028918_QMBn
    • 2023-06-22_21:48:32.028924_Mrss
    • 2023-06-22_21:48:32.028929_hNZT
    • 2023-06-22_21:48:32.028934_aiel
    • 2023-06-22_21:48:32.028939_HHLN
    • 2023-06-22_21:48:32.028944_znfg
    a5abb56
    • 2023-06-23_22:33:49.925759_SlUv
    • 2023-06-23_22:33:49.929062_EIOe
    • 2023-06-23_22:33:49.929072_qmqh
    • 2023-06-23_22:33:49.929080_nsjO
    • 2023-06-23_22:33:49.929086_VXxN
    • 2023-06-23_22:33:49.929092_oTDv
    • 2023-06-23_22:33:49.929097_UUyM
    • 2023-06-23_22:33:49.929102_vESK
    • 2023-06-23_22:33:49.929107_Lpye
    • 2023-06-23_22:33:49.929113_vhST
    redfin-30
    Percentiled028b21a5abb56DiffSignificant (?)
    p10230 ±6 ms253 ±5 ms+22.9 ms (+9.9%)MAYBE
    p25237 ±5 ms259 ±5 ms+22.0 ms (+9.3%)MAYBE
    p50244 ±5 ms267 ±5 ms+22.4 ms (+9.2%)MAYBE
    p75252 ±6 ms275 ±5 ms+23.8 ms (+9.4%)MAYBE
    p90261 ±7 ms289 ±4 ms+27.8 ms (+10.6%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    d028b21
    • 2023-06-22_21:48:32.026327_GIyP
    • 2023-06-22_21:48:32.028893_MGIt
    • 2023-06-22_21:48:32.028903_QRJT
    • 2023-06-22_21:48:32.028909_fxKd
    • 2023-06-22_21:48:32.028918_QMBn
    • 2023-06-22_21:48:32.028924_Mrss
    • 2023-06-22_21:48:32.028929_hNZT
    • 2023-06-22_21:48:32.028934_aiel
    • 2023-06-22_21:48:32.028939_HHLN
    • 2023-06-22_21:48:32.028944_znfg
    a5abb56
    • 2023-06-23_22:33:49.925759_SlUv
    • 2023-06-23_22:33:49.929062_EIOe
    • 2023-06-23_22:33:49.929072_qmqh
    • 2023-06-23_22:33:49.929080_nsjO
    • 2023-06-23_22:33:49.929086_VXxN
    • 2023-06-23_22:33:49.929092_oTDv
    • 2023-06-23_22:33:49.929097_UUyM
    • 2023-06-23_22:33:49.929102_vESK
    • 2023-06-23_22:33:49.929107_Lpye
    • 2023-06-23_22:33:49.929113_vhST

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

@wu-hui wu-hui assigned MarkDuckworth and unassigned wu-hui Jun 23, 2023
@wu-hui wu-hui removed their assignment Jun 26, 2023
@MarkDuckworth MarkDuckworth merged commit e3dc1ad into master Jun 26, 2023
@MarkDuckworth MarkDuckworth deleted the markduckworth/core-query-thread-fix branch June 26, 2023 22:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants