[ 
https://issues.apache.org/jira/browse/HADOOP-18883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17811038#comment-17811038
 ] 

ASF GitHub Bot commented on HADOOP-18883:
-----------------------------------------

steveloughran commented on PR #6484:
URL: https://github.com/apache/hadoop/pull/6484#issuecomment-1911095165

   build failures are networking and unrelated to change
   ```
   [INFO] Finished at: 2024-01-23T07:44:05Z
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (check-jar-contents) on project 
hadoop-client-check-invariants: Execution check-jar-contents of goal 
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec failed: Plugin 
org.codehaus.mojo:exec-maven-plugin:1.3.1 or one of its dependencies could not 
be resolved: Could not transfer artifact asm:asm-tree:jar:3.3.1 from/to central 
(https://repo.maven.apache.org/maven2): Connection reset -> [Help 1]
   [ERROR] Failed to execute goal 
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (check-jar-contents) on project 
hadoop-client-check-test-invariants: Execution check-jar-contents of goal 
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec failed: Plugin 
org.codehaus.mojo:exec-maven-plugin:1.3.1 or one of its dependencies could not 
be resolved: Failure to transfer asm:asm-tree:jar:3.3.1 from 
https://repo.maven.apache.org/maven2 was cached in the local repository, 
resolution will not be reattempted until the update interval of central has 
elapsed or updates are forced. Original error: Could not transfer artifact 
asm:asm-tree:jar:3.3.1 from/to central (https://repo.maven.apache.org/maven2): 
Connection reset -> [Help 1]
   [ERROR] 
   ```
   




> Expect-100 JDK bug resolution: prevent multiple server calls
> ------------------------------------------------------------
>
>                 Key: HADOOP-18883
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18883
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>            Reporter: Pranav Saxena
>            Assignee: Pranav Saxena
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.0
>
>
> This is inline to JDK bug: [https://bugs.openjdk.org/browse/JDK-8314978].
>  
> With the current implementation of HttpURLConnection if server rejects the 
> “Expect 100-continue” then there will be ‘java.net.ProtocolException’ will be 
> thrown from 'expect100Continue()' method.
> After the exception thrown, If we call any other method on the same instance 
> (ex getHeaderField(), or getHeaderFields()). They will internally call 
> getOuputStream() which invokes writeRequests(), which make the actual server 
> call. 
> In the AbfsHttpOperation, after sendRequest() we call processResponse() 
> method from AbfsRestOperation. Even if the conn.getOutputStream() fails due 
> to expect-100 error, we consume the exception and let the code go ahead. So, 
> we can have getHeaderField() / getHeaderFields() / getHeaderFieldLong() which 
> will be triggered after getOutputStream is failed. These invocation will lead 
> to server calls.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to