You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/test/java/org/apache/hadoop/yarn/service/TestServiceAM.java
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -480,9 +480,17 @@ public void testIPChange() throws TimeoutException,
480
480
am.stop();
481
481
}
482
482
483
-
// Test to verify that the containers are released and the
484
-
// component instance is added to the pending queue when building the launch
485
-
// context fails.
483
+
/**
484
+
This test verifies that the containers are released and the
485
+
component instance is added to the pending queue when building the launch
486
+
context fails.
487
+
Here, we intentionally have an artifact that doesn't have an id.
488
+
This will cause TarballProviderService.processArtifact
489
+
to throw an IllegalArgumentException because the Path object is
490
+
constructed from the id of the artifact.
491
+
In case the id is set to null or unset so it is effectively null,
492
+
Path.checkPathArg throws an IllegalArgumentException.
0 commit comments