]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: d3n: fix valgrind reported leak related to libaio ops 52249/head
authorMark Kogan <mkogan@redhat.com>
Wed, 28 Jun 2023 14:06:27 +0000 (14:06 +0000)
committerMark Kogan <mkogan@redhat.com>
Thu, 29 Jun 2023 08:13:49 +0000 (08:13 +0000)
commitf834e10cfe97c7df8fc5ead682975fe60b435bd7
treebb932553d6baea0766a455a7f220dedf7012caf6
parent26fda85af2ec7a62b8d36151d519fb343675a1a0
rgw: d3n: fix valgrind reported leak related to libaio ops

Fixes: https://tracker.ceph.com/issues/61661
The valgrind leak indication is a false positive in this case,
it is because the libaio internal thread have not timed out yet
when radosgw is terminated.

```
man aio_init
...
aio_idle_time
This field specifies the amount of time in seconds that a worker thread
should wait for further requests before terminating, after having
completed a previous request.   The
default value is 1.
...
```
for the sake of teuthology reducing the timeout

waiting for 2 minutes for example like below would also prevent the leak report
```
❯ env
LD_LIBRARY_PATH=/mnt/nvme5n1p1/src-git/ceph--up--master-clang/build/lib/:$LD_LIBRARY_PATH
PYTHONPATH=$PYTHONPATH:/mnt/nvme5n1p1/src-git/ceph--up--master-clang/build/lib/cython_modules/lib.3
RAGWEED_CONF=$(realpath ./ragweed.conf) RAGWEED_STAGES=prepare,check tox
-- -v |& ccze -Aonolookups ;   sleep 2m | pv -t ; pkill radosgw
```

Signed-off-by: Mark Kogan <mkogan@redhat.com>
src/rgw/driver/rados/rgw_d3n_datacache.cc