[
https://issues.apache.org/jira/browse/KNOX-2543?focusedWorklogId=568950&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-568950
]
ASF GitHub Bot logged work on KNOX-2543:
----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Mar/21 13:33
Start Date: 19/Mar/21 13:33
Worklog Time Spent: 10m
Work Description: moresandeep opened a new pull request #419:
URL: https://github.com/apache/knox/pull/419
## What changes were proposed in this pull request?
Add option to replay requests when the server unexpectedly closes the
connection (not in case of socket timeouts where the server is unable to reach)
Proposed changes are adding optional service params
1. `retryCount` - how many times should a request be retried
2. `retryNonSafeRequest` - Should an unsafe request be retries, unsafe =
POST, PUT, DELETE (!GET)
example
`
<service>
<role>WHOAMI</role>
<url>http://localhost:50071</url>
<param name="retryCount" value="5"/>
</service>
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 568950)
Remaining Estimate: 0h
Time Spent: 10m
> Intermittent NoHttpResponseException errors
> -------------------------------------------
>
> Key: KNOX-2543
> URL: https://issues.apache.org/jira/browse/KNOX-2543
> Project: Apache Knox
> Issue Type: Bug
> Reporter: Matyas Orhidi
> Assignee: Sandeep More
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I'd like to request some sort of retry logic to handle intermittent backend
> errors (in non-ha cases)
> For example:
> ```
> 2021-02-25 15:00:29,768 WARN knox.gateway
> (DefaultDispatch.java:executeOutboundRequest(184)) - Connection exception
> dispatching request: https://xxx.com:8001/security_settings?doAs=knoxui
> org.apache.http.NoHttpResponseException: xxx.com:8001 failed to respond
> org.apache.http.NoHttpResponseException: xxx.com:8001 failed to respond
> at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)
> at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
> at
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
> at
> org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
> at
> org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
> at
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
> at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
> at
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
> at
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
> at
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
> at
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
> at
> org.apache.knox.gateway.dispatch.DefaultDispatch.executeOutboundRequest(DefaultDispatch.java:167)
> at
> org.apache.knox.gateway.dispatch.DefaultDispatch.executeRequest(DefaultDispatch.java:153)
> at
> org.apache.knox.gateway.dispatch.DefaultDispatch.executeRequestWrapper(DefaultDispatch.java:136)
> at
> org.apache.knox.gateway.dispatch.DefaultDispatch.doGet(DefaultDispatch.java:303)
> at
> org.apache.knox.gateway.dispatch.GatewayDispatchFilter$GetAdapter.doMethod(GatewayDispatchFilter.java:174)
> at
> org.apache.knox.gateway.dispatch.GatewayDispatchFilter.doFilter(GatewayDispatchFilter.java:125)
> at
> org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:58)
> ```
--
This message was sent by Atlassian Jira
(v8.3.4#803005)