[SPARK-3562]Periodic cleanup event logs

link #2391 
I wonder if it isn't better to use a `ScheduledExecutorService` here.