Skip to content

KAFKA-13092: Perf regression in LISR requests#11065

Merged
junrao merged 1 commit intoapache:3.0from
jolshan:KAFKA-13092-3.0
Jul 15, 2021
Merged

KAFKA-13092: Perf regression in LISR requests#11065
junrao merged 1 commit intoapache:3.0from
jolshan:KAFKA-13092-3.0

Conversation

@jolshan
Copy link
Copy Markdown
Member

@jolshan jolshan commented Jul 15, 2021

cherry-pick of 584213e

Only conflicts were in Log.scala where the new flush code was near some log refactor changes in trunk. I kept the code the same and only added the flush call.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

…artition.metadata file (apache#11056)

After noticing increased LISR times, we discovered a lot of time was spent synchronously flushing the partition metadata file. This PR changes the code so we asynchronously flush the files.

We ensure files are flushed before appending, renaming or closing the log to ensure we have the partition metadata information on disk. Three new tests have been added to address these cases.

Reviewers:  Lucas Bradstreet <lucas@confluent.io>, Jun Rao <junrao@gmail.com>
Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

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

@jolshan : Thanks for the PR. LGTM. Waiting for the tests to finish.

@junrao junrao merged commit be7dc47 into apache:3.0 Jul 15, 2021
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