ayushtkn commented on code in PR #539:
URL: https://github.com/apache/tez/pull/539#discussion_r4410391350


##########
tez-dag/src/test/java/org/apache/tez/dag/history/utils/TestDAGUtils.java:
##########
@@ -222,4 +223,48 @@ public void testConvertDAGPlanToATSMap() throws 
IOException, JSONException {
     }
   }
 
+  @Test
+  public void testConvertConfigurationToATSMapRedactsSecrets() {
+    // Defaults must load: ConfigRedactor's fallback pattern is narrower than
+    // core-default.xml and misses fs.s3a.session.token.
+    Configuration conf = new Configuration();
+    conf.set("tez.am.dag.scheduler.class",
+        "org.apache.tez.dag.app.dag.impl.DAGSchedulerNaturalOrder");

Review Comment:
   can we rather than hardcoding, using the Class.getName() and for the configs 
as well, the Config variables



-- 
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]

Reply via email to