Can't select channel size is 0 for types: [RECOVERY, BULK, STATE]

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

It looks like this is explained by issue #29321:

If so, the fix is to ensure that you are not pointing cross-cluster search back at the original cluster.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.