This is an automated email from the ASF dual-hosted git repository.
jsinovassinnaik pushed a commit to branch UNOMI-606-migration-segments-scoring
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to
refs/heads/UNOMI-606-migration-segments-scoring by this push:
new a8983379a clean
a8983379a is described below
commit a8983379a29050c620b0e68575423f74d596fc9c
Author: jsinovassin <[email protected]>
AuthorDate: Mon Jul 11 16:28:30 2022 +0200
clean
---
.../src/main/java/org/apache/unomi/shell/migration/actions/Migrate.java | 2 +-
.../java/org/apache/unomi/shell/migration/utils/MigrationUtils.java | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git
a/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/actions/Migrate.java
b/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/actions/Migrate.java
index a3bf07837..80778ec2b 100644
---
a/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/actions/Migrate.java
+++
b/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/actions/Migrate.java
@@ -109,7 +109,7 @@ public class Migrate implements Action {
return null;
}
- ConsoleUtils.printMessage(session, "Finnish execution of: " +
migrateScript);
+ ConsoleUtils.printMessage(session, "Finish execution of: " +
migrateScript);
}
}
diff --git
a/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/utils/MigrationUtils.java
b/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/utils/MigrationUtils.java
index 22e1d3782..6b93dd0a0 100644
---
a/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/utils/MigrationUtils.java
+++
b/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/utils/MigrationUtils.java
@@ -64,7 +64,6 @@ public class MigrationUtils {
// Init requests
JSONObject originalIndexSettings = new
JSONObject(HttpUtils.executeGetRequest(httpClient, esAddress + "/" + indexName
+ "/_settings", null));
- // TODO UNOMI-606 validate following lines: (normally those properties
are automatically added to unomi indices so they should always be present on
the existing indices)
String newIndexRequest = newIndexSettings
.replace("#numberOfShards",
originalIndexSettings.getJSONObject(indexName).getJSONObject("settings").getJSONObject("index").getString("number_of_shards"))
.replace("#numberOfReplicas",
originalIndexSettings.getJSONObject(indexName).getJSONObject("settings").getJSONObject("index").getString("number_of_replicas"))