Skip to content

documentation for ES reindexing#100

Open
Veki301 wants to merge 1 commit intomainfrom
WPB-21670-docs-for-es-reindex
Open

documentation for ES reindexing#100
Veki301 wants to merge 1 commit intomainfrom
WPB-21670-docs-for-es-reindex

Conversation

@Veki301
Copy link
Contributor

@Veki301 Veki301 commented Mar 6, 2026

Change type

  • Documentation change
  • Build pipeline change
  • Submodule update
  • Deployment change

Basic information

  • THIS CHANGE REQUIRES A WIRE-DOCS RELEASE NOW

Testing

  • I ran/applied the changes myself, in a test environment.

Tracking

  • I mentioned this PR in Jira, OR I mentioned the Jira ticket in this PR.
  • I mentioned this PR in one of the issues attached to one of our repositories.

@Veki301 Veki301 requested review from a team as code owners March 6, 2026 12:53
Copy link
Contributor

@sghosh23 sghosh23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I faced the same issue for CT env and while testing on our lab, this is how I resolved it. Not sure why in your case we need to go through this path:

My fix:

1. Elasticsearch Index Mapping Conflict

Symptom:

400 - {"error":{"type":"illegal_argument_exception",
  "reason":"Mapper for [email_unvalidated] conflicts with existing mapping"}}

Root Cause:
The existing Elasticsearch index had email_unvalidated mapped with a different index setting than what the new Wire version expects. Elasticsearch does not allow changing field mapping properties on an existing index.

Resolution:
Delete the conflicting index and recreate it via the elasticsearch-index subchart:

# Delete the conflicting index
d kubectl exec -n default deployment/brig -- \
  curl -X DELETE http://elasticsearch-external:9200/directory

# Run the elasticsearch-index chart standalone
d  helm upgrade --install elasticsearch-index \
  charts/wire-server/charts/elasticsearch-index \
  --set elasticsearch.host=elasticsearch-external \
  --set cassandra.host=cassandra-external \
  -n default"

Charts for `elasticsearch-migrate` will be needed:

```
wget wget https://s3-eu-west-1.amazonaws.com/public.wire.com/charts-develop/elasticsearch-migrate-0.1.0.tgz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this specific image? What about the chart image?


```
reindexType: "reindex"
runReindex: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not find any references of both reindexType and runReindex

index: directory_new
elasticsearch-index:
elasticsearch:
index: directory_new
Copy link
Contributor

@sghosh23 sghosh23 Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also did not find any reference of this value directory_new

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants