Skip to content

cherry pick of: fc5f6b0e46ff81302b3e445fed0cdf454c942792#18

Merged
smccauliff merged 2 commits into
linkedin:2.0-lifrom
smccauliff:cherry-pick-timer
Apr 24, 2019
Merged

cherry pick of: fc5f6b0e46ff81302b3e445fed0cdf454c942792#18
smccauliff merged 2 commits into
linkedin:2.0-lifrom
smccauliff:cherry-pick-timer

Conversation

@smccauliff

Copy link
Copy Markdown

MINOR: Add Timer to simplify timeout bookkeeping and use it in the consumer (apache#5087)

We currently do a lot of bookkeeping for timeouts which is both error-prone and distracting. This patch adds a new Timer class to simplify this logic and control unnecessary calls to system time. In particular, this helps with nested timeout operations. The consumer has been updated to use the new class.

Reviewers: Ismael Juma ismael@juma.me.uk, Guozhang Wang wangguoz@gmail.com

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.

Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.

Committer Checklist (excluded from commit message)

  • [ ✔️] Verify design and implementation
  • [ ✔️] Verify test coverage and CI build status
  • [x ] Verify documentation (including upgrade notes)

MINOR: Add Timer to simplify timeout bookkeeping and use it in the consumer (apache#5087)

We currently do a lot of bookkeeping for timeouts which is both error-prone and distracting. This patch adds a new `Timer` class to simplify this logic and control unnecessary calls to system time. In particular, this helps with nested timeout operations. The consumer has been updated to use the new class.

Reviewers: Ismael Juma <ismael@juma.me.uk>, Guozhang Wang <wangguoz@gmail.com>
@smccauliff smccauliff merged commit eae1c4c into linkedin:2.0-li Apr 24, 2019
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.

3 participants