mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
The system user gets used to put mappings for an index during recovery from local shards, which is how the shrink index process works. The system user previously had this privilege in 2.x as we did not have the ThreadContext and dynamic mapping updates would be done by the system user; with the ThreadContext, these mapping updates are done by the actual user so this privilege was removed from the SystemUser. Closes elastic/elasticsearch#3766 Original commit: elastic/x-pack-elasticsearch@cd5d7bea53