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-5104: breaks client backwards compatibility #544

Closed
wants to merge 1 commit into from

Conversation

m2je
Copy link

@m2je m2je commented Jul 15, 2019

Fixing by adding a new connection property "phoenix.index.longViewIndex.enabled" which is by default false.
Clients can set this property to true to be able to use longViewIndexes on phoenix 4.x version. This feature is by default avaiable to phoenix version 5 and above.

Copy link
Contributor

@twdsilva twdsilva left a comment

Choose a reason for hiding this comment

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

If we have a client older than 4.15 it will not be able to decode the viewIndexId if the "phoenix.index.longViewIndex.enabled" is set to true. Until all the clients have been upgraded to 4.15 we will have to set "phoenix.index.longViewIndex.enabled" to false.

* @return
*/
private PDataType getViewIndexDataType() throws SQLException {
boolean supportsLongViewIndexId = "true".equalsIgnoreCase(connection.getClientInfo(LONG_VIEW_INDEX_ENABLED_ATTRIB));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a default value for LONG_VIEW_INDEX_ENABLED_ATTRIB to QueryServicesOptions and set it to false and look it up similar to :

boolean asyncIndexBuildEnabled = connection.getQueryServices().getProps().getBoolean(
                QueryServices.INDEX_ASYNC_BUILD_ENABLED,
                QueryServicesOptions.DEFAULT_INDEX_ASYNC_BUILD_ENABLED);

Copy link
Author

Choose a reason for hiding this comment

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

Done

@chrajeshbabu
Copy link
Contributor

bq. This feature is by default avaiable to phoenix version 5 and above.
@m2je this should be applicable to Phoenix 5 also right? because 5.0.0 clients have backward compatibility issue with latest versions of 5.x

Fixing by adding a new connection property "phoenix.index.longViewIndex.enabled" which is by default false.
Clients can set this property to true to be able to use longViewIndexes.
@m2je m2je force-pushed the PHOENIX-5104-4.x-HBase-1.4 branch from 89404a4 to 3334bc7 Compare July 22, 2019 17:49
@m2je
Copy link
Author

m2je commented Jul 22, 2019

bq. This feature is by default avaiable to phoenix version 5 and above.
@m2je this should be applicable to Phoenix 5 also right? because 5.0.0 clients have backward compatibility issue with latest versions of 5.x

@chrajeshbabu Updated the comment. Also will open a same PR for the master branch.

@m2je
Copy link
Author

m2je commented Jul 22, 2019

Closing in favor of #548

@m2je m2je closed this Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants