Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing missing because of ES server failed to response some times, #51

Open
nazrulworld opened this issue Feb 8, 2019 · 1 comment
Labels

Comments

@nazrulworld
Copy link
Contributor

The situation some times happen. Because of this matter, certain object cannot be indexes.
FYI: i am not using celery.

Is there any way to retry indexing until completed. Do you have any idea @vangheem ?

elasticsearch/connection/http_urllib3.py in perform_request at line 103
        except UrllibSSLError as e:
            self.log_request_fail(method, full_url, body, time.time() - start, exception=e)
            raise SSLError('N/A', str(e), e)
        except ReadTimeoutError as e:
            self.log_request_fail(method, full_url, body, time.time() - start, exception=e)
            raise ConnectionTimeout('TIMEOUT', str(e), e)
        except Exception as e:
            self.log_request_fail(method, full_url, body, time.time() - start, exception=e)
            raise ConnectionError('N/A', str(e), e)
        if not (200 <= response.status < 300) and response.status not in ignore:
@vangheem
Copy link
Member

vangheem commented Feb 8, 2019

yes, it would be great to add some retry logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants