Lazily retrieve EngineFactory based on IndexSettings#31409
Lazily retrieve EngineFactory based on IndexSettings#31409dakrone wants to merge 2 commits intoelastic:masterfrom
Conversation
This commit changes the way that `EngineFactory`s are returned, instead of the EngineFactory being set at time of shard creation, this changes the pluggability so that an existing `IndexShard` can return a different engine factory depending on dynamic index settings. Relates to elastic#31141
|
Pinging @elastic/es-distributed |
|
I would really like to try to avoid having an EngineFactoryFactory (effectively). Maybe we can change EngineFactory.newReadWriteEngine to get an index settings too? |
Sure, I think that might be an option, I'll make those changes. However, do we want to rename the method at the same time to just be |
|
Actually, it looks like this is already possible with the |
|
Okay, I think we can get away without this. I opened #31745 so I'm closing this for now. |
This commit changes the way that
EngineFactorys are returned, instead of theEngineFactory being set at time of shard creation, this changes the pluggability
so that an existing
IndexShardcan return a different engine factory dependingon dynamic index settings.
Relates to #31141