Skip to content

Commit

Permalink
XWIKI-22605: Solr re-indexes many documents after restarting on Postg…
Browse files Browse the repository at this point in the history
…reSQL

* Change the PostgreSQL locale used in integration tests to the
  recommended one that has sorting compatible with Solr.
  • Loading branch information
michitux committed Oct 24, 2024
1 parent 55d9a5e commit 4e230d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ private void startPostgreSQLContainer(TestConfiguration testConfiguration) throw
testConfiguration);

databaseContainer.addEnv("POSTGRES_ROOT_PASSWORD", DBPASSWORD);
databaseContainer.addEnv("POSTGRES_INITDB_ARGS", "--encoding=UTF8");
databaseContainer.addEnv("POSTGRES_INITDB_ARGS",
"--encoding=UTF8 --locale-provider=builtin --builtin-locale=C.UTF-8");

startDatabaseContainer(databaseContainer, 5432, testConfiguration);
}
Expand Down

0 comments on commit 4e230d8

Please sign in to comment.