[SPARK-3562]Periodic cleanup event logs

link #2391 
nit: what does `this` refer to? Seems like the comment refers to L274.