OpenSearch/elasticsearch
Tim Vernum 286d62f00e Don't clear realm-cache during security upgrade on basic license (elastic/elasticsearch#4806)
If a user has a basic license, but previously had a full-featured license (e.g. a trial license that expired) then they may have .security index that needs to be migrated even though security is not allowed under their license.

This change makes the clearing of the realm-cache conditional on the license state. If X-Pack is running on a license that does not allow auth, then, when the `logstash_system` user is disabled as part of an upgrade migration, the cache is not cleared.

This change also fix a bug whereby a mapping update could take place even if a data migration was in progress, which could cause the `logstash_system` user to be temporarily enabled when it ought not be.

Original commit: elastic/x-pack-elasticsearch@f272e2b19f
2017-02-07 08:56:04 +11:00
..
bin/x-pack Build: Reorganize src roots 2016-10-01 09:46:43 +02:00
config/x-pack Expose logs base path 2017-01-16 07:40:29 -05:00
keys Collapsed license code into xpack src 2016-09-29 12:22:19 +02:00
src Don't clear realm-cache during security upgrade on basic license (elastic/elasticsearch#4806) 2017-02-07 08:56:04 +11:00
NOTICE.txt Moved directories around 2016-09-29 12:03:14 +02:00
build.gradle Replace com.sun.net.httpserver.Http/Https server usages with MockHttpServer. (elastic/elasticsearch#4476) 2017-01-05 11:29:31 -06:00