-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16619. Fix HttpHeaders.Values And HttpHeaders.Names Deprecated Import #4406
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
@ayushtkn Please help me to review the code, I hope to replace the deprecated import with the recommended . |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
@ayushtkn Can you help review the code? Thank you very much! |
| HttpURLConnection conn = getConn(cluster); | ||
| String xfoHeader = conn.getHeaderField("X-FRAME-OPTIONS"); | ||
| Assert.assertTrue("unexpected X-FRAME-OPTION in header", xfoHeader == null); | ||
| Assert.assertNull(xfoHeader); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Assert.assertNull(xfoHeader); | |
| Assert.assertNull("unexpected X-FRAME-OPTION in header", xfoHeader); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jojochuang Thank you very much for helping to review the code, I will modify the code!
| 86400000, 86400000, 86400000, 86400000, namesystem); | ||
| dtSecretManager.startThreads(); | ||
| Token<DelegationTokenIdentifier> token1 = new Token<DelegationTokenIdentifier>( | ||
| Token<DelegationTokenIdentifier> token1 = new Token<>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix it.
|
@jojochuang Thank you very much for helping to review the code, please help to review the code again. |
jojochuang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Looks like the new variables are added in Netty 4.1. Downstream applications depending on Netty 4.0 could break. Not sure. So I'll only merge the change into Hadoop 3.4.0 (trunk) to avoid breakage.
|
@jojochuang Thank you very much! |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
…mport (apache#4406) Co-authored-by: slfan1989 <louj1988@@>
JIRA: HDFS-16619. Fix HttpHeaders.Values And HttpHeaders.Names Deprecated Import.
HttpHeaders.Values and HttpHeaders.Names are deprecated, use HttpHeaderValues and HttpHeaderNames instead.
HttpHeaders.Names
Deprecated.
Use HttpHeaderNames instead. Standard HTTP header names.
HttpHeaders.Values
Deprecated.
Use HttpHeaderValues instead. Standard HTTP header values.