You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, we apply remote store index settings on an index migrating from docrep if the following conditions are met:
All primary shards of the index are in STARTED state and are on remote nodes
No RELOCATING replica shard copies
All STARTED replicas are on remote nodes
We use the existing IndexMetadataUpdater flow invoked by AllocationService to perform this update. This code path is only invoked if the cluster is in:
MIXED mode
Direction is set to REMOTE_STORE
We have recently found an issue wherein the index settings are not applied because:
Primary moved over to remote nodes
Replica count was reduced to 0 from 1
Replica was never migrated to remote nodes (since the shard copy was deleted with the replica count reduction)
The code flow for decreasing replica count does not seem to be flowing through the RoutingAllocation logic and the IndexMetadataUpdater path was never executed.
Related component
Storage:Remote
To Reproduce
Create a docrep enabled cluster
Create an index with 1 primary and 1 replica shard
Introduce remote store enabled nodes in the cluster
Move over the primary shard copy from docrep nodes to remote store enabled nodes
Decrease the replica count to 0
Stop all the docrep enabled nodes and attempt to switch compatibility mode to STRICT
Compatibility mode switch would fail with the following error:
can not switch to STRICT compatibility mode since all indices in the cluster does not have remote store based index settings
Expected behavior
Remote Store based index settings should be applied even when the replica count of an index is decreased during the migration process.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
OS: [e.g. iOS]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@ashking94 Yes. We have that handled. If there is a replica count increase during migration, the new shard copy would be allocated to the remote store enabled nodes directly.
Describe the bug
Today, we apply remote store index settings on an index migrating from docrep if the following conditions are met:
STARTED
state and are on remote nodesRELOCATING
replica shard copiesSTARTED
replicas are on remote nodesWe use the existing
IndexMetadataUpdater
flow invoked byAllocationService
to perform this update. This code path is only invoked if the cluster is in:MIXED
modeREMOTE_STORE
We have recently found an issue wherein the index settings are not applied because:
The code flow for decreasing replica count does not seem to be flowing through the
RoutingAllocation
logic and theIndexMetadataUpdater
path was never executed.Related component
Storage:Remote
To Reproduce
STRICT
Compatibility mode switch would fail with the following error:
Expected behavior
Remote Store based index settings should be applied even when the replica count of an index is decreased during the migration process.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: