lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Bialecki (JIRA)" <>
Subject [jira] [Commented] (SOLR-13271) Implement a read-only mode for a collection
Date Tue, 26 Feb 2019 13:27:00 GMT


Andrzej Bialecki  commented on SOLR-13271:

This patch implements the read-only functionality as a collection property, which can be set
/ unset using MODIFYCOLLECTION command.

Setting the property to true not only blocks the processing of new updates but also reloads
the collection, which guarantees that all in-flight updates (and background merges) are properly
committed and finished.

Updates sent to a read-only collection are rejected in {{DistributedUpdateProcessor}}. Updates
still can be forced by specifying a {{readOnlyIgnore=true}} request param. Updates are accepted
again when the property is missing or set to false.

One thing I wasn't sure about was whether to use an attribute that is a first-class citizen
in DocCollection, or use an auxiliary property. Current patch uses {{property.readOnly}},
which guarantees good back-compat but is somewhat awkward to manipulate:
 * set the property:
 * unset the property:

 A more natural API would be to use a primary collection attribute:

> Implement a read-only mode for a collection
> -------------------------------------------
>                 Key: SOLR-13271
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 8.x, master (9.0)
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>            Priority: Major
>             Fix For: 8.x, master (9.0)
>         Attachments: SOLR-13271.patch
> Spin-off from SOLR-11127. In some scenarios it's useful to be able to block any updates
to a collection, while still being able to search its contents.
> Currently the scope of this issue is SolrCloud, ie. standalone Solr will not be supported.

This message was sent by Atlassian JIRA

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

View raw message