Hey team,
I was reindexing one of my index but suddenly it stopped because shard size reaches to 60gb and it rollover to new index.I am getting an error now i cannot write after index get rollover
"cause" : {
"type" : "cluster_block_exception",
"reason" : "index [log-wlb-sysmon-2021.10.04-000015] blocked by: [FORBIDDEN/8/index write (api)];"
},
"status" : 403
Following are steps that i did to have this reindexing problem.
1.
PUT %3Clog-wlb-sysmon-%7Bnow%2Fd%7D-000015%3E
{
"aliases": {
"log-wlb-sysmon": {
"is_write_index": false
}
}
, "settings": {
"number_of_replicas": 0,
"refresh_interval": "-1",
"index.lifecycle.parse_origination_date":true,
"index.lifecycle.name":"winlogbeat_sysmon_policy",
"index.lifecycle.rollover_alias":"log-wlb-sysmon"
}
}
POST _aliases
{
"actions": [
{
"add": {
"index": "log-wlb-sysmon-2021.09.23-000019",
"alias": "log-wlb-sysmon",
"is_write_index": false
}
},
{
"add": {
"index": "log-wlb-sysmon-2021.10.04-000015",
"alias": "log-wlb-sysmon",
"is_write_index": true
}
}
]
}
POST _reindex?slices=5&wait_for_completion=false&max_docs=102154111
{
"source": {
"index": "log-wlb-sysmon-2021.08.16-000015"
, "size": 3000
}
, "dest": {
"index": "log-wlb-sysmon-2021.10.04-000015"
}
}
GET _tasks/x8nHc1dDSgiTh3G9rD8raQ:712742016
{
"completed" : true,
"task" : {
"node" : "x8nHc1dDSgiTh3G9rD8raQ",
"id" : 712742016,
"type" : "transport",
"action" : "indices:data/write/reindex",
"status" : {
"total" : 102147101,
"updated" : 0,
"created" : 73800000,
"deleted" : 0,
"batches" : 24605,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0,
"slices" : [
{
"slice_id" : 0,
"total" : 20429863,
"updated" : 0,
"created" : 14826000,
"deleted" : 0,
"batches" : 4943,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0
},
{
"slice_id" : 1,
"total" : 20430455,
"updated" : 0,
"created" : 14628000,
"deleted" : 0,
"batches" : 4877,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0
},
{
"slice_id" : 2,
"total" : 20430822,
"updated" : 0,
"created" : 14862000,
"deleted" : 0,
"batches" : 4955,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0
},
{
"slice_id" : 3,
"total" : 20425139,
"updated" : 0,
"created" : 14685000,
"deleted" : 0,
"batches" : 4896,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0
},
{
"slice_id" : 4,
"total" : 20430822,
"updated" : 0,
"created" : 14799000,
"deleted" : 0,
"batches" : 4934,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0
}
]
},
"description" : "reindex from [log-wlb-sysmon-2021.08.16-000015] to [log-wlb-sysmon-2021.10.04-000015][_doc]",
"start_time_in_millis" : 1633325995144,
"running_time_in_nanos" : 10884886700980,
"cancellable" : true,
"headers" : { }
},
"response" : {
"took" : 10884885,
"timed_out" : false,
"total" : 102147101,
"updated" : 0,
"created" : 73800000,
"deleted" : 0,
"batches" : 24605,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled" : "0s",
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until" : "0s",
"throttled_until_millis" : 0,
"slices" : [
{
"slice_id" : 0,
"total" : 20429863,
"updated" : 0,
"created" : 14826000,
"deleted" : 0,
"batches" : 4943,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled" : "0s",
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until" : "0s",
"throttled_until_millis" : 0
},
{
"slice_id" : 1,
"total" : 20430455,
"updated" : 0,
"created" : 14628000,
"deleted" : 0,
"batches" : 4877,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled" : "0s",
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until" : "0s",
"throttled_until_millis" : 0
},
{
"slice_id" : 2,
"total" : 20430822,
"updated" : 0,
"created" : 14862000,
"deleted" : 0,
"batches" : 4955,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled" : "0s",
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until" : "0s",
"throttled_until_millis" : 0
},
{
"slice_id" : 3,
"total" : 20425139,
"updated" : 0,
"created" : 14685000,
"deleted" : 0,
"batches" : 4896,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled" : "0s",
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until" : "0s",
"throttled_until_millis" : 0
},
{
"slice_id" : 4,
"total" : 20430822,
"updated" : 0,
"created" : 14799000,
"deleted" : 0,
"batches" : 4934,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled" : "0s",
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until" : "0s",
"throttled_until_millis" : 0
}
],
"failures" : [
{
"index" : "log-wlb-sysmon-2021.10.04-000015",
"type" : "_doc",
"id" : "e2f422b1661ab22535ba77f4fc3099a1d2c8cffe",
"cause" : {
"type" : "cluster_block_exception",
"reason" : "index [log-wlb-sysmon-2021.10.04-000015] blocked by: [FORBIDDEN/8/index write (api)];"
},
"status" : 403
},
{
"index" : "log-wlb-sysmon-2021.10.04-000015",
"type" : "_doc",
"id" : "edacaad8c936e94104da98bca78dfd0a32978668",
"cause" : {
"type" : "cluster_block_exception",
"reason" : "index [log-wlb-sysmon-2021.10.04-000015] blocked by: [FORBIDDEN/8/index write (api)];"
},
"status" : 403
},
{
"index" : "log-wlb-sysmon-2021.10.04-000015",
"type" : "_doc",
"id" : "cac2bb28cc0592ca7c075b8cc3b58cbbe0df95db",
"cause" : {
"type" : "cluster_block_exception",
"reason" : "index [log-wlb-sysmon-2021.10.04-000015] blocked by: [FORBIDDEN/8/index write (api)];"
},
"status" : 403
```