I used the bulk API to index 1000 documents at a time. Some of the requests were failing with this error:
BulkIndexError: (u'227 document(s) failed to index.', [{u'index': {u'status': 500, u'_type': u'artifacts', u'_id': u'AWK7BHkSDMEKS3sw_Xdj', u'error': {u'reason': u"can't select channel size is 0 for types: [RECOVERY, BULK, STATE]", u'type': u'illegal_state_exception'}, u'_index': u'englabs_core-repo-artifact-indexer'}}, {u'index': {u'status': 500, u'_type': u'artifacts', u'_id': u'AWK7BHkSDMEKS3sw_Xdk', u'error': {u'reason': u"can't select channel size is 0 for types: [RECOVERY, BULK, STATE]", u'type': u'illegal_state_exception'}, u'_index': u'englabs_core-repo-artifact-indexer'}}, {u'index': {u'status': 500, u'_type': u'artifacts', u'_id': u'AWK7BHkSDMEKS3sw_Xdr', u'error': {u'reason': u"can't select channel size is 0 for types: [RECOVERY, BULK, STATE]", u'type': u'illegal_state_exception'}, u'_index': u'englabs_core-repo-artifact-indexer'}}, {u'index': {u'status': 500, u'_type': u'artifacts', u'_id': u'AWK7BHkSDMEKS3sw_Xdv', u'error': {u'reason': u"can't select channel size is 0 for types: [RECOVERY, BULK, STATE]", u'type': u'illegal_state_exception'}, u'_index': u'englabs_core-repo-artifact-indexer'}}, {u'index': {u'status': 500, u'_type': u'artifacts', u'_id': u'AWK7BHkSDMEKS3sw_Xdy', u'error': {u'reason': u"can't select channel size is 0 for types: [RECOVERY, BULK, STATE]", u'type': u'illegal_state_exception'}, u'_index': u'englabs_core-repo-artifact-indexer'}}....
In this particular case 227 out of 1000 documents failed.
Here's ES version:
"version" : {
"number" : "5.6.8",
"build_hash" : "688ecce",
"build_date" : "2018-02-16T16:46:30.010Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
I searched the internet but didn't find much help.
Thanks,
Thuc Nguyen