Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

brick-mux : fix spurious socket connect failure issue during volume stop #1469

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

atinmu
Copy link
Contributor

@atinmu atinmu commented Jan 8, 2019

Change the logic of using the parent socket file to send the detach
request by picking it up from /proc//cmdline where pid is the
process id of the parent brick. During Multiplex, this would avoid
creating a hard link of a socket file.

Credits : [email protected] for helping with the utility function

Fixes: #1468
Signed-off-by: Atin Mukherjee [email protected]

Change the logic of using the parent socket file to send the detach
request by picking it up from /proc/<pid>/cmdline where pid is the
process id of the parent brick. During Multiplex, this would avoid
creating a hard link of a socket file.

Credits : [email protected] for helping with the utility function

Fixes: gluster#1468
Signed-off-by: Atin Mukherjee <[email protected]>
@ghost ghost assigned atinmu Jan 8, 2019
@ghost ghost added the in progress label Jan 8, 2019
@rishubhjain
Copy link
Contributor

retest this please

1 similar comment
@rishubhjain
Copy link
Contributor

retest this please

Fix error handling from ReadFromPidFile call. Also added a check to
bypass detach if the brick pid is -1.

Signed-off-by: Atin Mukherjee <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants