Skip to content

Commit 6f63db0

Browse files
committed
remove routing and unblock writes to new idx
1 parent 392977f commit 6f63db0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

curator/actions.py

+4
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,10 @@ def do_action(self):
23052305
self.loggit.info('Shrinking index "{0}" to "{1}" with settings: {2}, wait_for_active_shards={3}'.format(idx, target, self.body, self.wait_for_active_shards))
23062306
try:
23072307
self.client.indices.shrink(index=idx, params={'copy_settings':'true'}, target=target, body=self.body, wait_for_active_shards=self.wait_for_active_shards)
2308+
self.loggit.debug('unblocking writes on {0}'.format(target))
2309+
self._unblock_writes(target)
2310+
self.loggit.debug('undoing route reqs for {0}'.format(target))
2311+
self.route_index(target, 'require', '_name', '')
23082312
# Wait for it to complete
23092313
if self.wfc:
23102314
self.loggit.debug('Wait for shards to complete allocation for index: {0}'.format(target))

0 commit comments

Comments
 (0)