[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165957#comment-17165957 ] ASF subversion and git services commented on SOLR-13169: Commit 9390e03ad5b4271fac3dd392cf8df59fe04c8bf0 in lucene-solr's branch refs/heads/branch_8x from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=9390e03 ] SOLR-13169 Improve docs for MOVEREPLICA (#1698) (cherry picked from commit b00d747eb6a94ab5775258b032e621f998ec44ba) (cherry picked from commit 396490b65ca1af6ff1f1157a9896c9528c234eea) > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Assignee: Gus Heck >Priority: Major > Attachments: SOLR-13169.patch, screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165956#comment-17165956 ] ASF subversion and git services commented on SOLR-13169: Commit 7b2c868ddcec2fe899fe2502dfacd3b702dd5550 in lucene-solr's branch refs/heads/branch_8_6 from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=7b2c868 ] SOLR-13169 Improve docs for MOVEREPLICA (#1699) (cherry picked from commit b00d747eb6a94ab5775258b032e621f998ec44ba) (cherry picked from commit 396490b65ca1af6ff1f1157a9896c9528c234eea) > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Assignee: Gus Heck >Priority: Major > Attachments: SOLR-13169.patch, screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134945#comment-17134945 ] ASF subversion and git services commented on SOLR-13169: Commit 396490b65ca1af6ff1f1157a9896c9528c234eea in lucene-solr's branch refs/heads/master from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=396490b ] SOLR-13169 Improve docs for MOVEREPLICA - better parity with ref guide for v2 api descriptions > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: SOLR-13169.patch, screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134939#comment-17134939 ] Gus Heck commented on SOLR-13169: - Corrections from another read through, and documentation for other parameters. Choosing not to document `waitForFinalState` at this time because it's unclear what value it has. This command already has a wait for the completion of the add command and causing the add command to wait/block on it's own doesn't seem useful (alternately, my understanding of that parameter is flawed and I shouldn't write it into the docs). Opened SOLR-14568 which may change the docs for timeout slightly. This turned into a lot more than originally anticipated, so attaching a patch summarizing changes to the ref guide in case that helps folks look over what I've done. Given no objections I'll port whatever applies to 8.x down to 8.x next weekend (and fix any objections). > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: SOLR-13169.patch, screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134936#comment-17134936 ] ASF subversion and git services commented on SOLR-13169: Commit b00d747eb6a94ab5775258b032e621f998ec44ba in lucene-solr's branch refs/heads/master from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=b00d747 ] SOLR-13169 Improve docs for MOVEREPLICA - document additional existing parameters, second pass fixing spelling and other details. > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127704#comment-17127704 ] ASF subversion and git services commented on SOLR-13169: Commit 12280819a179d622d83d1c6e483832eadef33a26 in lucene-solr's branch refs/heads/master from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=1228081 ] SOLR-13169 Improve docs for MOVEREPLICA - Warn that maxShardsPerNode is ignored, better detail on when some parameters are ignored > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127368#comment-17127368 ] Gus Heck commented on SOLR-13169: - hmm, maybe we should document this tidbit: {code:java} if (createNodeList != null) { // Overrides petty considerations about maxShardsPerNode {code} It does indeed seem to be the case that MOVEREPLICA can be used to violate maxShardsPerNode. This happens in the add replica code that move replica invokes, so while this was intentional there, it's not clear if it's a bug with respect to move replica... I created a collection with 1 per node, and moved a replica to one of the other nodes successfully: !screenshot-1.png! > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: screenshot-1.png, testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127217#comment-17127217 ] Gus Heck commented on SOLR-13169: - Looks like SourceNode is also ignored if replica is supplied, and the node chosen is done by this code: {code:java} Collections.shuffle(sliceReplicas, OverseerCollectionMessageHandler.RANDOM); replica = sliceReplicas.iterator().next(); {code} Neither {{CollectionOperation.MOVEREPLICA_OP}} nor {{ModifyCollectionCommand#moveReplica}} appear have code consulting auto-scaling, but I'm still trying to sort out whether or not the eventual sub call to {{AddReplicaCmd#addReplica}} can then be influenced by auto-scaling in some way. If so I think we'd have a bug with the current design, though if so it would also seem that the destination node could have been optional (with that usage meaning "find the optimal place for this replica and make it so"). > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127112#comment-17127112 ] Gus Heck commented on SOLR-13169: - Still to do: # document additional parameters # validate the extent to which auto-scaling is involved... with targetNode being required I am skeptical that auto-scaling is involved > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127107#comment-17127107 ] ASF subversion and git services commented on SOLR-13169: Commit ff8caeb7f4bc337dff089769dbc60af2c35c8b7d in lucene-solr's branch refs/heads/master from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=ff8caeb ] SOLR-13169 Improve docs for MOVEREPLICA - improve examples > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127106#comment-17127106 ] ASF subversion and git services commented on SOLR-13169: Commit 4b496b364f23d7a838cbca35892aff1433ce5477 in lucene-solr's branch refs/heads/master from Gus Heck [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=4b496b3 ] SOLR-13169 Improve docs for MOVEREPLICA - correct existing parameter docs. > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127069#comment-17127069 ] Gus Heck commented on SOLR-13169: - Test log showing that only one of replica or shard is required and replica has priority. In cases where replica is supplied and shard is ambiguous (more than one replica for the shard on the node) the command chooses one but the criteria of that choice are not yet clear. > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > Attachments: testing.txt > > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127026#comment-17127026 ] Gus Heck commented on SOLR-13169: - And I can move it back again without the shard param like so: {code} http://localhost:8983/solr/admin/collections?action=MOVEREPLICA&collection=test&targetNode=192.168.2.171:8983_solr&fromNode=192.168.2.171:8982_solr&replica=core_node6 { "responseHeader": { "status": 0, "QTime": 3668 }, "success": "MOVEREPLICA action completed successfully, moved replica=test_shard1_replica_n5 at node=192.168.2.171:8982_solr to replica=test_shard1_replica_n7 at node=192.168.2.171:8983_solr" } {code} > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-13169) Move Replica Docs need improvement (V1 and V2 introspect)
[ https://issues.apache.org/jira/browse/SOLR-13169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127023#comment-17127023 ] Gus Heck commented on SOLR-13169: - Bumping into this again... This (without replica param) succeeded, so replica is not always required: {code}http://localhost:8983/solr/admin/collections?action=MOVEREPLICA&collection=test&targetNode=192.168.2.171:8982_solr&fromNode=192.168.2.171:8983_solr&shard=shard1 { "responseHeader": { "status": 0, "QTime": 5060 }, "success": "MOVEREPLICA action completed successfully, moved replica=test_shard1_replica_n1 at node=192.168.2.171:8983_solr to replica=test_shard1_replica_n5 at node=192.168.2.171:8982_solr" } {code} > Move Replica Docs need improvement (V1 and V2 introspect) > - > > Key: SOLR-13169 > URL: https://issues.apache.org/jira/browse/SOLR-13169 > Project: Solr > Issue Type: Improvement > Components: v2 API >Reporter: Gus Heck >Priority: Major > > At a minimum required parameters should be noted equally in both places. > Conversation with [~ab] indicates that there are also some discrepancies in > what is and is not actually required in docs vs code. ("in MoveReplicaCmd if > you specify “replica” then “shard” is completely ignored") > Also in v2 it seems shard might be inferred from the URL and in that case > it's not clear if the URL or the json takes precedence. > From introspect: > {code:java} > "move-replica": { > "type": "object", > "documentation": > "https://lucene.apache.org/solr/guide/collections-api.html#movereplica";, > "description": "This command moves a replica from one > node to a new node. In case of shared filesystems the `dataDir` and `ulogDir` > may be reused.", > "properties": { > "replica": { > "type": "string", > "description": "The name of the replica" > }, > "shard": { > "type": "string", > "description": "The name of the shard" > }, > "sourceNode": { > "type": "string", > "description": "The name of the node that > contains the replica." > }, > "targetNode": { > "type": "string", > "description": "The name of the destination node. > This parameter is required." > }, > "waitForFinalState": { > "type": "boolean", > "default": "false", > "description": "Wait for the moved replica to > become active." > }, > "timeout": { > "type": "integer", > "default": 600, > "description": "Timeout to wait for replica to > become active. For very large replicas this may need to be increased." > }, > "inPlaceMove": { > "type": "boolean", > "default": "true", > "description": "For replicas that use shared > filesystems allow 'in-place' move that reuses shared data." > } > {code} > From ref guide for V1: > MOVEREPLICA Parameters > collection > The name of the collection. This parameter is required. > shard > The name of the shard that the replica belongs to. This parameter is required. > replica > The name of the replica. This parameter is required. > sourceNode > The name of the node that contains the replica. This parameter is required. > targetNode > The name of the destination node. This parameter is required. > async > Request ID to track this action which will be processed asynchronously. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org