Skip to content

fix(logging): show new entries when tens of thousands were logged - #2440

Open
DerDreschner wants to merge 1 commit into
masterfrom
fix/poll-many-entries-chromium
Open

DerDreschner wants to merge 1 commit into
masterfrom
fix/poll-many-entries-chromium

Conversation

@DerDreschner

Copy link
Copy Markdown
Member

This fixes the stuck Chromium from #2439. The other problems there need the API change proposed in the ticket.

New log entries were added with one splice() call that gets each entry as an argument. From about 60,000 new entries between two polls, Chromium runs out of stack. The live view then shows no new entries, and every poll downloads all of them again (14 MB for 70,000 entries). Firefox isn't affected.

They're now added with concat(), which gets them as one list. The same lines are on stable33 to stable35.

Testing

  • vitest with 100,000 new entries in both places that add polled entries (the app itself only uses the polling one). Both tests fail with splice().
  • On a live instance, with 70,000 and 99,990 new entries in Chromium 156 and 70,000 in Firefox: every entry is listed once and in order, and later polls continue. With master, Chromium keeps showing the old entries.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (Claude Code, claude-opus-5-5)

New log entries were added with one splice() call that gets each
entry as an argument. Chromium runs out of stack from about 60,000
entries. The live view then stopped showing new entries, and every
poll downloaded all of them again.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant