summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartinko2013-09-19 15:30:18 +0000
committermartinko2013-09-20 12:25:58 +0000
commit5ba3a99ce053f7d012f3519b41f6b36a7d638910 (patch)
treea97b977427a92c9214cc95e7b0002189aee2ebe2
parent934b461c42bbe7387c1211bade1f7b2e43ed7a4d (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 0b02edcd..7590ee73 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.