Project: usergrid
Issue USERGRID-490: Update index aliases to be created atomically
Currently, we move our index aliases in multiple steps. This can lead to inconsistent alias state if fail during one of these operations. Our alias operation should perform a single swap command. We should perform the following during index allocation. # Create the target index successfully # Issue a single http call that will move the write alias, and add the read alias to the new index, per this HTTP command equivalent. http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#indices-aliases
Story points: 1