Skip to content
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

[Elasticsearch plugin] Newly-created products not correctly indexed #145

Closed
michaelbromley opened this issue Aug 26, 2019 · 1 comment
Closed
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@michaelbromley
Copy link
Member

Describe the bug
When creating a new product, it does not get indexed by Elasticsearch.

To Reproduce
Steps to reproduce the behavior:

  1. Configure the server to use the ElasticsearchPlugin
  2. Create a new product with a single variant and save
  3. Observe the error in server logs:
[run:worker] error 8/26/19, 13:05 - [ElasticsearchPlugin] Some errors occurred running bulk operations on variant-index-item! Set logger to "debug" to print all errors.
[run:worker] debug 8/26/19, 13:05 - [ElasticsearchPlugin] {
[run:worker]   "type": "document_missing_exception",
[run:worker]   "reason": "[variant-index-item][9832]: document missing",
[run:worker]   "index_uuid": "dReGwzY8RgOntwpvi1HIgg",
[run:worker]   "shard": "0",
[run:worker]   "index": "vendure-variants"
[run:worker] }

Environment (please complete the following information):

  • @vendure/core version: 0.1.2-beta.12
@michaelbromley michaelbromley self-assigned this Aug 26, 2019
@michaelbromley
Copy link
Member Author

This is caused by a race condition where the Variants do not yet exist upon product creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant