Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert pinned ES snapshot #53645

Closed
wants to merge 9 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface FullIndexInfo {
exists: boolean;
indexName: string;
mappings: IndexMapping;
settings: { [name: string]: any };
}

/**
Expand All @@ -51,6 +52,9 @@ export async function fetchInfo(callCluster: CallCluster, index: string): Promis
aliases: {},
exists: false,
indexName: index,
settings: {
'indices.id_field_data.enabled': true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what this would do here. In addition, this is a cluster-level setting, so this won't work. I believe the solution here is to remove any sort/aggregating we have on _id

},
mappings: { dynamic: 'strict', properties: {} },
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export async function migrationContext(opts: MigrationOpts): Promise<Context> {
const alias = opts.index;
const source = createSourceContext(await fetchInfo(callCluster, alias), alias);
const dest = createDestContext(source, alias, opts.mappingProperties);

return {
callCluster,
alias,
Expand Down Expand Up @@ -115,6 +114,7 @@ function createDestContext(
aliases: {},
exists: false,
indexName: nextIndexName(source.indexName, alias),
settings: source.settings,
mappings: {
...activeMappings,
properties: {
Expand Down