You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Anoop Sam John (JIRA)" <ji...@apache.org> on 2014/05/24 12:05:02 UTC
[jira] [Comment Edited] (HBASE-10831) IntegrationTestIngestWithACL
is not setting up LoadTestTool correctly
[ https://issues.apache.org/jira/browse/HBASE-10831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008091#comment-14008091 ]
Anoop Sam John edited comment on HBASE-10831 at 5/24/14 10:04 AM:
------------------------------------------------------------------
This is handled by below code in LoadTestTool right?
{code}
String[] args;
if (dataGen instanceof LoadTestDataGeneratorWithACL) {
LOG.info("ACL is on");
if (isSecure(conf)) {
LOG.info("Security is on.");
authnFileName = clazzAndArgs[1];
superUser = clazzAndArgs[2];
userNames = clazzAndArgs[3];
args = Arrays.copyOfRange(clazzAndArgs, 2, clazzAndArgs.length);
........
} else {
superUser = clazzAndArgs[1];
userNames = clazzAndArgs[2];
args = Arrays.copyOfRange(clazzAndArgs, 1, clazzAndArgs.length);
userOwner = User.createUserForTesting(conf, superUser, new String[0]);
}
} else {
args = clazzAndArgs.length == 1 ? new String[0] : Arrays.copyOfRange(clazzAndArgs, 1,
clazzAndArgs.length);
}
dataGen.initialize(args);
{code}
was (Author: anoop.hbase):
This is hanled by below code in LoadTestTool right?
{code}
String[] args;
if (dataGen instanceof LoadTestDataGeneratorWithACL) {
LOG.info("ACL is on");
if (isSecure(conf)) {
LOG.info("Security is on.");
authnFileName = clazzAndArgs[1];
superUser = clazzAndArgs[2];
userNames = clazzAndArgs[3];
args = Arrays.copyOfRange(clazzAndArgs, 2, clazzAndArgs.length);
........
} else {
superUser = clazzAndArgs[1];
userNames = clazzAndArgs[2];
args = Arrays.copyOfRange(clazzAndArgs, 1, clazzAndArgs.length);
userOwner = User.createUserForTesting(conf, superUser, new String[0]);
}
} else {
args = clazzAndArgs.length == 1 ? new String[0] : Arrays.copyOfRange(clazzAndArgs, 1,
clazzAndArgs.length);
}
dataGen.initialize(args);
{code}
> IntegrationTestIngestWithACL is not setting up LoadTestTool correctly
> ---------------------------------------------------------------------
>
> Key: HBASE-10831
> URL: https://issues.apache.org/jira/browse/HBASE-10831
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.98.1
> Reporter: Andrew Purtell
> Assignee: Vandana Ayyalasomayajula
> Fix For: 0.99.0, 0.98.3
>
> Attachments: HBASE-10831_98_v1.patch, HBASE-10831_98_v3.patch, HBASE-10831_98_v4.patch, HBASE-10831_trunk_v2.patch, HBASE-10831_trunk_v3.patch, HBASE-10831_trunk_v4.patch
>
>
> IntegrationTestIngestWithACL is not setting up LoadTestTool correctly.
> {noformat}
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 601.709 sec <<< FAILURE!
> testIngest(org.apache.hadoop.hbase.IntegrationTestIngestWithACL) Time elapsed: 601.489 sec <<< FAILURE!
> java.lang.AssertionError: Failed to initialize LoadTestTool expected:<0> but was:<1>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.apache.hadoop.hbase.IntegrationTestIngest.initTable(IntegrationTestIngest.java:74)
> at org.apache.hadoop.hbase.IntegrationTestIngest.setUpCluster(IntegrationTestIngest.java:69)
> at org.apache.hadoop.hbase.IntegrationTestIngestWithACL.setUpCluster(IntegrationTestIngestWithACL.java:58)
> at org.apache.hadoop.hbase.IntegrationTestBase.setUp(IntegrationTestBase.java:89)
> {noformat}
> Could be related to HBASE-10675?
--
This message was sent by Atlassian JIRA
(v6.2#6252)