[ 
https://issues.apache.org/jira/browse/SOLR-10201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882909#comment-15882909
 ] 

Amrit Sarkar commented on SOLR-10201:
-------------------------------------

[~upayavira], thank you for the clarification. 

I understood that point, I was trying to add a button for SPLITSHARD and was 
running into "connection loss" every time I press the button. This is a piece 
of code here;
{noformat}
$scope.deleteReplica = function(replica) {
        Collections.deleteReplica({collection: replica.collection, 
shard:replica.shard, replica:replica.name}, function(data) {
          replica.deleted = true;
          $timeout(function() {
            $scope.refresh();
          }, 2000);
        });
      }
{noformat}
After 2000ms, refresh the page. I went deeper into dev-console on Chrome, was 
not able to find where we are setting out timeout? or 2sec is the timeout? or 
it has nothing to do with the JS call and timeouts are API specific?

> Admin UI: Add Collection "creates collection", "Connection to Solr lost", 
> when replicationFactor>1
> --------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-10201
>                 URL: https://issues.apache.org/jira/browse/SOLR-10201
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Admin UI
>    Affects Versions: 6.2
>            Reporter: Amrit Sarkar
>         Attachments: screenshot-1.png
>
>
> "Add Collection" fails miserably when replicationFactor >1.
> There must be a better way to handle the request we are making through JS.
> PF screenshot.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to