Skip to content
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

Producer logging tweaks #429

Merged
merged 1 commit into from
Apr 17, 2015
Merged

Producer logging tweaks #429

merged 1 commit into from
Apr 17, 2015

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Apr 17, 2015

  • in leaderDispatcher, make the topic/partition part of the initial log slug for
    convenience and consistency
  • don't log on every switch from normal to flushing in the loop, just the first,
    since 99% of the time we burn right through them all and we only need one line
    to indicate that, not 5 or 10
  • similarly, don't log on every switch from flushing to normal, just do so if
    the highWatermark is 0 and it breaks the loop - in combination with the
    previous change we end up with just an entry and exit log for the loop, rather
    than two logs per iteration
  • in messageAggregator, make the broker ID part of the slug (it wasn't even
    logged before)

@Shopify/kafka

- in leaderDispatcher, make the topic/partition part of the initial log slug for
  convenience and consistency
- don't log on every switch from normal to flushing in the loop, just the first,
  since 99% of the time we burn right through them all and we only need one line
  to indicate that, not 5 or 10
- similarly, don't log on every switch from flushing to normal, just do so if
  the highWatermark is 0 and it breaks the loop - in combination with the
  previous change we end up with just an entry and exit log for the loop, rather
  than two logs per iteration
- in messageAggregator, make the broker ID part of the slug (it wasn't even
  logged before)
@wvanbergen
Copy link
Contributor

🆒

eapache added a commit that referenced this pull request Apr 17, 2015
@eapache eapache merged commit 4b2a9ef into master Apr 17, 2015
@eapache eapache deleted the producer-loggin branch April 17, 2015 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants