[
https://issues.apache.org/jira/browse/FLINK-17947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-17947:
-----------------------------------
Labels: auto-deprioritized-major stale-minor (was:
auto-deprioritized-major)
I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help
the community manage its development. I see this issues has been marked as
Minor but is unassigned and neither itself nor its Sub-Tasks have been updated
for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is
still Minor, please either assign yourself or give an update. Afterwards,
please remove the label or in 7 days the issue will be deprioritized.
> Retry REST requests if RpcEndpoint died before responding to request
> --------------------------------------------------------------------
>
> Key: FLINK-17947
> URL: https://issues.apache.org/jira/browse/FLINK-17947
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / REST
> Affects Versions: 1.10.1, 1.11.0
> Reporter: Till Rohrmann
> Priority: Minor
> Labels: auto-deprioritized-major, stale-minor
>
> Currently, it can happen that a REST handler sends a request to a leader
> {{RpcEndpoint}} and before the {{RpcEndpoint}} has a chance to respond, it
> might shut down (e.g. due to losing the leadership). In this case, the
> {{ActorSystem}} will send an {{AskTimeoutException}} as the response with the
> message {{Recipient Actor[akka://flink/user/rpc/dispatcher_1#-1875884516] had
> already been terminated.}}. This exception will be treated as any other
> exception and forwarded to the REST client. There it will be treated as a
> normal timeout exception which causes the operation (e.g. requesting job
> details) to fail.
> I was wondering whether this case should not be handled slightly differently.
> If the REST handler would respond with a {{SERVICE_UNAVAILABLE}} HTTP
> response code, then the {{RestClusterClient}} would retry the operation. One
> could think of it as if there wouldn't have been a leader available before.
> This is similar to the situation when there is no current leader and we are
> waiting for the leader election to finish. Alternatively, we could extend the
> {{RestClusterClient.isConnectionProblemOrServiceUnavailable}} predicate to
> also cover the case of special {{AskTimeoutExceptions}}.
> cc [~chesnay]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)