Percolate returns empty matches under heavy load during elasticsearch cluster re-sizing


we have a percolation miss problem described in this post and probably related with this issue

you can reproduce problem using this script

at least we need a workaround for now, because missing content is not acceptable for us. is there a way to check if every shard is really OK from code before sending percolation requests? obviously checking green status does not work.