As a related thought - there is a scenario where the log doesn't get rotated/expired if there are still open transactions (semaphore waits related to those), systems sometimes have long-running transactions for perfectly valid reasons. Perhaps the two are related?
If we can get clarity on what things (in the code logic) might prevent the log rotation/expiry from working, we can (in our various production environments) look at those issues.
Below is a snippet from SHOW ENGINE INNODB STATUS
--Thread 139891669952256 has waited at lock0lock.cc line 7638 for 571.00 seconds the semaphore:
Mutex at 0x7f36d8507068 '&lock_sys->mutex', lock var 1
waiters flag 1
--Thread 139930203956992 has waited at lock0lock.cc line 6756 for 571.00 seconds the semaphore:
Mutex at 0x7f36d8507068 '&lock_sys->mutex', lock var 1
waiters flag 1
--Thread 139895193466624 has waited at lock0lock.cc line 7548 for 571.00 seconds the semaphore:
Mutex at 0x7f36d8507068 '&lock_sys->mutex', lock var 1
waiters flag 1
--Thread 139873440749312 has waited at lock0lock.cc line 3806 for 570.00 seconds the semaphore:
Mutex at 0x7f36d8507068 '&lock_sys->mutex', lock var 1
waiters flag 1
--Thread 139873432356608 has waited at btr0cur.cc line 257 for 570.00 seconds the semaphore:
X-lock on RW-latch at 0x7f3cb9fff640 '&block->lock'
a writer (thread id 139873440749312) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file btr0cur.cc line 257
Last time write locked in file /home/buildbot/buildbot/build/mariadb-10.0.21/storage/xtradb/btr/btr0cur.cc line 257
--Thread 139873415571200 has waited at btr0cur.cc line 257 for 570.00 seconds the semaphore:
X-lock on RW-latch at 0x7f3cb9fff640 '&block->lock'
a writer (thread id 139873440749312) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file btr0cur.cc line 257
Last time write locked in file /home/buildbot/buildbot/build/mariadb-10.0.21/storage/xtradb/btr/btr0cur.cc line 257
--Thread 139873423963904 has waited at btr0cur.cc line 257 for 570.00 seconds the semaphore:
X-lock on RW-latch at 0x7f3cb9fff640 '&block->lock'
a writer (thread id 139873440749312) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file btr0cur.cc line 257
Last time write locked in file /home/buildbot/buildbot/build/mariadb-10.0.21/storage/xtradb/btr/btr0cur.cc line 257
--Thread 139930173536000 has waited at lock0lock.cc line 5014 for 570.00 seconds the semaphore:
Mutex at 0x7f36d8507068 '&lock_sys->mutex', lock var 1
nirbhay_c,
Another complaint like
MDEV-8746, and also about MariaDB Galera cluster.