Skip to content

Commit

Permalink
replace ':' with '_'
Browse files Browse the repository at this point in the history
  • Loading branch information
noblepaul committed Jul 12, 2023
1 parent 7231b82 commit e8b7151
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private static void setMDCLoggingContext(String collectionName) {
private static void addReplica(String syntheticCollectionName, CoreContainer cores) {
SolrQueryResponse rsp = new SolrQueryResponse();
try {
String coreName = syntheticCollectionName + "_" + cores.getZkController().getNodeName();
String coreName = syntheticCollectionName + "_" + cores.getZkController().getNodeName().replace(':','_');
CollectionAdminRequest.AddReplica addReplicaRequest =
CollectionAdminRequest.addReplicaToShard(syntheticCollectionName, "shard1")
// we are fixing the name, so that no two replicas are created in the same node
Expand Down

0 comments on commit e8b7151

Please sign in to comment.