mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-22 15:32:48 +00:00
Fix #4493: ElasticSearch publisher goes into pause mode if a document missing exception thrown (#4494)
This commit is contained in:
parent
a81c8db8be
commit
81f8be0b58
@ -135,10 +135,7 @@ public class ElasticSearchEventPublisher extends AbstractEventPublisher {
|
||||
} catch (ElasticsearchException e) {
|
||||
LOG.error("failed to update ES doc");
|
||||
LOG.debug(e.getMessage());
|
||||
if (e.status() == RestStatus.NOT_FOUND
|
||||
|| e.status() == RestStatus.GATEWAY_TIMEOUT
|
||||
|| e.status() == RestStatus.INTERNAL_SERVER_ERROR
|
||||
|| e.status() == RestStatus.REQUEST_TIMEOUT) {
|
||||
if (e.status() == RestStatus.GATEWAY_TIMEOUT || e.status() == RestStatus.REQUEST_TIMEOUT) {
|
||||
LOG.error("Error in publishing to ElasticSearch");
|
||||
throw new ElasticSearchRetriableException(e.getMessage());
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user