[
https://issues.apache.org/jira/browse/PHOENIX-5348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16876580#comment-16876580
]
Mehdi Salarkia commented on PHOENIX-5348:
-----------------------------------------
I'm not sure if this related or not. But from what I can see there 3 instances
of:
{code:java}
conn.createStatement().execute("DELETE " + " FROM " +
PhoenixDatabaseMetaData.SYSTEM_TASK_NAME);
{code}
in
{code:java}
org.apache.phoenix.end2end.DropTableWithViewsIT#testDropTableWithChildViews
org.apache.phoenix.end2end.IndexRebuildTaskIT#testIndexRebuildTask
org.apache.phoenix.end2end.index.IndexMetadataIT#testAsyncRebuildAll{code}
This couldn't be thread safe, right?
In addition to that I see
{code:java}
org.apache.phoenix.end2end.index.IndexMetadataIT#testAsyncRebuildAll
{code}
is also flaky which suggest it has to do something with the delete statement,
See
[https://builds.apache.org/job/Phoenix-master/2436/testReport/junit/org.apache.phoenix.end2end.index/IndexMetadataIT/testAsyncRebuildAll/]
{code:java}
org.apache.phoenix.exception.PhoenixIOException:
org.apache.phoenix.exception.PhoenixIOException: R_ASYNCIND_N000601 is disabled.
at
org.apache.phoenix.end2end.index.IndexMetadataIT.getIndexValue(IndexMetadataIT.java:694)
at
org.apache.phoenix.end2end.index.IndexMetadataIT.testAsyncRebuildAll(IndexMetadataIT.java:682)
Caused by: java.util.concurrent.ExecutionException:
org.apache.phoenix.exception.PhoenixIOException: R_ASYNCIND_N000601 is disabled.
at
org.apache.phoenix.end2end.index.IndexMetadataIT.getIndexValue(IndexMetadataIT.java:694)
at
org.apache.phoenix.end2end.index.IndexMetadataIT.testAsyncRebuildAll(IndexMetadataIT.java:682)
Caused by: org.apache.phoenix.exception.PhoenixIOException: R_ASYNCIND_N000601
is disabled.
Caused by: org.apache.phoenix.exception.PhoenixIOException: R_ASYNCIND_N000601
is disabled.
Caused by: org.apache.hadoop.hbase.TableNotEnabledException: R_ASYNCIND_N000601
is disabled.
{code}
What are the intents behind the delete statement above, is this to delete all
the task so this test can run faster?
> IndexRebuildTaskIT.testIndexRebuildTask flaps (Jenkins only)
> ------------------------------------------------------------
>
> Key: PHOENIX-5348
> URL: https://issues.apache.org/jira/browse/PHOENIX-5348
> Project: Phoenix
> Issue Type: Bug
> Reporter: Lars Hofhansl
> Assignee: Gokcen Iskender
> Priority: Critical
> Fix For: 4.15.0, 5.1.0
>
> Attachments: 5348-disable.txt, 5348-v2.txt, 5348.txt
>
>
> This failed in the past four builds:
> {code}
> [ERROR] testIndexRebuildTask(org.apache.phoenix.end2end.IndexRebuildTaskIT)
> Time elapsed: 20.672 s <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
> at
> org.apache.phoenix.end2end.IndexRebuildTaskIT.testIndexRebuildTask(IndexRebuildTaskIT.java:164)
> {code}
> But... It does not fail locally for me.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)