Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into pr/2907
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Dec 19, 2024
2 parents 4e43fed + 61609b1 commit b4937aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
3 changes: 3 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ Bug Fixes

* SOLR-17574: Fix AllowListUrlChecker when liveNodes changes. Remove ClusterState.getHostAllowList (Bruno Roustant, David Smiley)

* SOLR-17595: Fix two issues in Solr CLI that prevent Solr from starting with the techproducts example and from
correctly parsing arguments on Windows that start with -D and have multiple values separated by "," or spaces. (Christos Malliaridis)

Dependency Upgrades
---------------------
(No changes)
Expand Down
4 changes: 1 addition & 3 deletions solr/bin/solr.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ goto repeat_passthru

:end_passthru
set "PASSTHRU=%PASSTHRU_KEY%=%PASSTHRU_VALUES%"
echo "Passing through %PASSTHRU%"

IF NOT "%SOLR_OPTS%"=="" (
set "SOLR_OPTS=%SOLR_OPTS% %PASSTHRU%"
Expand Down Expand Up @@ -861,8 +860,7 @@ IF NOT EXIST "%SOLR_HOME%\" (
)
)

@REM This is quite hacky, but examples rely on a different log4j2.xml
@REM so that we can write logs for examples to %SOLR_HOME%\..\logs
@REM Handle overriding where logs are written to
IF [%SOLR_LOGS_DIR%] == [] (
set "SOLR_LOGS_DIR=%SOLR_SERVER_DIR%\logs"
) ELSE (
Expand Down
4 changes: 3 additions & 1 deletion solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ protected void runExample(CommandLine cli, String exampleName) throws Exception
collectionName,
"--type",
"application/xml",
exampledocsDir.toAbsolutePath() + "/*.xml"
"--filetypes",
"xml",
exampledocsDir.toAbsolutePath().toString()
};
PostTool postTool = new PostTool();
CommandLine postToolCli = SolrCLI.parseCmdLine(postTool, args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1517,12 +1517,11 @@ private Long readIntervalNs(String interval) {

public static final String FETCH_FROM_LEADER = "fetchFromLeader";

// in case of TLOG replica, if leaderVersion = zero, don't do commit
// otherwise updates from current tlog won't be copied over properly to the new tlog, leading to
// data
// loss
// don't commit on leader version zero for PULL replicas as PULL should only get its index
// state from leader
// In case of TLOG replica, if leaderVersion = zero, don't do commit
// otherwise updates from current tlog won't be copied over properly to the new tlog,
// leading to data loss.
// Don't commit on leader version zero for PULL replicas as PULL should only get its index
// state from leader.
public static final String SKIP_COMMIT_ON_LEADER_VERSION_ZERO = "skipCommitOnLeaderVersionZero";

public static final String MESSAGE = "message";
Expand Down

0 comments on commit b4937aa

Please sign in to comment.