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

PHOENIX-5503 IndexTool does not rebuild all the rows #591

Closed
wants to merge 1 commit into from
Closed

PHOENIX-5503 IndexTool does not rebuild all the rows #591

wants to merge 1 commit into from

Conversation

kadirozde
Copy link
Contributor

No description provided.

// Local and non-transactional global indexes to be built on the server side
// It is safe to unset CURRENT_SCN_VALUE for server side rebuilds to make sure that
// all the rows that has been inserted so far will be rebuilt
configuration.unset(PhoenixConfigurationUtil.CURRENT_SCN_VALUE);
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, this configuration change should be inside configureJobForServerBuildIndex() so that any future calls to it do not miss it. I noticed that configureJobForServerBuildIndex() configuration.set() calls, so this would not be out of place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of moving this to configureJobForServerBuildIndex(), I restructured the code in this method to convince you that this is the right place to set or not to set SCN. Also, please consider that we may want to introduce the SCN option in future. In that case, it should be handled here.

Copy link
Contributor

@priyankporwal priyankporwal left a comment

Choose a reason for hiding this comment

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

single code organization comment. lgtm otherwise.

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

+1, thanks @kadirozde

return configureJobForAysncIndex();
}
else {
// Local and non-transactional global indexes to be built on the server side
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is a direct build, then SCN is not set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, if this is a direct build on non-transactional tables then SCN is not set

@kadirozde kadirozde closed this Oct 1, 2019
@kadirozde kadirozde deleted the PHOENIX-5503 branch October 1, 2019 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants