Closed willkg closed 10 years ago
Getting these test errors with elasticsearch 1.0 and elasticsearch-py 0.45
====================================================================== ERROR: elasticutils/contrib/django/tests/test_models.py:IndexableTest.test_bulk_index ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/willkg/mozilla/elasticutils/elasticutils/contrib/django/tests/test_models.py", line 74, in test_bulk_index FakeDjangoMappingType.bulk_index(documents, id_field='id') File "/home/willkg/mozilla/elasticutils/elasticutils/__init__.py", line 2215, in bulk_index raise_on_error=True File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/elasticsearch/helpers.py", line 148, in bulk for ok, item in streaming_bulk(client, actions, **kwargs): File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/elasticsearch/helpers.py", line 121, in streaming_bulk raise BulkIndexError('%i document(s) failed to index.' % len(errors), errors) BulkIndexError: ('3 document(s) failed to index.', [{u'index': {u'status': 201, u'_type': u'fake', u'_id': u'1', u'_version': 1, u'_index': u'elasticutilstest_eutest'}}, {u'index': {u'status': 201, u'_type': u'fake', u'_id': u'2', u'_version': 1, u'_index': u'elasticutilstest_eutest'}}, {u'index': {u'status': 201, u'_type': u'fake', u'_id': u'3', u'_version': 1, u'_index': u'elasticutilstest_eutest'}}]) ====================================================================== ERROR: elasticutils/contrib/django/tests/test_tasks.py:TestTasks.test_tasks ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/willkg/mozilla/elasticutils/elasticutils/contrib/django/tests/test_tasks.py", line 35, in test_tasks index_objects(FakeDjangoMappingType, [1, 2, 3]) File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__ return self.run(*args, **kwargs) File "/home/willkg/mozilla/elasticutils/elasticutils/contrib/django/tasks.py", line 65, in index_objects mapping_type.bulk_index(documents, id_field='id', es=es, index=index) File "/home/willkg/mozilla/elasticutils/elasticutils/__init__.py", line 2215, in bulk_index raise_on_error=True File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/elasticsearch/helpers.py", line 148, in bulk for ok, item in streaming_bulk(client, actions, **kwargs): File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/elasticsearch/helpers.py", line 121, in streaming_bulk raise BulkIndexError('%i document(s) failed to index.' % len(errors), errors) BulkIndexError: ('3 document(s) failed to index.', [{u'index': {u'status': 201, u'_type': u'fake', u'_id': u'1', u'_version': 1, u'_index': u'elasticutilstest_eutest'}}, {u'index': {u'status': 201, u'_type': u'fake', u'_id': u'2', u'_version': 1, u'_index': u'elasticutilstest_eutest'}}, {u'index': {u'status': 201, u'_type': u'fake', u'_id': u'3', u'_version': 1, u'_index': u'elasticutilstest_eutest'}}]) ====================================================================== ERROR: elasticutils/tests/test_types.py:ModelTest.test_bulk_index ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/willkg/mozilla/elasticutils/elasticutils/tests/test_types.py", line 110, in test_bulk_index FakeMappingType.bulk_index(documents, id_field='id') File "/home/willkg/mozilla/elasticutils/elasticutils/__init__.py", line 2215, in bulk_index raise_on_error=True File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/elasticsearch/helpers.py", line 148, in bulk for ok, item in streaming_bulk(client, actions, **kwargs): File "/home/willkg/.virtualenvs/eu/lib/python2.7/site-packages/elasticsearch/helpers.py", line 121, in streaming_bulk raise BulkIndexError('%i document(s) failed to index.' % len(errors), errors) BulkIndexError: ('2 document(s) failed to index.', [{u'index': {u'status': 201, u'_type': u'elasticutilsmappingtype', u'_id': u'1', u'_version': 1, u'_index': u'elasticutilstest'}}, {u'index': {u'status': 201, u'_type': u'elasticutilsmappingtype', u'_id': u'2', u'_version': 1, u'_index': u'elasticutilstest'}}])
Need to look into that.
Getting these test errors with elasticsearch 1.0 and elasticsearch-py 0.45
Need to look into that.