Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs: explain what happens when a full Elasticsearch reindex fails partway - #2695

Open
Daniel Kirkland (d-kirkland) wants to merge 1 commit into
mainfrom
docs/es-reindex-partial-failure
Open

Daniel Kirkland (d-kirkland) wants to merge 1 commit into
mainfrom
docs/es-reindex-partial-failure

Conversation

@d-kirkland

Copy link
Copy Markdown
Contributor

Summary

  • Adds a section to the Elasticsearch debugging guide that answers what happens when a full es:index run fails partway: there is no rollback, and the guide says which index is live, which indices stay, and what a new full run does to earlier ones.
  • Explains how doc_count in elasticsearch_index_task is lowered as soon as a message is handled, including for failed batches and Messenger retries, and that the alias can therefore switch to an index that is missing documents.
  • Explains how failed bulk items are logged and that the indexing exception is thrown again only when SHOPWARE_ES_THROW_EXCEPTION is enabled (default 1) or the environment is test.
  • Describes the steps of the CreateAliasTask alias switch, which commands run it, and what es:index:cleanup and es:reset remove.

Related links

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted.
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms.
  • I listed every dependent pull request that is not merged yet under Dependent PRs below.
  • Dependent changes that must be released, not only merged, before this documentation goes live have been published.
  • This pull request is ready for review.

Dependent PRs

Notes

  • This PR was fully AI generated (Claude Code) and requires human review. It has not been merged, approved or reviewed by the AI session. Please verify the claims and the changed text against the source before merging.
  • Type: documentation gap, an addition to an existing page. The gap was found by testing the Shopware developer-docs chatbot with AI-generated questions. It was not reported by developers.
  • Codebase files this text was checked against (tag v6.7.15.1): src/Core/Framework/Resources/config/packages/framework.yaml; src/Elasticsearch/DependencyInjection/services.php; src/Elasticsearch/Framework/Command/ElasticsearchCreateAliasCommand.php; src/Elasticsearch/Framework/Command/ElasticsearchIndexingCommand.php; src/Elasticsearch/Framework/Command/ElasticsearchResetCommand.php; src/Elasticsearch/Framework/Command/ElasticsearchStatusCommand.php; src/Elasticsearch/Framework/ElasticsearchHelper.php; src/Elasticsearch/Framework/ElasticsearchOutdatedIndexDetector.php; src/Elasticsearch/Framework/Indexing/CreateAliasTask.php; src/Elasticsearch/Framework/Indexing/CreateAliasTaskHandler.php; src/Elasticsearch/Framework/Indexing/ElasticsearchIndexer.php; src/Elasticsearch/Framework/Indexing/ElasticsearchIndexingMessage.php; src/Elasticsearch/Framework/Indexing/IndexCreator.php; src/Elasticsearch/Resources/config/packages/elasticsearch.yaml.
  • Not covered: how to re-run only the failed batches, and how admin search indexing (es:admin:index) handles progress and alias switches.
  • No page was moved or renamed, so no redirect is needed. The spellcheck has not been run here, so .wordlist.txt may need a word if CI flags one. There are no dependent pull requests.
  • Scope: main (Shopware 6.7) only.

🤖 Generated with Claude Code

…rtway

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@d-kirkland Daniel Kirkland (d-kirkland) added Undocumented Feature Feature which is not documented yet and is considered for documentation Improvement PR created to append/modify info in the existing article Guide Guides section of dev docs labels Nov 5, 2026
@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: 420d962
Preview: https://developer-documentation-dxpvzbj01-shopware-frontends.vercel.app
Workflow run: #5952

@shopware-dev-docs-connector

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Running.
Repository: shopware/docs
Commit: 420d962
Preview: Waiting for workflow logs.

2 similar comments
@shopware-dev-docs-connector

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Running.
Repository: shopware/docs
Commit: 420d962
Preview: Waiting for workflow logs.

@shopware-dev-docs-connector

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Running.
Repository: shopware/docs
Commit: 420d962
Preview: Waiting for workflow logs.

@d-kirkland

Copy link
Copy Markdown
Contributor Author

This PR was AI generatated. The system that is creating these PRs is continually evolving (or potentially, devolving). Comments or changes made to the PRs are analyzed and used as material for improving the docs generation and improvement system. The workflow that created this PR is an advancement based on the comments and changes that were made to PRs over the last few weeks.
I ask that engineers doing the reviews of these PRs are a bit patient and can offer observations that will help the system improve. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Guide Guides section of dev docs Improvement PR created to append/modify info in the existing article Undocumented Feature Feature which is not documented yet and is considered for documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant