-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-18302. Remove WhiteBox in hadoop-common module. #4457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
401ae5a
HADOOP-18302. Remove WhiteBox in hadoop-commmon module.
9c382a2
HADOOP-18302. Remove WhiteBox in hadoop-commmon module.
d101a55
HADOOP-18302. Remove WhiteBox in hadoop-common module.
5918769
HADOOP-18302. Remove WhiteBox in hadoop-common module.
24ac36b
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 a2f7bdb
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 e30456b
HADOOP-18302. Fix CheckStyle.
185c165
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 891427d
HADOOP-18302. Remove WhiteBox in hadoop-common module.
536c143
HADOOP-18302. Remove WhiteBox in hadoop-common module.
2625e1d
HADOOP-18302. Remove WhiteBox in hadoop-common module.
2594eb0
HADOOP-18302. Fix CheckStyle.
2eab504
HADOOP-18302. Fix CheckStyle.
89f4e9c
HADOOP-18302. Remove WhiteBox in hadoop-common module.
3ad32d1
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 7964f1f
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 f378b1c
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 6cf3afd
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 23a8edf
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 bcbafea
YARN-18302. Fix CheckStyle.
bcaa569
YARN-18302. Fix CheckStyle.
fa7bbfb
YARN-18302. Fix CodeStyle.
d835bfe
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 839dc70
HADOOP-18302. Fix CheckStyle.
57ecde4
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 bff5a07
HADOOP-18302. Fix CheckStyle.
27fd624
HADOOP-18302. Fix CheckStyle.
7421ba8
Merge branch 'apache:trunk' into HADOOP-18302
slfan1989 82a3cc9
HADOOP-18302. Fix CheckStyle.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,13 +25,14 @@ | |
| import java.net.Socket; | ||
| import java.util.Map; | ||
|
|
||
| import org.apache.commons.lang3.reflect.FieldUtils; | ||
| import org.apache.hadoop.crypto.key.kms.KMSClientProvider; | ||
| import org.junit.Assert; | ||
|
|
||
| import org.apache.hadoop.oncrpc.RpcCall; | ||
| import org.apache.hadoop.oncrpc.XDR; | ||
| import org.apache.hadoop.oncrpc.security.CredentialsNone; | ||
| import org.apache.hadoop.oncrpc.security.VerifierNone; | ||
| import org.apache.hadoop.test.Whitebox; | ||
| import org.junit.AfterClass; | ||
| import org.junit.BeforeClass; | ||
| import org.junit.Test; | ||
|
|
@@ -76,7 +77,7 @@ public void testIdle() throws InterruptedException, IOException { | |
| } | ||
|
|
||
| @Test(timeout = 10000) | ||
| public void testRegistration() throws IOException, InterruptedException { | ||
| public void testRegistration() throws IOException, InterruptedException, IllegalAccessException { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this change is needed.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will fix it. |
||
| XDR req = new XDR(); | ||
| RpcCall.getInstance(++xid, RpcProgramPortmap.PROGRAM, | ||
| RpcProgramPortmap.VERSION, | ||
|
|
@@ -101,8 +102,9 @@ public void testRegistration() throws IOException, InterruptedException { | |
| Thread.sleep(100); | ||
| boolean found = false; | ||
| @SuppressWarnings("unchecked") | ||
| Map<String, PortmapMapping> map = (Map<String, PortmapMapping>) Whitebox | ||
| .getInternalState(pm.getHandler(), "map"); | ||
| Map<String, PortmapMapping> map = (Map<String, PortmapMapping>) | ||
| FieldUtils.getField(RpcProgramPortmap.class, | ||
| "map", true).get(pm.getHandler()); | ||
|
|
||
| for (PortmapMapping m : map.values()) { | ||
| if (m.getPort() == sent.getPort() | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.