-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add support to create empty local translog if remote translog is empty #10854
Add support to create empty local translog if remote translog is empty #10854
Conversation
Compatibility status:Checks if related components are compatible with change 2e3fbfd Incompatible componentsIncompatible components: [https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/performance-analyzer.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git] |
Gradle Check (Jenkins) Run Completed with:
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #10854 +/- ##
============================================
+ Coverage 71.25% 71.32% +0.06%
- Complexity 58684 58749 +65
============================================
Files 4869 4869
Lines 276512 276520 +8
Branches 40204 40212 +8
============================================
+ Hits 197030 197228 +198
+ Misses 63020 62813 -207
- Partials 16462 16479 +17 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sachin Kale <[email protected]>
Signed-off-by: Sachin Kale <[email protected]>
99e3ddd
to
b9bcad1
Compare
Signed-off-by: Sachin Kale <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is our marker here to denote completeness, to ensure we aren't marking incomplete data available. In the case you call out like shard creation failure, can we not retry the same and fail fast if we aren't able to write to remote store.
If that is something that you think is hard, having a force_allocate
in the remotestore/restore
API sounds like a better option
Gradle Check (Jenkins) Run Completed with:
|
We can retry on failure but we decided to log the error and continue the shard creation in #10839. There are a couple of reasons:
|
Signed-off-by: Sachin Kale <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
This looks giving a risky parameter in hands of the user .
This issue is rare that during failover the primary is able to download all the segment files, but is not able to upload empty tlog/ckp files. We should rather let the failovers fail. In that case restore API can be retried again , right ? |
Gradle Check (Jenkins) Run Completed with:
|
This PR is stalled because it has been open for 30 days with no activity. |
Hi @sachinpkale, Is this being worked upon? Feel free to reach out to maintainers for further reviews. |
This PR is stalled because it has been open for 30 days with no activity. |
Not going ahead with this change as creating shard without translog can result in data loss. |
Description
force_empty_translog
, ignores remote translog and creates empty translog on local.Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.