-
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-6172 Updating VIEW_INDEX_ID column type and ts in Syscat with… #908
Conversation
💔 -1 overall
This message was automatically generated. |
phoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
metaConnection, rowKey, tableName.getBytes()); | ||
LOGGER.info("Updated VIEW_INDEX_ID data type from SMALLINT TO BIGINT."); | ||
} catch (Exception e) { | ||
LOGGER.error("Updating VIEW_INDEX_ID data type failed."); |
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.
Change to : LOGGER.error(" ... ", e)
so we see the actual error too
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.
Or maybe that's not required since you're already catching the exception and logging it inside the updateViewIndexIdColumnDataTypeFromShortToLong() method. Can this method still throw then?
LOGGER.info("Updated VIEW_INDEX_ID data type from SMALLINT TO BIGINT."); | ||
} catch (Exception e) { | ||
LOGGER.error("Updating VIEW_INDEX_ID data type failed."); | ||
|
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.
nit: Remove extra new line
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 after review comments addressed
62acff3
to
8671a95
Compare
💔 -1 overall
This message was automatically generated. |
… a 4.16 upgrade script
8671a95
to
236b258
Compare
… a 4.16 upgrade script