forked from mozilla/fjord
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for a yellow status when setting up indexes.
Before, I would get random errors about shards not being available. Erik Rose told me that this is because I made an index, but then didn't wait for it to propogate to the shards. He gave me a line of code to wait for the sync. I noticed I had to add it in several places, always right after a call to `setup_indexes()`. So I made that function do that. I also removed the refresh calls right after any `setup_index()` calls, because refresh is called in that function. The old way of working around this was to sleep a bit during refreshes. That isn't as good as this way, so I nuked the old way, including the docs for it.
- Loading branch information
Showing
4 changed files
with
4 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters