[SPARK-3562]Periodic cleanup event logs

link #2391 
scalastyle would probably complain about this, but in any case: needs a space after `//`, should start with capital letter.