You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2023/05/03 15:06:13 UTC

[unomi] branch avoidMigrateNewRolloverIndices created (now 785ca6274)

This is an automated email from the ASF dual-hosted git repository.

jkevan pushed a change to branch avoidMigrateNewRolloverIndices
in repository https://gitbox.apache.org/repos/asf/unomi.git


      at 785ca6274 UNOMI-770: avoid migrating rollover indices in a previous migration scripts from 2.0.0

This branch includes the following new commits:

     new 785ca6274 UNOMI-770: avoid migrating rollover indices in a previous migration scripts from 2.0.0

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[unomi] 01/01: UNOMI-770: avoid migrating rollover indices in a previous migration scripts from 2.0.0

Posted by jk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jkevan pushed a commit to branch avoidMigrateNewRolloverIndices
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit 785ca62742c462180227b2869b6bcdf8160f9041
Author: Kevan <ke...@jahia.com>
AuthorDate: Wed May 3 17:05:54 2023 +0200

    UNOMI-770: avoid migrating rollover indices in a previous migration scripts from 2.0.0
---
 .../META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy b/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy
index a9dc7ae1f..cb9f5ba1a 100644
--- a/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy
+++ b/tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-2.0.0-15-eventsReindex.groovy
@@ -33,7 +33,7 @@ String baseSettings = MigrationUtils.resourceAsString(bundleContext, "requestBod
 String reIndexScript = MigrationUtils.getFileWithoutComments(bundleContext, "requestBody/2.0.0/event_migrate.painless");
 String mapping = MigrationUtils.extractMappingFromBundles(bundleContext, "event.json")
 String newIndexSettings = MigrationUtils.buildIndexCreationRequest(baseSettings, mapping, context, true)
-Set<String> eventIndices = MigrationUtils.getIndexesPrefixedBy(context.getHttpClient(), esAddress, "${indexPrefix}-event-")
+Set<String> eventIndices = MigrationUtils.getIndexesPrefixedBy(context.getHttpClient(), esAddress, "${indexPrefix}-event-date-")
 eventIndices.each { eventIndex ->
     MigrationUtils.reIndex(context.getHttpClient(), bundleContext, esAddress, eventIndex, newIndexSettings, reIndexScript, context)
 }
\ No newline at end of file