You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2020/12/23 08:59:02 UTC
[GitHub] [lucene-solr] Sasasu opened a new pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Sasasu opened a new pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164
<!--
_(If you are a project committer then you may remove some/all of the following template.)_
Before creating a pull request, please file an issue in the ASF Jira system for Lucene or Solr:
* https://issues.apache.org/jira/projects/LUCENE
* https://issues.apache.org/jira/projects/SOLR
You will need to create an account in Jira in order to create an issue.
The title of the PR should reference the Jira issue number in the form:
* LUCENE-####: <short description of problem or changes>
* SOLR-####: <short description of problem or changes>
LUCENE and SOLR must be fully capitalized. A short description helps people scanning pull requests for items they can work on.
Properly referencing the issue in the title ensures that Jira is correctly updated with code review comments and commits. -->
# Description
`Utils.getBaseUrlForNodeName` split the nodename by the first '_'
In ZK, Solr add '_solr' to the end of the hostname
# Solution
should split by the last '_'
# Tests
# Checklist
Please review the following and check all that apply:
- [x] I have reviewed the guidelines for [How to Contribute](https://wiki.apache.org/solr/HowToContribute) and my code conforms to the standards described there to the best of my ability.
- [x] I have created a Jira issue and added the issue ID to my pull request title.
- [x] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended)
- [x] I have developed this patch against the `master` branch.
- [ ] I have run `./gradlew check`.
- [x] I have added tests for my changes.
- [ ] I have added documentation for the [Ref Guide](https://github.com/apache/lucene-solr/tree/master/solr/solr-ref-guide) (for Solr changes only).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] Sasasu commented on a change in pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
Sasasu commented on a change in pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#discussion_r547981945
##########
File path: solr/solrj/src/test/org/apache/solr/common/cloud/UrlSchemeTest.java
##########
@@ -35,12 +35,12 @@ public void testApplyUrlScheme() {
String liveNode1 = "192.168.1.1:8983_solr";
String liveNode2 = "127.0.0.1:8983_solr";
String liveNode3 = "127.0.0.1_";
- String liveNode4 = "127.0.0.1:61631_l_%2Fig";
+ String liveNode4 = "127.0.0.1:61631_lx%2Fig";
Review comment:
SOLR-15058 will break this UrlSchemeTest
I will start a discussion in mail list
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] Sasasu commented on a change in pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
Sasasu commented on a change in pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#discussion_r547981945
##########
File path: solr/solrj/src/test/org/apache/solr/common/cloud/UrlSchemeTest.java
##########
@@ -35,12 +35,12 @@ public void testApplyUrlScheme() {
String liveNode1 = "192.168.1.1:8983_solr";
String liveNode2 = "127.0.0.1:8983_solr";
String liveNode3 = "127.0.0.1_";
- String liveNode4 = "127.0.0.1:61631_l_%2Fig";
+ String liveNode4 = "127.0.0.1:61631_lx%2Fig";
Review comment:
SOLR-15058 will break this UrlSchemeTest
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] thelabdude commented on a change in pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
thelabdude commented on a change in pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#discussion_r549791973
##########
File path: solr/solrj/src/test/org/apache/solr/common/cloud/UrlSchemeTest.java
##########
@@ -35,12 +35,12 @@ public void testApplyUrlScheme() {
String liveNode1 = "192.168.1.1:8983_solr";
String liveNode2 = "127.0.0.1:8983_solr";
String liveNode3 = "127.0.0.1_";
- String liveNode4 = "127.0.0.1:61631_l_%2Fig";
+ String liveNode4 = "127.0.0.1:61631_lx%2Fig";
Review comment:
fwiw ~ you can't look at the last underscore because nodeName encoding changes `/` to `_` in the context as you can't create znodes with `/` in them for obvious reasons ;-)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] Sasasu closed pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
Sasasu closed pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] thelabdude commented on a change in pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
thelabdude commented on a change in pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#discussion_r549807523
##########
File path: solr/solrj/src/test/org/apache/solr/common/cloud/UrlSchemeTest.java
##########
@@ -35,12 +35,12 @@ public void testApplyUrlScheme() {
String liveNode1 = "192.168.1.1:8983_solr";
String liveNode2 = "127.0.0.1:8983_solr";
String liveNode3 = "127.0.0.1_";
- String liveNode4 = "127.0.0.1:61631_l_%2Fig";
+ String liveNode4 = "127.0.0.1:61631_lx%2Fig";
Review comment:
Adding the following check to Utils:
```
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/Utils.java b/solr/solrj/src/java/org/apache/solr/common/util/Utils.java
index 86bef9177c8..13e732d4ed7 100644
--- a/solr/solrj/src/java/org/apache/solr/common/util/Utils.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/Utils.java
@@ -759,7 +759,12 @@ public class Utils {
return getBaseUrlForNodeName(nodeName, urlScheme, false);
}
public static String getBaseUrlForNodeName(final String nodeName, String urlScheme, boolean isV2) {
- final int _offset = nodeName.indexOf("_");
+ final int colonAt = nodeName.indexOf(':');
+ if (colonAt == -1) {
+ throw new IllegalArgumentException("nodeName does not contain expected ':' separator: " + nodeName);
+ }
+
+ final int _offset = nodeName.indexOf("_", colonAt);
if (_offset < 0) {
throw new IllegalArgumentException("nodeName does not contain expected '_' separator: " + nodeName);
}
```
Results in the following test failures:
```
1669 tests completed, 3 failed, 20 skipped
4619 tests completed, 26 failed, 210 skipped
ERROR: The following test(s) have failed:
- org.apache.solr.common.cloud.UrlSchemeTest.testApplyUrlScheme (:solr:solrj)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/solrj/build/test-results/test/outputs/OUTPUT-org.apache.solr.common.cloud.UrlSchemeTest.txt
Reproduce with: gradlew :solr:solrj:test --tests "org.apache.solr.common.cloud.UrlSchemeTest.testApplyUrlScheme" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.client.solrj.routing.ShufflingReplicaListTransformerTest.testTransformReplicas (:solr:solrj)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/solrj/build/test-results/test/outputs/OUTPUT-org.apache.solr.client.solrj.routing.ShufflingReplicaListTransformerTest.txt
Reproduce with: gradlew :solr:solrj:test --tests "org.apache.solr.client.solrj.routing.ShufflingReplicaListTransformerTest.testTransformReplicas" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.client.solrj.routing.ReplicaListTransformerTest.testTransform (:solr:solrj)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/solrj/build/test-results/test/outputs/OUTPUT-org.apache.solr.client.solrj.routing.ReplicaListTransformerTest.txt
Reproduce with: gradlew :solr:solrj:test --tests "org.apache.solr.client.solrj.routing.ReplicaListTransformerTest.testTransform" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testShardsParam_DownReplica (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testShardsParam_DownReplica" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testSimple_OnlyNrt (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testSimple_OnlyNrt" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testShardsParam_DeadNode (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testShardsParam_DeadNode" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testSimple_ShardsParam (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testSimple_ShardsParam" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testSimple_UsingClusterState (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testSimple_UsingClusterState" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testMultipleCollections (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testMultipleCollections" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.component.CloudReplicaSourceTest.testMultipleCollections_OnlyNrt (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.component.CloudReplicaSourceTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.component.CloudReplicaSourceTest.testMultipleCollections_OnlyNrt" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.handler.admin.HealthCheckHandlerTest.testFindUnhealthyCores (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.handler.admin.HealthCheckHandlerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.handler.admin.HealthCheckHandlerTest.testFindUnhealthyCores" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.core.CoreSorterTest.integrationTest (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.core.CoreSorterTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.core.CoreSorterTest.integrationTest" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cluster.events.ClusterEventProducerTest.testEvents (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cluster.events.ClusterEventProducerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cluster.events.ClusterEventProducerTest.testEvents" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.ClusterStateMockUtilTest.testBuildClusterState_Simple (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.ClusterStateMockUtilTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.ClusterStateMockUtilTest.testBuildClusterState_Simple" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.ClusterStateMockUtilTest.testBuildClusterState_ReplicaTypes (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.ClusterStateMockUtilTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.ClusterStateMockUtilTest.testBuildClusterState_ReplicaTypes" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.ClusterStateMockUtilTest.testBuildClusterState_ReplicaStateAndType (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.ClusterStateMockUtilTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.ClusterStateMockUtilTest.testBuildClusterState_ReplicaStateAndType" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverriddenZkACLAndCredentialsProvidersTest.testWrongCredentialsSolrZkClientFactoryUsingCompletelyNewProviders (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverriddenZkACLAndCredentialsProvidersTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverriddenZkACLAndCredentialsProvidersTest.testWrongCredentialsSolrZkClientFactoryUsingCompletelyNewProviders" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.NodeMutatorTest.downNodeReportsAllImpactedCollectionsAndNothingElse (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.NodeMutatorTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.NodeMutatorTest.downNodeReportsAllImpactedCollectionsAndNothingElse" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testRemovalOfLastReplica (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testRemovalOfLastReplica" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testExternalClusterStateChangeBehavior (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testExternalClusterStateChangeBehavior" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testOverseerFailure (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testOverseerFailure" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testStateChange (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testStateChange" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testShardLeaderChange (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testShardLeaderChange" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testShardAssignment (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testShardAssignment" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testDownNodeFailover (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testDownNodeFailover" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testReplay (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testReplay" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testOverseerStatsReset (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testOverseerStatsReset" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testBadQueueItem (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testBadQueueItem" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
- org.apache.solr.cloud.OverseerTest.testDoubleAssignment (:solr:core)
Test output: /Users/tjp/dev/oss/lucene-solr/master/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.cloud.OverseerTest.txt
Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.cloud.OverseerTest.testDoubleAssignment" -Ptests.jvms=12 -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=14FE50F5891679FC -Ptests.file.encoding=US-ASCII
```
This looks easy to fix up ... I'm out of the office (back Jan 5) so if you want to apply my update ^ and fix these tests (probably using improper nodeName values) @Sasasu ... otherwise, I'll fix and merge on Jan 5 ~ happy new year
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] ErickErickson commented on a change in pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
ErickErickson commented on a change in pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#discussion_r547980795
##########
File path: solr/solrj/src/test/org/apache/solr/common/cloud/UrlSchemeTest.java
##########
@@ -35,12 +35,12 @@ public void testApplyUrlScheme() {
String liveNode1 = "192.168.1.1:8983_solr";
String liveNode2 = "127.0.0.1:8983_solr";
String liveNode3 = "127.0.0.1_";
- String liveNode4 = "127.0.0.1:61631_l_%2Fig";
+ String liveNode4 = "127.0.0.1:61631_lx%2Fig";
Review comment:
The changes to this test don't exercise the code change since they only have one underscore. It would be better to leave liveNode4 alone, and add, say, liveNode5 with a value like:
"127.0.0.1:61631_l_%2Fig_whatever"
Also see the comment in the JIRA.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] thelabdude commented on pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
thelabdude commented on pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#issuecomment-754824054
Hi @Sasasu ... Please close this PR as I've made the changes here: https://github.com/apache/lucene-solr/pull/2178
Thanks for reporting and your initial PR; I gave you mention in the solr/CHANGES.txt in my PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] thelabdude commented on a change in pull request #2164: SOLR-15058: get the correct hostname when hostname contain '_'
Posted by GitBox <gi...@apache.org>.
thelabdude commented on a change in pull request #2164:
URL: https://github.com/apache/lucene-solr/pull/2164#discussion_r549791687
##########
File path: solr/solrj/src/test/org/apache/solr/common/cloud/UrlSchemeTest.java
##########
@@ -35,12 +35,12 @@ public void testApplyUrlScheme() {
String liveNode1 = "192.168.1.1:8983_solr";
String liveNode2 = "127.0.0.1:8983_solr";
String liveNode3 = "127.0.0.1_";
- String liveNode4 = "127.0.0.1:61631_l_%2Fig";
+ String liveNode4 = "127.0.0.1:61631_lx%2Fig";
Review comment:
I think a good solution is to find the first underscore after the colon. If you look at `generateNodeName` in ZkController then you'll see the colon is always added to the generated `nodeName`. This may require some tests to update the test node name as there are some tests that use an improper node name that doesn't adhere to how `ZkController#generateNodeName` creates actual node names at runtime, this seems like a bad test impl. to me and should be corrected.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org