gluster/glusterd2

stale sockets fds under brick process

PrasadDesala opened this issue · 1 comments

Observed behavior

Seeing stale sockets fds under brick process with brick-mux enabled. If I restart the glusterd2 service then the sockets count are getting increased with a count of number of volumes.

Right now on my system I have 100 pvc and I am seeing 419 brick sockets on a node.
[root@gluster-kube1-0 11720]# ll /proc/$(pgrep glusterfsd)/fd | wc -l
419

Expected/desired behavior

Stale socket fds should be cleaned.

Details on how to reproduce (minimal and precise)

  1. Create a 3 node gcs system using valgrind.
  2. Create 100 pvc.
  3. Enabled brick-mux.
  4. Stop/start the volume.
  5. Check the brick process sockets using "ll /proc/$(pgrep glusterfsd)/fd"

Information about the environment:

  • Glusterd2 version used (e.g. v4.1.0 or master): v6.0-dev.94.git601ba61
  • Operating system used: Centos 7.6
  • Glusterd2 compiled from sources, as a package (rpm/deb), or container:
  • Using External ETCD: (yes/no, if yes ETCD version): yes; version 3.3.8
  • If container, which container image:
  • Using kubernetes, openshift, or direct install:
  • If kubernetes/openshift, is gluster running inside kubernetes/openshift or outside: Kubernetes