This is an automated email from the ASF dual-hosted git repository. slfan1989 pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new 7ec801fd5c8 MAPREDUCE-7505. Remove obsolete SecurityManager code from TestPipeApplication (#7565) Contributed by Istvan Toth. 7ec801fd5c8 is described below commit 7ec801fd5c8ced33f360dacea5700382766a8bbd Author: Istvan Toth <st...@apache.org> AuthorDate: Sat Apr 12 01:55:20 2025 +0200 MAPREDUCE-7505. Remove obsolete SecurityManager code from TestPipeApplication (#7565) Contributed by Istvan Toth. Signed-off-by: Shilun Fan <slfan1...@apache.org> --- .../java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java index cc3a92031d8..46ac5cacae6 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/pipes/TestPipeApplication.java @@ -272,8 +272,6 @@ public void testSubmitter() throws Exception { Submitter.setJavaPartitioner(conf, partitioner.getClass()); assertEquals(PipesPartitioner.class, (Submitter.getJavaPartitioner(conf))); - // test going to call main method with System.exit(). Change Security - SecurityManager securityManager = System.getSecurityManager(); // store System.out PrintStream oldps = System.out; ByteArrayOutputStream out = new ByteArrayOutputStream(); @@ -330,8 +328,6 @@ public void testSubmitter() throws Exception { + "archives to be unarchived on the compute machines")); } finally { System.setOut(oldps); - // restore - System.setSecurityManager(securityManager); if (psw != null) { // remove password files for (File file : psw) { @@ -381,7 +377,6 @@ public void testSubmitter() throws Exception { } finally { System.setOut(oldps); - System.setSecurityManager(securityManager); } } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org