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

Richard Goodman edited comment on SOLR-14319 at 3/21/22, 6:49 PM:
------------------------------------------------------------------

Hi [~epugh]

I've gotten round to updating the patch for this one, sorry for the delay, It's 
been some time I've properly done some Solr work and have been given an 
upgraded laptop at work and in the process of porting things over. 

Anyway, back to the patch. I've slightly updated with the following;

- Added a check (and warning message, preventing the collection being created) 
if the collection is only made up of pull replicas
- Instead of a drop down selection, allowed the user to specify the number of 
each replicaType possible, for example 1 tlog replica, 2 pull replicas

I'll add a bunch of images to reflect this as well as the patch.

 [^SOLR-14319-Replica-type-on-add-collection-UI.patch] 

Attempting to create a collection with just pull replicas will result in an 
error message, preventing you from creating the collection. Influence taken 
from the solr documentation 
[here|https://solr.apache.org/guide/8_11/collection-management.html#create-parameters];
{quote}This type is not eligible to become a leader and should not be the only 
type of replicas in the collection.{quote}
!only-pulls.png!

What creating a collection with 2 way replicated tlog replicas (ignore the 
error message, thats just from before)
!only-tlogs.png!

Creating a collection the normal way (advanced options are expanded for full 
transparency)
!ordinary-approach.png! 

For full completeness, I also tested what would happen if instead of using 
{{replicationFactor}}, but instead specified 2 nrtReplicas
!specifying-nrt-replicas.png! 

And finally, the end result of all of these operations
!end-result.png!   


----

Would be keen for any feedback possible. 

On a separate note, I was wondering if you have any advice. I'm new to Gradle, 
and was using the gradle wrapper ({{./gradlew}}) as recommended in the README, 
but it seemed when I was rebuilding ({{./gradlew assemble}}), it wouldn't apply 
any updated changes, despite the files being saved, and even at times, the 
packaged folder being deleted. 

Have you ever encountered this issue and have a recommendation? 

Cheers,   


was (Author: goodman):
Hi [~epugh]

I've gotten round to updating the patch for this one, sorry for the delay, It's 
been some time I've properly done some Solr work and have been given an 
upgraded laptop at work and in the process of porting things over. 

Anyway, back to the patch. I've slightly updated with the following;

- Added a check (and warning message, preventing the collection being created) 
if the collection is only made up of pull replicas
- Instead of a drop down selection, allowed the user to specify the number of 
each replicaType possible, for example 1 tlog replica, 2 pull replicas

I'll add a bunch of images to reflect this as well as the patch.

 [^SOLR-14319-Replica-type-on-add-collection-UI.patch] 

Attempting to create a collection with just pull replicas will result in an 
error message, preventing you from creating the collection. Influence taken 
from the solr documentation 
[here|https://solr.apache.org/guide/8_11/collection-management.html#create-parameters];
{quote}This type is not eligible to become a leader and should not be the only 
type of replicas in the collection.{quote}
!only-pulls.png!

What creating a collection with 2 way replicated tlog replicas (ignore the 
error message, thats just from before)
!only-tlogs.png!

Creating a collection the normal way (advanced options are expanded for full 
transparency)
!ordinary-approach.png! 

For full completeness, I also tested what would happen if instead of using 
{{replicationFactor}}, but instead specified 2 nrtReplicas
!specifying-nrt-replicas.png! 

And finally, the end result of all of these operations
!end-result.png!      

> Add ability to select replicatype to admin ui collection creation
> -----------------------------------------------------------------
>
>                 Key: SOLR-14319
>                 URL: https://issues.apache.org/jira/browse/SOLR-14319
>             Project: Solr
>          Issue Type: Improvement
>          Components: Admin UI
>    Affects Versions: 7.7.2
>            Reporter: Richard Goodman
>            Priority: Minor
>         Attachments: SOLR-14319-Replica-type-on-add-collection-UI.patch, 
> SOLR-14319.patch, Screenshot 2020-03-10 at 16.26.28.png, Screenshot 
> 2020-03-10 at 16.33.52.png, end-result.png, only-pulls.png, only-tlogs.png, 
> ordinary-approach.png, specifying-nrt-replicas.png
>
>
> This is just a small patch that allows you to select the replica type when 
> creating a collection. I'm aware that a possible strategy for replica types 
> of a collection can be {{'tlog + pull'}}, because of this, I'm open to 
> feedback on a different way to display this feature. Currently I have a drop 
> down box defining the types of replicas, with it defaulting to nrt, and it 
> will take the replication factor specified and will that many replicas of a 
> given type.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to