Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0-M20
-
None
-
None
-
Ubuntu 16.04.2 LTS
Description
We use a master and two slave replication ApacheDS servers. The replication mode is Refresh-Only. We have approx. 2000 users and 200 groups defined. Every night the group memberships of all users are updated by a series of LDAP calls made by an application server.
After a couple of days we ran out of disk space on the master ApacheDS server. The system went from 37 GB free disk space to zero. You can observe the leak using the "lsof +L1" command. Here is the output:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME java 17143 apacheds 364u REG 8,17 114688 0 395467 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.13.db (deleted) java 17143 apacheds 366u REG 8,17 9297920 0 395468 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.17.db (deleted) java 17143 apacheds 368u REG 8,17 1515405312 0 395469 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.1.db (deleted) java 17143 apacheds 370u REG 8,17 106496 0 395470 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.12.db (deleted) java 17143 apacheds 372u REG 8,17 114688 0 395471 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.14.db (deleted) java 17143 apacheds 374u REG 8,17 28942336 0 395472 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.9.db (deleted) java 17143 apacheds 376u REG 8,17 1521311744 0 395473 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.2.db (deleted) java 17143 apacheds 378u REG 8,17 2703360 0 395474 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.18.db (deleted) java 17143 apacheds 380u REG 8,17 1515405312 0 395475 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.3.db (deleted) java 17143 apacheds 382u REG 8,17 1521311744 0 395476 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.4.db (deleted) java 17143 apacheds 384u REG 8,17 2703360 0 395477 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.19.db (deleted) java 17143 apacheds 386u REG 8,17 245760 0 395478 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.8.db (deleted) java 17143 apacheds 388u REG 8,17 122880 0 395479 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.10.db (deleted) java 17143 apacheds 390u REG 8,17 1501945856 0 395480 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.15.db (deleted) java 17143 apacheds 392u REG 8,17 1501945856 0 395481 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.6.db (deleted) java 17143 apacheds 394u REG 8,17 1501945856 0 395482 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.5.db (deleted) java 17143 apacheds 396u REG 8,17 114688 0 395483 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.11.db (deleted) java 17143 apacheds 398u REG 8,17 114688 0 395484 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.16.db (deleted) java 17143 apacheds 400u REG 8,17 1501945856 0 395485 /data/apacheds/default/syncrepl-data/REPL_EVENT_LOG.7.db (deleted)
As you can see, some of the file handles of already deleted files need to be closed().