Skip to content

Send replay entries read callback from background thread, to avoid recursive stack calls - #384

Merged
merlimat merged 1 commit into
apache:masterfrom
merlimat:issue-383-replay-entries
Apr 25, 2017
Merged

merlimat merged 1 commit into
apache:masterfrom
merlimat:issue-383-replay-entries

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Motivation

As reported on #383 there is a potential stack overflow when replaying a large number of entries that are being served from cache. Since the entries are immediately available, the callback is triggered in the same thread and that leads to chain it with the next read call.

Modifications

Trigger replay read callback from background thread to break the stack chain and avoid recursion.

@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Apr 25, 2017
@merlimat merlimat added this to the 1.18 milestone Apr 25, 2017
@merlimat merlimat self-assigned this Apr 25, 2017
@merlimat
merlimat requested a review from rdhabalia April 25, 2017 19:56
@sschepens

Copy link
Copy Markdown
Contributor

seems ok 👍

@rdhabalia rdhabalia 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.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants