summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartinko2013-09-19 15:30:18 +0000
committermartinko2013-09-19 15:30:18 +0000
commitb46160b8753eea5631314e01495465b83aa6ee9f (patch)
tree2bed072ba7b49324af3edfcfd0739e2039de7cf0
parent003f7959f8b466720647d67aaf113ca52f61f53d (diff)
londiste.handlers.dispatch: fixed "ignore events aiming at obsolete partitions" bug
-rw-r--r--python/londiste/handlers/dispatch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/londiste/handlers/dispatch.py b/python/londiste/handlers/dispatch.py
index f17d44a6..477fd119 100644
--- a/python/londiste/handlers/dispatch.py
+++ b/python/londiste/handlers/dispatch.py
@@ -913,6 +913,8 @@ class Dispatcher (ShardHandler):
self.drop_obsolete_partitions (self.dest_table, self.conf.retention_period, self.conf.period)
if self.conf.ignore_old_events and not skytools.exists_table(curs, dst):
self.ignored_tables.add(dst) # must have been just dropped
+ if dst in self.row_handler.table_map:
+ del self.row_handler.table_map[dst]
def drop_obsolete_partitions (self, parent_table, retention_period, partition_period):
""" Drop obsolete partitions of partition-by-date parent table.