[
https://issues.apache.org/jira/browse/PHOENIX-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881157#comment-16881157
]
Mihir Monani commented on PHOENIX-5327:
---------------------------------------
{quote}As of now, we are running all the queries(including all ddl) in multiple
runs and hence, facing the issue of duplicate TABLE/INDEX.
{quote}
Existing code already make sure that preDDL/postDDL are only executed once,
only Data load/query are executed in multiple threads. Issue of
"TableAlredyExists/Duplicate" index can be resolved if we add "CREATE INDEX IF
NOT EXISTS" in scenario file for Indexes.
Everything else looks good.
Also don't include JAR version changes in this patch unless they are required
for this ITs.
Can you submit new patch ? [~vjasani]
> PherfMainIT fails with duplicate TABLE/INDEX.
> ---------------------------------------------
>
> Key: PHOENIX-5327
> URL: https://issues.apache.org/jira/browse/PHOENIX-5327
> Project: Phoenix
> Issue Type: Test
> Affects Versions: 4.15.0, 5.1.0
> Reporter: Lars Hofhansl
> Assignee: Viraj Jasani
> Priority: Major
> Fix For: 4.15.1, 5.1.1
>
> Attachments: PHOENIX-5327.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code:java}
> INFO] Running org.apache.phoenix.pherf.PherfMainIT
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 54.221 s <<< FAILURE! - in org.apache.phoenix.pherf.PherfMainIT
> [ERROR] testPherfMain(org.apache.phoenix.pherf.PherfMainIT) Time elapsed:
> 10.455 s <<< ERROR!
> java.util.concurrent.ExecutionException:
> org.apache.phoenix.schema.TableAlreadyExistsException: ERROR 1013 (42M04):
> Table already exists. tableName=PHERF.IDX_DIVISION
> at org.apache.phoenix.pherf.PherfMainIT.testPherfMain(PherfMainIT.java:42)
> Caused by: org.apache.phoenix.schema.TableAlreadyExistsException: ERROR 1013
> (42M04): Table already exists. tableName=PHERF.IDX_DIVISION
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)