lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Solovyev (JIRA)" <>
Subject [jira] [Updated] (SOLR-7583) API to download a snapshot by name
Date Fri, 22 May 2015 21:18:17 GMT


Greg Solovyev updated SOLR-7583:
    Attachment: SOLR-7583.patch

This patch has this feature implemented on 5_x branch. The patch includes unit test for downloading
a snapshot as a zip file.
REST API for downloading a zipped snapshot:


The response returns a chunked filestream. First 8 bytes have the file size, and rest of the
stream is structured the same way as if you were making "filecontent" request: 
 - 4 bytes for chunk size
 - N bytes for next chunk

there is no support for checksum yet

> API to download a snapshot by name
> ----------------------------------
>                 Key: SOLR-7583
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Greg Solovyev
>         Attachments: SOLR-7583.patch
> What we are looking for:
> SolrCloud and Solr should have APIs to download a snapshot via HTTP. 
> For single node Solr, this API will find a snapshot and stream it back over HTTP. For
SolrCloud, this API will find a Replica that has the snapshot with requested name and stream
the snapshot from that replica. Since there are multiple files inside a snapshot, the API
should probably zip the snapshot folder before sending it back to the client.
> Why we need this:
> this will allow us to create and fetch fully contained archives of customer data where
each backup archive will contain Solr index as well as other customer data (DB, metadata,
files, etc).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message