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

**URL:** <https://discuss.elastic.co/t/cant-select-channel-size-is-0-for-types-recovery-bulk-state/129559>\
**Category:** Elasticsearch\
**Created:** [April 25, 2018, 8:08pm UTC](https://discuss.elastic.co/t/cant-select-channel-size-is-0-for-types-recovery-bulk-state/129559 "2018-04-25T20:08:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thuc](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@thuc](https://discuss.elastic.co/u/thuc)\
**Post date:** [April 25, 2018, 8:08pm UTC](https://discuss.elastic.co/t/cant-select-channel-size-is-0-for-types-recovery-bulk-state/129559/1 "2018-04-25T20:08:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 27, 2018, 12:24pm UTC](https://discuss.elastic.co/t/cant-select-channel-size-is-0-for-types-recovery-bulk-state/129559/2 "2018-04-27T12:24:59Z")

</div>

It looks like this is explained by [issue #29321](https://github.com/elastic/elasticsearch/issues/29321):

> <https://github.com/elastic/elasticsearch/issues/29321>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 25, 2018, 12:25pm UTC](https://discuss.elastic.co/t/cant-select-channel-size-is-0-for-types-recovery-bulk-state/129559/3 "2018-05-25T12:25:01Z")

</div>

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