Skip to content

status: suppress status_trace/status_debug messages if queue too long.#2614

Merged
cdecker merged 1 commit intoElementsProject:masterfrom
rustyrussell:reduce-trace-spam
May 3, 2019
Merged

status: suppress status_trace/status_debug messages if queue too long.#2614
cdecker merged 1 commit intoElementsProject:masterfrom
rustyrussell:reduce-trace-spam

Conversation

@rustyrussell
Copy link
Contributor

We can be spammy, which is good for tests, but bad for our simple message queue.
This avoids breaking our tests but also avoid the worst case (1M entries and counting!)
for gossip status messages in the case where we're syncing a large peer.

[ This is less invasive than #2610 but in some ways less elegant. Fixing those tests was non-trivial, and would have involved doing IO tracing for all of them... ]

Closes: #2610

We can be spammy, which is good for tests, but bad for our simple message queue.
This avoids breaking our tests but also avoid the worst case (1M entries and counting!)
for gossip status messages in the case where we're syncing a large peer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@cdecker
Copy link
Member

cdecker commented May 3, 2019

I had a partial fix for the tests that was polling for channel state changes rather than waiting for the log lines, but yeah, for some tests it proved to be more difficult than I expected.

Might still be worth it some time later :-)

Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 196bf68

@cdecker cdecker merged commit ec658c1 into ElementsProject:master May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants