Skip to content

Conversation

@droberts195
Copy link

This change fixes two related issues with named pipe connection
when the controller process first starts up:

  1. If the ES JVM dies before the controller connects its logging
    named pipe then since Prevent unexpected native controller output hanging the process elasticsearch#56491 the resulting
    errors from the controller process will be seen in the ES
    stderr file. There is a change to the logging to make it
    clearer that the controller didn't fail, but exited due to
    the ES JVM disappearing.
  2. Interrupted system calls while connecting the named pipes
    could cause the pipes to unnecessarily fail to connect. There
    is a change to retry the calls on getting an EINTR error unless
    the interrupt was caused by the functionality of controller
    that kills off the connection attempts if the ES JVM dies (i.e.
    the scenario described in point 1).

Backport of #1311

This change fixes two related issues with named pipe connection
when the controller process first starts up:

1. If the ES JVM dies before the controller connects its logging
   named pipe then since elastic/elasticsearch#56491 the resulting
   errors from the controller process will be seen in the ES
   stderr file.  There is a change to the logging to make it
   clearer that the controller didn't fail, but exited due to
   the ES JVM disappearing.
2. Interrupted system calls while connecting the named pipes
   could cause the pipes to unnecessarily fail to connect.  There
   is a change to retry the calls on getting an EINTR error unless
   the interrupt was caused by the functionality of controller
   that kills off the connection attempts if the ES JVM dies (i.e.
   the scenario described in point 1).

Backport of elastic#1311
@droberts195 droberts195 merged commit 92fdad5 into elastic:6.8 Jun 18, 2020
@droberts195 droberts195 deleted the better_eintr_handling_in_named_pipe_connection_68 branch June 18, 2020 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant