[
https://issues.apache.org/jira/browse/SOLR-13407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16910567#comment-16910567
]
Jason Gerlowski commented on SOLR-13407:
----------------------------------------
Hey [~ab], I noticed recently that I can seemingly still use (standard) aliases
to index documents.
Am I missing something here? I ran {{git checkout
releases/lucene-solr/8.1.1}}, rebuilt, and can still see the behavior below:
{code}
➜ solr git:(fcbe46c28ce) ✗ bin/solr start -c
Waiting up to 180 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=20921). Happy searching!
➜ solr git:(fcbe46c28ce) ✗ bin/solr create -c foo
Created collection 'foo' with 1 shard(s), 1 replica(s) with config-set 'foo'
➜ solr git:(fcbe46c28ce) ✗ bin/solr create -c bar
Created collection 'bar' with 1 shard(s), 1 replica(s) with config-set 'bar'
➜ solr git:(fcbe46c28ce) ✗ curl -ilk -X GET
"http://localhost:8983/solr/admin/collections?action=CREATEALIAS&name=my_alias&collections=foo,bar"
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8
Content-Length: 57
{
"responseHeader":{
"status":0,
"QTime":128}}
➜ solr git:(fcbe46c28ce) ✗ curl -ilk -X POST -H "Content-type:
application/json" "http://localhost:8983/solr/my_alias/update?commit=true" -d
'[{"id": "asdf", "val_i": 4}]'
HTTP/1.1 200 OK
Content-Type: text/plain;charset=utf-8
Content-Length: 69
{
"responseHeader":{
"rf":1,
"status":0,
"QTime":373}}
{code}
> Reject updates sent to non-routed multi collection aliases
> ----------------------------------------------------------
>
> Key: SOLR-13407
> URL: https://issues.apache.org/jira/browse/SOLR-13407
> Project: Solr
> Issue Type: Improvement
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Priority: Major
> Fix For: 8.1, master (9.0)
>
> Attachments: SOLR-13407.patch
>
>
> Spin-off from SOLR-13262.
> Currently Solr uses a convention that updates sent to multi-collection
> aliases are applied only to the first collection on the list, which is
> nonintuitive and may hide bugs or accidental configuration changes made
> either in Solr or in client applications.
> This issue proposes to reject all such updates with an error.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]