From 1f8bc635a8ccaab6de65ee8c51b85d4a253e79e7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 30 Sep 2015 13:48:04 -0400 Subject: [PATCH] Fix erroneous data injection to log replay When a rollover event was detected, the offset of the rollover event itself was being read from the rolled file erroneously. Skip to next loop iteration so that the metadata about the rollover event is properly ignored in building the text data buffer. --- confluent_server/confluent/log.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/log.py b/confluent_server/confluent/log.py index daf3369f..6897c95e 100644 --- a/confluent_server/confluent/log.py +++ b/confluent_server/confluent/log.py @@ -633,6 +633,9 @@ class Logger(object): flock(binfile, LOCK_SH) binfile.seek(0, 2) binidx = binfile.tell() + # things have been set up for next iteration to dig to + # previous log file, go to next iteration + continue elif ltype != 2: continue if tstamp > recenttimestamp: