Skip to content

Fix bug with GC not scanning root table for file refs#503

Merged
keith-turner merged 2 commits intoapache:masterfrom
keith-turner:fix-gc
May 30, 2018
Merged

Fix bug with GC not scanning root table for file refs#503
keith-turner merged 2 commits intoapache:masterfrom
keith-turner:fix-gc

Conversation

@keith-turner
Copy link
Copy Markdown
Contributor

This bug was introduced in 9feb5e1. In addition to fixing the bug,
specifying the table was made mandatory for the metadata scanner
builder.

The bug was found by MetadataMaxFilesIT

This bug was introduced in 9feb5e1. In addition to fixing the bug,
specifying the table was made mandatory for the metadata scanner
builder.

The bug was found by MetadataMaxFilesIT
@Override
public RangeOptions scanMetadataTable() {
this.table = MetadataTable.NAME;
return this;
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.

I always wonder, in these cases where the implementation for setting a single parameter is trivial, is it better to do what is here, or is it better to do:

    @Override
    public RangeOptions scanMetadataTable() {
      return scanTable(MetadataTable.NAME);
    }

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.

I like that, its shorter. I updated the code.

/**
* Optionally set a table name, defaults to {@value MetadataTable#NAME}
*/
public interface TableOptions {
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.

Does removing extends RangeOptions effectively make this a required parameter?

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.

yes

@keith-turner keith-turner merged commit 780c4ca into apache:master May 30, 2018
@mikewalch mikewalch added v2.0.0 bug This issue has been verified to be a bug. labels Jun 14, 2018
@keith-turner keith-turner deleted the fix-gc branch December 6, 2018 15:17
@ctubbsii ctubbsii added this to the 2.0.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This issue has been verified to be a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants