Skip to content

Commit 29f16c5

Browse files
committed
Document the index corruption bug that gets fixed via Lucene 8.5.1. (#55232)
Using soft deletes on shrunk indices may cause corruption.
1 parent ed70d22 commit 29f16c5

File tree

7 files changed

+56
-0
lines changed

7 files changed

+56
-0
lines changed

docs/reference/release-notes/7.0.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Also see <<breaking-changes-7.0,Breaking changes in 7.0>>.
99
[float]
1010
=== Known issues
1111

12+
* Applying deletes or updates on an index after it has been shrunk may corrupt
13+
the index. In order to prevent this issue, it is recommended to stop shrinking
14+
read-write indices. For read-only indices, it is recommended to force-merge
15+
indices after shrinking, which significantly reduces the likeliness of this
16+
corruption in the case that deletes/updates would be applied by mistake. This
17+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
18+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
19+
1220
* Indices created in 6.x with <<date,`date`>> and <<date_nanos,`date_nanos`>> fields using formats
1321
that are incompatible with java.time patterns will cause parsing errors, incorrect date calculations or wrong search results.
1422
https://github.com/elastic/elasticsearch/pull/52555

docs/reference/release-notes/7.1.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Also see <<breaking-changes-7.1,Breaking changes in 7.1>>.
66
[float]
77
=== Known issues
88

9+
* Applying deletes or updates on an index after it has been shrunk may corrupt
10+
the index. In order to prevent this issue, it is recommended to stop shrinking
11+
read-write indices. For read-only indices, it is recommended to force-merge
12+
indices after shrinking, which significantly reduces the likeliness of this
13+
corruption in the case that deletes/updates would be applied by mistake. This
14+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
15+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
16+
917
* Indices created in 6.x with <<date,`date`>> and <<date_nanos,`date_nanos`>> fields using formats
1018
that are incompatible with java.time patterns will cause parsing errors, incorrect date calculations or wrong search results.
1119
https://github.com/elastic/elasticsearch/pull/52555

docs/reference/release-notes/7.2.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ Also see <<breaking-changes-7.2,Breaking changes in 7.2>>.
8888
[float]
8989
=== Known issues
9090

91+
* Applying deletes or updates on an index after it has been shrunk may corrupt
92+
the index. In order to prevent this issue, it is recommended to stop shrinking
93+
read-write indices. For read-only indices, it is recommended to force-merge
94+
indices after shrinking, which significantly reduces the likeliness of this
95+
corruption in the case that deletes/updates would be applied by mistake. This
96+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
97+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
98+
9199
* Indices created in 6.x with <<date,`date`>> and <<date_nanos,`date_nanos`>> fields using formats
92100
that are incompatible with java.time patterns will cause parsing errors, incorrect date calculations or wrong search results.
93101
https://github.com/elastic/elasticsearch/pull/52555

docs/reference/release-notes/7.3.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ Also see <<breaking-changes-7.3,Breaking changes in 7.3>>.
142142
[float]
143143
=== Known issues
144144

145+
* Applying deletes or updates on an index after it has been shrunk may corrupt
146+
the index. In order to prevent this issue, it is recommended to stop shrinking
147+
read-write indices. For read-only indices, it is recommended to force-merge
148+
indices after shrinking, which significantly reduces the likeliness of this
149+
corruption in the case that deletes/updates would be applied by mistake. This
150+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
151+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
152+
145153
* Indices created in 6.x with <<date,`date`>> and <<date_nanos,`date_nanos`>> fields using formats
146154
that are incompatible with java.time patterns will cause parsing errors, incorrect date calculations or wrong search results.
147155
https://github.com/elastic/elasticsearch/pull/52555

docs/reference/release-notes/7.4.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ Also see <<breaking-changes-7.4,Breaking changes in 7.4>>.
112112
[float]
113113
=== Known issues
114114

115+
* Applying deletes or updates on an index after it has been shrunk may corrupt
116+
the index. In order to prevent this issue, it is recommended to stop shrinking
117+
read-write indices. For read-only indices, it is recommended to force-merge
118+
indices after shrinking, which significantly reduces the likeliness of this
119+
corruption in the case that deletes/updates would be applied by mistake. This
120+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
121+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
122+
115123
* Activating the <<search-slow-log, search slow log>> should be avoided in this version.
116124
Any attempt to log a slow search can throw an AIOOBE due to a bug that
117125
performs concurrent modifications on a shared byte array.

docs/reference/release-notes/7.5.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ Also see <<breaking-changes-7.5,Breaking changes in 7.5>>.
9494
[float]
9595
=== Known issues
9696

97+
* Applying deletes or updates on an index after it has been shrunk may corrupt
98+
the index. In order to prevent this issue, it is recommended to stop shrinking
99+
read-write indices. For read-only indices, it is recommended to force-merge
100+
indices after shrinking, which significantly reduces the likeliness of this
101+
corruption in the case that deletes/updates would be applied by mistake. This
102+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
103+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
104+
97105
* Stop all {transforms} during a rolling upgrade to 7.5.
98106
If a {transform} is running during upgrade, the {transform} audit index might disappear.
99107
(issue: {issue}/49730[#49730])

docs/reference/release-notes/7.6.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ Also see <<breaking-changes-7.6,Breaking changes in 7.6>>.
155155
[float]
156156
=== Known issues
157157

158+
* Applying deletes or updates on an index after it has been shrunk may corrupt
159+
the index. In order to prevent this issue, it is recommended to stop shrinking
160+
read-write indices. For read-only indices, it is recommended to force-merge
161+
indices after shrinking, which significantly reduces the likeliness of this
162+
corruption in the case that deletes/updates would be applied by mistake. This
163+
bug is fixed in {es} 7.7 and later versions. More details can be found on the
164+
https://issues.apache.org/jira/browse/LUCENE-9300[corresponding issue].
165+
158166
* Indices created in 6.x with <<date,`date`>> and <<date_nanos,`date_nanos`>> fields using formats
159167
that are incompatible with java.time patterns will cause parsing errors, incorrect date calculations or wrong search results.
160168
https://github.com/elastic/elasticsearch/pull/52555

0 commit comments

Comments
 (0)