From b46160b8753eea5631314e01495465b83aa6ee9f Mon Sep 17 00:00:00 2001 From: martinko Date: Thu, 19 Sep 2013 17:30:18 +0200 Subject: [PATCH] londiste.handlers.dispatch: fixed "ignore events aiming at obsolete partitions" bug --- python/londiste/handlers/dispatch.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.39.5