Handle "spark.eventLog.overwrite", and add unit test.