Skip to content

MINOR: refactor CheckpointFile to improve testability#7391

Merged
ijuma merged 2 commits intoapache:trunkfrom
lbradstreet:refactor-checkpointfile
Feb 3, 2020
Merged

MINOR: refactor CheckpointFile to improve testability#7391
ijuma merged 2 commits intoapache:trunkfrom
lbradstreet:refactor-checkpointfile

Conversation

@lbradstreet
Copy link
Copy Markdown
Contributor

Refactors CheckpointFile such that buffers can be read in lieu of files. This is a relatively simple refactoring as we already create a buffered reader over the checkpoint file.

#6742, which improves the performance of the checkpointing code, requires a similar refactoring of code, although it does go further than this.

Refactors CheckpointFile such that buffers can be read in lieu of files.
This is a relatively simple change as we already create a buffered
reader over the checkpoint file.
@cmccabe
Copy link
Copy Markdown
Contributor

cmccabe commented Sep 25, 2019

Another git clone failure. Maybe we need to open an INFRA jira.

11:56:36 ERROR: Error cloning remote repo 'origin'
11:56:36 Retrying after 10 seconds

@cmccabe
Copy link
Copy Markdown
Contributor

cmccabe commented Sep 25, 2019

LGTM. Thanks, @lbradstreet .

@lbradstreet
Copy link
Copy Markdown
Contributor Author

retest this please

1 similar comment
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Sep 28, 2019

retest this please

@@ -85,36 +127,9 @@ class CheckpointFile[T](val file: File,
lock synchronized {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we remove malformedLineException() in this method, it doesn't seem to be used anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I've removed it.

@lbradstreet lbradstreet requested a review from ijuma October 29, 2019 19:11
Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

LGTM

@ijuma ijuma merged commit eebbae7 into apache:trunk Feb 3, 2020
ijuma added a commit to confluentinc/kafka that referenced this pull request Feb 4, 2020
Conflicts related to version bump in AK, replaced
2.6 with 6.0:
* gradle.properties
* __init__.py
* version.py

* apache-github/trunk:
  KAFKA-9490: Fix generics for Grouped (apache#8028)
  Bump trunk to 2.6.0-SNAPSHOT (apache#8026)
  KAFKA-9027, KAFKA-9028: Convert create/delete acls requests/response to use generated protocol (apache#7725)
  MINOR: Refactor CheckpointFile to improve testability (apache#7391)
  MINOR: updated documentation where RocksDBStore was being used as the sample class for byte[] versus Bytes examples (apache#5884)
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