[
https://issues.apache.org/jira/browse/PHOENIX-3113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395491#comment-15395491
]
Loknath Priyatham Teja Singamsetty commented on PHOENIX-3113:
--------------------------------------------------------------
Locally on mac, when specific tests are run they passed and no failures. Not
able to reproduce locally.
mvn -Dtest=Async*,IndexToolIT test
{code}
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m;
support was removed in 8.0
Running org.apache.phoenix.end2end.index.AsyncImmutableIndexIT
Running org.apache.phoenix.end2end.index.AsyncIndexRegularBuildIT
Running org.apache.phoenix.end2end.index.AsyncIndexAutoBuildIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.919 sec - in
org.apache.phoenix.end2end.index.AsyncImmutableIndexIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 55.411 sec - in
org.apache.phoenix.end2end.index.AsyncIndexAutoBuildIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 81.937 sec - in
org.apache.phoenix.end2end.index.AsyncIndexRegularBuildIT
Running org.apache.phoenix.end2end.IndexToolIT
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 771.321 sec -
in org.apache.phoenix.end2end.IndexToolIT
{code}
> Automatic build of async index will happen even if mapreduce.framework.name
> is not set in any configuration
> -----------------------------------------------------------------------------------------------------------
>
> Key: PHOENIX-3113
> URL: https://issues.apache.org/jira/browse/PHOENIX-3113
> Project: Phoenix
> Issue Type: Bug
> Reporter: Ankit Singhal
> Assignee: Loknath Priyatham Teja Singamsetty
> Priority: Blocker
> Fix For: 4.8.0
>
> Attachments: PHOENIX-3113-v4.patch, PHOENIX-3113-v5.patch,
> PHOENIX-3113-v6.patch, PHOENIX-3113_test_wip.patch, phoenix-3113-v2.patch,
> phoenix-3113-v3.patch, phoenix-3113.patch
>
>
> As per below code, we are starting automatic build of async index even if
> mapreduce.framework.name is not set in any of the configuration(because
> conf.get(QueryServices.MAPRED_FRAMEWORK_NAME) will always return LOCAL as a
> default value).
> This may cause problem in the hbase cluster where mapreduce is not deployed
> or this configuration is not set or included in the classpath.
> {code}
> String hbaseClusterDistributedMode =
> conf.get(QueryServices.HBASE_CLUSTER_DISTRIBUTED_ATTRIB);
> String mapredFrameworkName =
> conf.get(QueryServices.MAPRED_FRAMEWORK_NAME);
> if ((hbaseClusterDistributedMode != null &&
> !hbaseClusterDistributedMode.equals(HBASE_CLUSTER_DISTRIBUTED_CONFIG)) ||
> (mapredFrameworkName != null &&
> !mapredFrameworkName.equals(MAPRED_FRAMEWORK_YARN_CONFIG)))
> {
> LOG.info("Enabling Async Index rebuilder");
> AsyncIndexRebuilderTask asyncIndexRebuilderTask = new
> AsyncIndexRebuilderTask(e.getEnvironment());
> // run async index rebuilder task every 10 secs to rebuild any
> newly created async indexes
> executor.scheduleAtFixedRate(asyncIndexRebuilderTask, 10000,
> rebuildIndexTimeInterval, TimeUnit.MILLISECONDS);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)