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-6826 Don't invalidate meta cache if CQSI#getTableRegionLocation and CQSI#getTableRegionLocation encounters IOException #1522
Conversation
…on and CQSI#getTableRegionLocation encounters IOException
Following tests failed:
These tests fails without this patch also. Created PHOENIX-6828 to track them. |
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.
Left one nit, looks good otherwise
LOGGER.error("Exception encountered in getAllTableRegions for table: " | ||
+ table.getNameAsString(), e); |
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.
How about we keep this just above throwing SQLExceptionInfo.Builder(SQLExceptionCode.GET_TABLE_REGIONS_FAIL)
? That way we will not log this twice but rather only once when we actually throw the Exception GET_TABLE_REGIONS_FAIL
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.
Both the exceptions could be different. I think logging both the exceptions should be fine given that this will be in error condition path and not regular code path. @virajjasani WDYT?
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.
Yeah sounds good but from debugging viewpoint, I was thinking maybe in some way if we could differentiate b/ first try and then eventual error after retry? Maybe let's include retry count in log message? I think that would be sufficient to differentiate the first and second attempts (and we can clearly see different root cause for both, if this happens).
Sounds good?
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, pending latest QA
phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
Outdated
Show resolved
Hide resolved
|
Sounds good, this seems good to go. |
…on and CQSI#getTableRegionLocation encounters IOException (#1522)
No description provided.