Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Describe the issue
POST _reindex
{
"source": {
"index": "source_index",
"query": {
"bool": {
}
}
},
"dest": {
"index": "destination_index"
}
}
currently this was my reindexing query i used to reindex the required data to separate index when findings was created. But here I have some issues like
- how to sync events to destination index if the result of the query exceeds 10000 data ?
- currently i am facing one more issue when no of indexes are more because i am using alias name in source index.
Configuration:
Created roll over index per day with common alias name. using the common alias name and trying to reindex the data to
Relevant Logs or Screenshots
{
"error": {
"root_cause": [
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
},
{
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
],
"type": "search_phase_execution_exception",
"reason": "Partial shards failure",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 3,
"index": "file-delete-000043",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000002",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000003",
"node": "jgfXpVMtRSCp7hefXhj8Cg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000004",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000006",
"node": "jgfXpVMtRSCp7hefXhj8Cg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000008",
"node": "jgfXpVMtRSCp7hefXhj8Cg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000010",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 3,
"index": "image-load-000011",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 4,
"index": "network-connection-000014",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
},
{
"shard": 4,
"index": "network-connection-000015",
"node": "jzVcas0aQ8-03m8iXRRrgg",
"reason": {
"type": "rejected_execution_exception",
"reason": "Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting."
}
}
]
},
"status": 429
}
i am getting the error for more indexes, but reduced in output for making it more understandable.
Any help or suggestion to fix this reindexing issue is welcomed