-
Notifications
You must be signed in to change notification settings - Fork 994
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
Conversation
// 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
No description provided.