Make Snapshot Logic Write Metadata after Segments Backport#9327
Make Snapshot Logic Write Metadata after Segments Backport#9327mergify[bot] merged 1 commit intomasterfrom
Conversation
0f56525 to
8b73dac
Compare
es/es-server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
8b73dac to
f5881f1
Compare
sql/src/test/java/io/crate/integrationtests/SnapshotRestoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
mfussenegger
left a comment
There was a problem hiding this comment.
I think we should also follow up on this with some QA tests (in crate-qa) that test snapshot compatibility between versions and also the mixed-cluster snapshot case.
We could re-use the minio server-layer recently introduced.
es/es-server/src/main/java/org/elasticsearch/repositories/Repository.java
Show resolved
Hide resolved
es/es-server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
sql/src/test/java/io/crate/integrationtests/SnapshotRestoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
6d23ec3 to
aa48a6d
Compare
seut
left a comment
There was a problem hiding this comment.
looks great, added just few testing related comments.
sql/src/test/java/io/crate/integrationtests/SnapshotRestoreIntegrationTest.java
Show resolved
Hide resolved
sql/src/test/java/io/crate/integrationtests/SnapshotRestoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
mfussenegger
left a comment
There was a problem hiding this comment.
Should this have a release notes entry (fix?) and be backported to 4.0?
Yes please. |
...s-server/src/main/java/org/elasticsearch/repositories/blobstore/ChecksumBlobStoreFormat.java
Outdated
Show resolved
Hide resolved
ok added, maybe have a final look before i merge about the change message. |
902832c to
9ec4cbf
Compare
sql/src/test/java/io/crate/integrationtests/SnapshotRestoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
yay |
Backport of elastic/elasticsearch#45689 Write metadata during snapshot finalization after segment files to prevent outdated metadata in case of dynamic mapping updates.
2f7c310 to
d9bb3e7
Compare
|
retest this please Running: Test class org.elasticsearch.index.engine.InternalEngineTests FAILURE: Test testRebuildLocalCheckpointTracker(org.elasticsearch.index.engine.InternalEngineTests)[2019-11-15T03:04:45,320][INFO ][o.e.i.e.InternalEngineTests] [testRebuildLocalCheckpointTracker] before test [2019-11-15T03:04:45,436][INFO ][o.e.i.e.InternalEngineTests] [testRebuildLocalCheckpointTracker] after test REPRODUCE WITH: ./gradlew null -Dtests.seed=18A00E0DB6C5742C -Dtests.class=org.elasticsearch.index.engine.InternalEngineTests -Dtests.method="testRebuildLocalCheckpointTracker" -Dtests.locale=ta-LK -Dtests.timezone=NZ java.lang.AssertionError: seq_no=54 max_seq_no=62 checkpoint=-1 Expected: |
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated.
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated. (cherry picked from commit 3091e26)
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated. (cherry picked from commit 3091e26)
This pull request is a backport of elastic/elasticsearch#47283 The purpose of this pull request is to speed up the snapshot finalization. This is archived by parallelizing the writes of the metadata in the snapshot finalization step. Also, this will generally speed up the snapshot process overall in case of large number of indices. This improvement makes sense, because the snapshot finalization takes much longer since #9327 is integrated. (cherry picked from commit 3091e26)
Summary of the changes / Why this improves CrateDB
Backport of elastic/elasticsearch#45689
Write metadata during snapshot finalization after segment files
to prevent outdated metadata in case of dynamic mapping updates.
Checklist
CHANGES.txtCHANGES.txt(E.g. AdminUI)