zettarepl middlewared file descriptor leak

Description

Checking middlewared/zettarepl process shows file descriptor leak over time, which on our production system ended up eating all pipekva space. We got receiving the following kernel messages:

kern.ipc.maxpipekva exceeded; see tuning(7)

Restarting middlewared solves the problem temporary, but over time resources will again be exhausted.

The leak can be observer:

nas-a# ps axw|grep middlewared.*zettar
86105 - S 0:23.00 python3.7: middlewared (zettarepl) (python3.7)
91844 1 S+ 0:00.00 grep middlewared.*zettar
nas-a# procstat -f 86105 | wc -l
431
nas-a# procstat -f 86105 | wc -l
433
nas-a# procstat -f 86105 | wc -l
433
nas-a# procstat -f 86105 | wc -l
433
nas-a# procstat -f 86105 | wc -l
434
nas-a# procstat -f 86105 | wc -l
434
nas-a# procstat -f 86105 | wc -l
434
nas-a# procstat -f 86105 | wc -l
435
nas-a# procstat -f 86105 | wc -l
436
nas-a# procstat -f 86105 | wc -l
436
nas-a# procstat -f 86105 | wc -l
436
nas-a# procstat -f 86105 | wc -l
436
nas-a# procstat -f 86105 | wc -l
437
nas-a# procstat -f 86105 | wc -l
437

This has been captured during a replication task running, while sending multiple snapshots.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk July 27, 2020 at 7:19 PM

Bug Clerk July 27, 2020 at 7:18 PM

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Medium

Components

Affects versions

Priority

More fields

Katalon Platform

Created July 24, 2020 at 8:19 PM
Updated July 1, 2022 at 4:51 PM
Resolved July 27, 2020 at 7:19 PM