<p dir="auto">There should be a way to safely rename / revoke / reindex / manipulate an index.</p>
<p dir="auto">Currently, I have to do the following:</p>
<ol dir="auto">
<li>Create NEW index</li>
<li>Copy  (aka reindex) data from OLD to NEW</li>
<li>Delete OLD index</li>
<li>Make an alias/link from OLD index name to NEW index</li>
<li>Do my stuff</li>
<li>Delete OLD index alias</li>
<li>Create OLD index</li>
<li>Copy (aka reindex) data from NEW to OLD index.</li>
<li>Delete OLD index.</li>
</ol>
<p dir="auto">3-4 transition is a race cond. If app is heavily writing to index, you're out of luck. Your index will be constantly created, you won't be able to even make an alias.<br>
6-7 is a potential race condition.</p>
<p dir="auto">To work around the problem, we need aliases to work with existing indexes.<br>
Also, an index rename functionality should be implemented, so that entire 4-7 would not be needed.</p>
<p dir="auto">The packaging tests try to download watcher/latests in the master/2.0 branches and fail to install watcher. If you manually build watcher for 2.0 from source and dump it into the current working directory then they work but this is a pain for some and impossible for others because the watcher repository is private to the elastic organization.</p>