-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-6711 Add support of skipping the system tables existence chec… #1437
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
Conversation
ankitsinghal
left a comment
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.
@chrajeshbabu , looks like the PR is not complete and missing some changes from your local?
...re/src/it/java/org/apache/phoenix/iterate/MinimalQueryPlanInvolvedTableResultIteratorIT.java
Outdated
Show resolved
Hide resolved
…k during connection initialisation and create new table result iterator which doesn't require fetch meta data of table(Rajeshbabu)
phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionlessQueryServicesImpl.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/query/SkipSystemTablesExistenceCheckIT.java
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java
Outdated
Show resolved
Hide resolved
| this.scan = scan; | ||
| this.plan = null; | ||
| this.scanMetricsHolder = scanMetricsHolder; | ||
| htable = mutationState.getHTable(tableName, transactionalTable, indexTable, immutableRowsEnabled);; |
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.
| htable = mutationState.getHTable(tableName, transactionalTable, indexTable, immutableRowsEnabled);; | |
| htable = mutationState.getHTable(tableName, transactionalTable, indexTable, immutableRowsEnabled); |
phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java
Outdated
Show resolved
Hide resolved
|
Skipping all the upgrade stuff and safety checks is fine, however AFAICT this also skips initialization of the CQSI global connection object, and updating GLOBAL_QUERY_SERVICES_COUNTER. Are you sure that won't cause problems ? |
|
Skipping all the upgrade stuff and safety checks is fine, however AFAICT this also skips initialization the CQSI global connection object, and updating GLOBAL_QUERY_SERVICES_COUNTER. Are you sure that won't cause problems ? |
|
Deleted MinimalQueryPlanInvolvedTableResultIteratorIT but not sure why it's picking again. |
Am double checking it @stoty. We can move the checking the config after hbase connection creation if that didn't work. |
Yes, I think that would be a better idea. |
@stoty moved the config check post hbase connection opening and made the test case more realistic. |
joshelser
left a comment
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.
LGTM. Big simplification which is nice, plus the test.
I tried to run through the build. I saw refCount failures for DateTimeIT and IndexToolForDeleteBeforeRebuildIT, but on re-run these passed. I'm guessing it's probably some (known) flakiness.
|
Thanks for reviews @joshelser, @ankitsinghal |
…k during connection initialisation