Skip to content

Commit 4db5330

Browse files
authored
Merge branch 'main' into esql-dls-opt-in-ccs-test
2 parents 11eb1c6 + 9837e78 commit 4db5330

File tree

47 files changed

+4127
-1452
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4127
-1452
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcVersions.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ private List<Version> getReleased() {
252252
.toList();
253253
}
254254

255+
public List<Version> getReadOnlyIndexCompatible() {
256+
// Lucene can read indices in version N-2
257+
int compatibleMajor = currentVersion.getMajor() - 2;
258+
return versions.stream().filter(v -> v.getMajor() == compatibleMajor).sorted(Comparator.naturalOrder()).toList();
259+
}
260+
261+
public void withLatestReadOnlyIndexCompatible(Consumer<Version> versionAction) {
262+
var compatibleVersions = getReadOnlyIndexCompatible();
263+
if (compatibleVersions == null || compatibleVersions.isEmpty()) {
264+
throw new IllegalStateException("No read-only compatible version found.");
265+
}
266+
versionAction.accept(compatibleVersions.getLast());
267+
}
268+
255269
/**
256270
* Return versions of Elasticsearch which are index compatible with the current version.
257271
*/

docs/changelog/117583.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pr: 117583
2+
summary: Removing index alias creation for deprecated transforms notification index
3+
area: Machine Learning
4+
type: deprecation
5+
issues: []
6+
deprecation:
7+
title: Removing index alias creation for deprecated transforms notification index
8+
area: Transform
9+
details: >-
10+
As part of the migration from 7.x to 8.x, the `.data-frame-notifications-1` index
11+
was deprecated and replaced with the `.transform-notifications-000002` index.
12+
The index is no longer created by default, all writes are directed to the new index,
13+
and any clusters with the deprecated index will have an alias created to ensure that
14+
reads are still retrieving data that was written to the index before the migration to 8.x.
15+
This change removes the alias from the deprecated index in 9.x. Any clusters with the alias present
16+
will retain it, but it will not be created on new clusters.
17+
impact: No known end user impact.

0 commit comments

Comments
 (0)