yihua commented on code in PR #12358:
URL: https://github.com/apache/hudi/pull/12358#discussion_r1901115537
##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/common/TestHoodieSparkEngineContext.java:
##########
@@ -48,4 +48,16 @@ void testAddRemoveCachedDataIds() {
assertEquals(Arrays.asList(1, 2, 3),
context.removeCachedDataIds(HoodieDataCacheKey.of(basePath, instantTime)));
assertTrue(context.getCachedDataIds(HoodieDataCacheKey.of(basePath,
instantTime)).isEmpty());
}
+
+ @Test
+ void testSetJobStatus() {
+ // Test data
+ String activeModule = "TestModule";
+ String activityDescription = "Running test operation";
+ String expectedJobDescription = String.format("%s:%s", activeModule,
activityDescription);
Review Comment:
Let's add more validation before and after calling `context.setJobStatus`,
on both `spark.jobGroup.id` and `spark.job.description` properties.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]