Skip to content

Fix StackOverflowError by deeply nested server-timestamps. #4771

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 2 commits into from
Mar 20, 2023

Conversation

ehsannas
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2023

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

Add the 'main-merge-ack' label to your PR to confirm merging into the main branch is intended.

@ehsannas
Copy link
Contributor Author

Fixes #4702 .

This PR is a slight modification of the original contribution by @sk-takahiro-kurebayashi at PR #4715 which caused some test failures.

@ehsannas ehsannas requested a review from wu-hui March 11, 2023 00:45
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 11, 2023

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 44.16% (8929123) to 44.16% (417cc0d) by -0.01%.

    FilenameBase (8929123)Merge (417cc0d)Diff
    DeleteMutation.java90.48%95.24%+4.76%
    LocalStore.java100.00%99.39%-0.61%
    LruGarbageCollector.java97.20%93.46%-3.74%
    PatchMutation.java100.00%98.39%-1.61%
    ServerTimestamps.java79.17%96.00%+16.83%
    SetMutation.java97.22%94.44%-2.78%
    Value.java40.97%41.22%+0.25%

Test Logs

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2023

Unit Test Results

   158 files   -    614     158 suites   - 614   2m 9s ⏱️ - 32m 4s
1 117 tests  - 3 689  1 101 ✔️  - 3 675  16 💤  -   5  0  - 9 
2 234 runs   - 7 175  2 202 ✔️  - 7 156  32 💤  - 10  0  - 9 

