Failed to store document

Enonic version: 7.4.1
OS: CentOS Linux 7 (Core)

Hi
In my application I have used a custom repository (my-repo). My Enonic CMS is a standalone server (not a cluster environment).
When I am doing a performance test on the server I got following error.

Stacktrace:

2021-02-08 10:00:57,865 INFO org.elasticsearch.cluster.metadata - [211db9e4-f6e0-465b-8e91-903819b5e35c] [search-my-repo] update_mapping [master]
2021-02-08 10:01:00,389 INFO org.elasticsearch.cluster.metadata - [211db9e4-f6e0-465b-8e91-903819b5e35c] [search-my-repo] update_mapping [master]
2021-02-08 10:01:01,031 ERROR c.e.x.r.i.e.executor.StoreExecutor - Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
2021-02-08 10:01:01,079 ERROR c.e.x.p.i.e.ExceptionRendererImpl - Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
com.enonic.xp.web.WebException: Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
Caused by: com.enonic.xp.resource.ResourceProblemException: Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
Caused by: com.enonic.xp.repository.IndexException: Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
“message”: “Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master”,
2021-02-08 10:01:02,023 INFO org.elasticsearch.cluster.metadata - [211db9e4-f6e0-465b-8e91-903819b5e35c] [search-my-repo] update_mapping [master]
2021-02-08 10:01:02,817 ERROR c.e.x.p.i.e.ExceptionRendererImpl - Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
com.enonic.xp.web.WebException: Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
Caused by: com.enonic.xp.resource.ResourceProblemException: Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
Caused by: com.enonic.xp.repository.IndexException: Failed to store document with id [17d7253a-74b3-4ca4-9601-b00f4a9f0d96] in index [search-my-repo] branch master
2021-02-08 10:01:05,312 INFO org.elasticsearch.cluster.metadata - [211db9e4-f6e0-465b-8e91-903819b5e35c] [search-my-repo] update_mapping [master]
2021-02-08 10:01:08,956 INFO org.elasticsearch.cluster.metadata - [211db9e4-f6e0-465b-8e91-903819b5e35c] [search-my-repo] update_mapping [master]

Any ideas?

Thanks.

You might have overloaded the XP embedded elasticsearch engine with your performance test, so it starts throttling write requests.

1 Like