HADOOP-10500. TestDoAsEffectiveUser fails on JDK7 due to failure to reset proxy user configuration. Contributed by Chris Nauroth.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1587361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8a9eff3919
commit
caa6260d12
@ -385,6 +385,9 @@ Release 2.5.0 - UNRELEASED
|
|||||||
|
|
||||||
HADOOP-10496. Metrics system FileSink can leak file descriptor. (cnauroth)
|
HADOOP-10496. Metrics system FileSink can leak file descriptor. (cnauroth)
|
||||||
|
|
||||||
|
HADOOP-10500. TestDoAsEffectiveUser fails on JDK7 due to failure to reset
|
||||||
|
proxy user configuration. (cnauroth)
|
||||||
|
|
||||||
Release 2.4.1 - UNRELEASED
|
Release 2.4.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -74,8 +74,9 @@ public class TestDoAsEffectiveUser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setMasterConf() {
|
public void setMasterConf() throws IOException {
|
||||||
UserGroupInformation.setConfiguration(masterConf);
|
UserGroupInformation.setConfiguration(masterConf);
|
||||||
|
refreshConf(masterConf);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void configureSuperUserIPAddresses(Configuration conf,
|
private void configureSuperUserIPAddresses(Configuration conf,
|
||||||
@ -297,6 +298,8 @@ public void testRealUserIPNotSpecified() throws IOException {
|
|||||||
.setInstance(new TestImpl()).setBindAddress(ADDRESS).setPort(0)
|
.setInstance(new TestImpl()).setBindAddress(ADDRESS).setPort(0)
|
||||||
.setNumHandlers(2).setVerbose(false).build();
|
.setNumHandlers(2).setVerbose(false).build();
|
||||||
|
|
||||||
|
refreshConf(conf);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
server.start();
|
server.start();
|
||||||
|
|
||||||
@ -379,6 +382,8 @@ public void testRealUserGroupAuthorizationFailure() throws IOException {
|
|||||||
.setInstance(new TestImpl()).setBindAddress(ADDRESS).setPort(0)
|
.setInstance(new TestImpl()).setBindAddress(ADDRESS).setPort(0)
|
||||||
.setNumHandlers(2).setVerbose(false).build();
|
.setNumHandlers(2).setVerbose(false).build();
|
||||||
|
|
||||||
|
refreshConf(conf);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
server.start();
|
server.start();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user