A database which was removed from AlwaysOn configuration is showing ‘LOG_REUSE_WAIT_DESC’ as ‘AVAILABILITY_REPLICA’ which led the database log to be get full.
I had tried below steps and it wasn't helped until I restart the database.
1. Ran check point.
2. Validated the AlwaysOn related DMVs and found no trace for the DB as it was removed and deleted from secondary.
3. Changed recovery to Simple and still the LOG_REUSE_WAIT_DESC was showing AVAILABILITY_REPLICA.
In order to fix the same I forced to restart the database and it changed the LOG_REUSE_WAIT_DESC to NOTHING.
Did anyone had these issue before? is there any alternative way that I can fix without restating the database ?
I failed reproduce the issue.
SQL Version : Microsoft SQL Server 2017 RTM CU19.