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-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/SubjectUtil.java
Copy file name to clipboardExpand all lines: hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/concurrent/TestSubjectPropagation.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -147,9 +147,12 @@ public void run() {
147
147
});
148
148
149
149
if (SubjectUtil.THREAD_INHERITS_SUBJECT) {
150
+
150
151
assertEquals(parentSubject, childSubject);
151
152
} else {
152
153
// This is the behaviour that breaks Hadoop authorization
154
+
// This would break for Java 22-23 if the SecurityManager would be enabled,
155
+
// but we don't run tests with the SecurityManager enabled.
153
156
assertNull(childSubject);
154
157
}
155
158
}
@@ -179,6 +182,8 @@ public void run() {
179
182
assertEquals(parentSubject, childSubject);
180
183
} else {
181
184
// This is the behaviour that breaks Hadoop authorization
185
+
// This would break for Java 22-23 if the SecurityManager would be enabled,
186
+
// but we don't run tests with the SecurityManager enabled.
0 commit comments