Skip to content

Conversation

@lokiore
Copy link
Owner

@lokiore lokiore commented Apr 22, 2020

No description provided.

<artifactId>junit</artifactId>
<groupId>junit</groupId>
</dependency>
<dependency>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<scope>compile</scope>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you combine both compile and test scope with single dependency tag?

<dependency>
<artifactId>junit</artifactId>
<groupId>junit</groupId>
</dependency>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this junit dependency gets used?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HBaseTestingUtility

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit : Try to see if you can move that code out of src/java and move it in src/test if possible.

// Using randomUUID ensures that multiple clusters can be launched by
// a same test, if it stops & starts them
Path testDir = getDataTestDir("cluster_" + getRandomUUID().toString());
Path testDir = getDataTestDir("cluster_" + HBaseCommonTestingUtility.getRandomUUID().toString());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use it directly as it was happening earlier?

clusterTestDir.deleteOnExit();
}
LOG.info("Created new mini-cluster data directory: " + clusterTestDir + ", deleteOnExit=" + b);
HBaseCommonTestingUtility.LOG.info("Created new mini-cluster data directory: " + clusterTestDir + ", deleteOnExit=" + b);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to add HBaseCommonTestingUtility here?

this.conf.set("fs.defaultFS","file:///");
this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);
LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);
HBaseCommonTestingUtility.LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to create new Logging object instead of using from parent class.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

hbase-it/pom.xml Outdated
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<type>test-jar</type>
<scope>test</scope>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding test scope here now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants