Hello,

this fuctions works perfectly when i try to create a snapshot of indexes 
lower than 100mb. But if i try to do it with one index that have more than 
600mb i receive an ugly exception.

Anyone know if i should use *master_timeout *in order to get it working?
----code----
    def create_snapshot(self):
        """
        Create new snapshot
        :return:
        """
        print "Creating new snapshot"
        print "Snapshot: " + self.snap_name
        try:
            self.es.snapshot.create(
                repository=self.repository_name,
                snapshot=self.snap_name,
                wait_for_completion="true"
            )
        except elasticsearch.ElasticsearchException:
            raise
        else:
            print "Snapshot created"
        finally:
            pass
---code----

----- ERROR-----
  File "/usr/lib/python2.6/site-packages/elasticsearch/client/utils.py", 
line 68, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/usr/lib/python2.6/site-packages/elasticsearch/client/snapshot.py", 
line 19, in create
    repository, snapshot), params=params, body=body)
  File "/usr/lib/python2.6/site-packages/elasticsearch/transport.py", line 
284, in perform_request
    status, headers, data = connection.perform_request(method, url, params, 
body, ignore=ignore, timeout=timeout)
  File 
"/usr/lib/python2.6/site-packages/elasticsearch/connection/http_urllib3.py", 
line 51, in perform_request
    raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: 
ConnectionError(HTTPConnectionPool(host='127.0.0.1', port=9200): Read timed 
out. (read timeout=10)) caused by: 
ReadTimeoutError(HTTPConnectionPool(host='127.0.0.1', port=9200): Read 
timed out. (read timeout=10))

----- ERROR-----

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c4b27e68-c588-4d12-b8db-01b41c320687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to