Results for commit a49c608. ± Comparison against base commit 436b03f.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 11, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 11, 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
    Percentile8929123417cc0dDiffSignificant (?)
    p10365 ±35 μs326 ±15 μs-39.3 μs (-10.8%)NO
    p25399 ±50 μs337 ±18 μs-61.6 μs (-15.4%)NO
    p50435 ±56 μs358 ±26 μs-77.6 μs (-17.8%)NO
    p75498 ±68 μs422 ±78 μs-76.0 μs (-15.2%)NO
    p90592 ±154 μs505 ±132 μs-86.3 μs (-14.6%)NO

    20 test runs in comparison
    CommitTest Runs
    8929123
    • 2023-03-17_18:23:50.886966_TRYr
    • 2023-03-17_18:23:50.890397_PWIz
    • 2023-03-17_18:23:50.890585_SsQb
    • 2023-03-17_18:23:50.890593_jRmh
    • 2023-03-17_18:23:50.890600_OJxn
    • 2023-03-17_18:23:50.890610_BemQ
    • 2023-03-17_18:23:50.890617_TQBU
    • 2023-03-17_18:23:50.890623_FMHU
    • 2023-03-17_18:23:50.890629_qixX
    • 2023-03-17_18:23:50.890635_niYw
    417cc0d
    • 2023-03-17_22:19:32.471625_wmUt
    • 2023-03-17_22:19:32.472435_Elmp
    • 2023-03-17_22:19:32.472444_Liwp
    • 2023-03-17_22:19:32.472449_WOQl
    • 2023-03-17_22:19:32.472455_hdil
    • 2023-03-17_22:19:32.472460_VgAN
    • 2023-03-17_22:19:32.472466_JInd
    • 2023-03-17_22:19:32.472471_VyvN
    • 2023-03-17_22:19:32.472476_VHtF
    • 2023-03-17_22:19:32.472481_LJDb
    redfin-30
    Percentile8929123417cc0dDiffSignificant (?)
    p10628 ±30 μs633 ±20 μs+5.22 μs (+0.8%)NO
    p25643 ±35 μs651 ±22 μs+7.90 μs (+1.2%)NO
    p50666 ±43 μs680 ±33 μs+13.4 μs (+2.0%)NO
    p75700 ±57 μs717 ±48 μs+17.5 μs (+2.5%)NO
    p90740 ±75 μs778 ±84 μs+38.2 μs (+5.2%)NO

    20 test runs in comparison
    CommitTest Runs
    8929123
    • 2023-03-17_18:23:50.886966_TRYr
    • 2023-03-17_18:23:50.890397_PWIz
    • 2023-03-17_18:23:50.890585_SsQb
    • 2023-03-17_18:23:50.890593_jRmh
    • 2023-03-17_18:23:50.890600_OJxn
    • 2023-03-17_18:23:50.890610_BemQ
    • 2023-03-17_18:23:50.890617_TQBU
    • 2023-03-17_18:23:50.890623_FMHU
    • 2023-03-17_18:23:50.890629_qixX
    • 2023-03-17_18:23:50.890635_niYw
    417cc0d
    • 2023-03-17_22:19:32.471625_wmUt
    • 2023-03-17_22:19:32.472435_Elmp
    • 2023-03-17_22:19:32.472444_Liwp
    • 2023-03-17_22:19:32.472449_WOQl
    • 2023-03-17_22:19:32.472455_hdil
    • 2023-03-17_22:19:32.472460_VgAN
    • 2023-03-17_22:19:32.472466_JInd
    • 2023-03-17_22:19:32.472471_VyvN
    • 2023-03-17_22:19:32.472476_VHtF
    • 2023-03-17_22:19:32.472481_LJDb
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile8929123417cc0dDiffSignificant (?)
    p10204 ±18 ms194 ±2 ms-9.55 ms (-4.7%)NO
    p25212 ±20 ms200 ±2 ms-12.2 ms (-5.7%)NO
    p50223 ±25 ms207 ±2 ms-15.9 ms (-7.1%)NO
    p75238 ±31 ms216 ±2 ms-21.6 ms (-9.1%)NO
    p90252 ±37 ms226 ±5 ms-26.0 ms (-10.3%)NO

    20 test runs in comparison
    CommitTest Runs
    8929123
    • 2023-03-17_18:23:50.886966_TRYr
    • 2023-03-17_18:23:50.890397_PWIz
    • 2023-03-17_18:23:50.890585_SsQb
    • 2023-03-17_18:23:50.890593_jRmh
    • 2023-03-17_18:23:50.890600_OJxn
    • 2023-03-17_18:23:50.890610_BemQ
    • 2023-03-17_18:23:50.890617_TQBU
    • 2023-03-17_18:23:50.890623_FMHU
    • 2023-03-17_18:23:50.890629_qixX
    • 2023-03-17_18:23:50.890635_niYw
    417cc0d
    • 2023-03-17_22:19:32.471625_wmUt
    • 2023-03-17_22:19:32.472435_Elmp
    • 2023-03-17_22:19:32.472444_Liwp
    • 2023-03-17_22:19:32.472449_WOQl
    • 2023-03-17_22:19:32.472455_hdil
    • 2023-03-17_22:19:32.472460_VgAN
    • 2023-03-17_22:19:32.472466_JInd
    • 2023-03-17_22:19:32.472471_VyvN
    • 2023-03-17_22:19:32.472476_VHtF
    • 2023-03-17_22:19:32.472481_LJDb
    redfin-30
    Percentile8929123417cc0dDiffSignificant (?)
    p10230 ±5 ms252 ±4 ms+22.5 ms (+9.8%)MAYBE
    p25236 ±5 ms258 ±4 ms+22.6 ms (+9.6%)MAYBE
    p50243 ±4 ms265 ±3 ms+22.0 ms (+9.1%)YES
    p75251 ±4 ms273 ±4 ms+21.9 ms (+8.7%)YES
    p90259 ±5 ms283 ±5 ms+24.0 ms (+9.3%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    8929123
    • 2023-03-17_18:23:50.886966_TRYr
    • 2023-03-17_18:23:50.890397_PWIz
    • 2023-03-17_18:23:50.890585_SsQb
    • 2023-03-17_18:23:50.890593_jRmh
    • 2023-03-17_18:23:50.890600_OJxn
    • 2023-03-17_18:23:50.890610_BemQ
    • 2023-03-17_18:23:50.890617_TQBU
    • 2023-03-17_18:23:50.890623_FMHU
    • 2023-03-17_18:23:50.890629_qixX
    • 2023-03-17_18:23:50.890635_niYw
    417cc0d
    • 2023-03-17_22:19:32.471625_wmUt
    • 2023-03-17_22:19:32.472435_Elmp
    • 2023-03-17_22:19:32.472444_Liwp
    • 2023-03-17_22:19:32.472449_WOQl
    • 2023-03-17_22:19:32.472455_hdil
    • 2023-03-17_22:19:32.472460_VgAN
    • 2023-03-17_22:19:32.472466_JInd
    • 2023-03-17_22:19:32.472471_VyvN
    • 2023-03-17_22:19:32.472476_VHtF
    • 2023-03-17_22:19:32.472481_LJDb

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

@wu-hui wu-hui assigned ehsannas and unassigned wu-hui Mar 15, 2023
@ehsannas ehsannas assigned wu-hui and unassigned ehsannas Mar 17, 2023
@wu-hui wu-hui assigned ehsannas and unassigned wu-hui Mar 20, 2023
@ehsannas ehsannas merged commit c989076 into master Mar 20, 2023
@ehsannas ehsannas deleted the ehsann/nested-server-timestamps branch March 20, 2023 18:11
@firebase firebase locked and limited conversation to collaborators Apr 20, 2023
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.

3 participants