Skip to content

Commit ee71623

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

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-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

0 commit comments

Comments
 (0)