vinothchandar commented on a change in pull request #1289: [HUDI-92] Provide
reasonable names for Spark DAG stages in Hudi.
URL: https://github.com/apache/incubator-hudi/pull/1289#discussion_r375668377
##########
File path:
hudi-client/src/test/java/org/apache/hudi/HoodieClientTestHarness.java
##########
@@ -107,11 +107,12 @@ protected void initSparkContexts(String appName) {
}
/**
- * Initializes the Spark contexts ({@link JavaSparkContext} and {@link
SQLContext}) with a default name
- * <b>TestHoodieClient</b>.
+ * Initializes the Spark contexts ({@link JavaSparkContext} and {@link
SQLContext})
+ * with a default name matching the name of the class.
*/
protected void initSparkContexts() {
- initSparkContexts("TestHoodieClient");
+ String ctxName = this.getClass().getSimpleName() + "#" +
testName.getMethodName();
+ initSparkContexts(ctxName);
Review comment:
can we do this in a single line?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services