Purging Of the Binary Log Does Not Delete All the Expected Logs: "[Warning] file ... was not purged because it was being readby thread number ..." (Doc ID 2085373.1)

Last updated on MAY 29, 2017

Applies to:

MySQL Server - Version 5.0 and later
Information in this document applies to any platform.

Symptoms

When it is attempted to purge the binary logs either manually using the PURGE BINARY LOGS statement or due to some binary logs being older than expire_logs_days, some or all of the binary logs are not purged. The MySQL error log will have warnings like:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms