Unassigned shards on data-streams indices following upgrade to 7.17.5

Hey,
Recently i have upgraded a few of our clusters from 7.12.0 to 7.17.5.
After the upgrade two indices were created:
.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001 and .ds-ilm-history-5-2022.09.07-000001.
Ever since the upgrade, every once in a while, the cluster gets to red status with one or both of the indices get unassigned shards.
When running "_cluster/allocation/explain" i get:

{
    "note": "No shard was specified in the explain API request, so this response explains a randomly chosen unassigned shard. There may be other unassigned shards in this cluster which cannot be assigned for different reasons. It may not be possible to assign this shard until one of the other shards is assigned correctly. To explain the allocation of other shards (whether assigned or unassigned) you must specify the target shard in the request to this API.",
    "index": ".ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001",
    "shard": 0,
    "primary": true,
    "current_state": "unassigned",
    "unassigned_info": {
        "reason": "ALLOCATION_FAILED",
        "at": "2022-09-11T05:51:27.373Z",
        "failed_allocation_attempts": 1,
        "details": "failed shard on node [FFM3J3yWSmSX-wlXsrRXWA]: shard failure, reason [translog trimming failed], failure NoSuchFileException[/outbrain/elasticsearch/data/a/2/nodes/0/indices/FdbvZAilSDeoMEEOnbLfSQ/0/translog/translog-17781480244351786913.ckp]",
        "last_allocation_status": "no_valid_shard_copy"
    },
    "can_allocate": "no_valid_shard_copy",
    "allocate_explanation": "cannot allocate because all found copies of the shard are either stale or corrupt",
    "node_allocation_decisions": [
        {
            "node_id": "0qpc6AsETcOr-W12d7Pv3Q",
            "node_name": "espc11d-40002-prod-chidc2.chidc2.outbrain.com",
            "transport_address": "10.43.20.69:9301",
            "node_attributes": {
                "ml.machine_memory": "66709622784",
                "ml.max_open_jobs": "512",
                "xpack.installed": "true",
                "ml.max_jvm_size": "16106127360",
                "transform.node": "true"
            },
            "node_decision": "no",
            "store": {
                "found": false
            }
        },
        {
            "node_id": "9g5vBmanQ1SJaYY847T3dg",
            "node_name": "2_espc11d-40001-prod-chidc2.chidc2.outbrain.com",
            "transport_address": "10.43.12.17:9300",
            "node_attributes": {
                "ml.machine_memory": "66709131264",
                "ml.max_open_jobs": "512",
                "xpack.installed": "true",
                "ml.max_jvm_size": "16106127360",
                "transform.node": "true"
            },
            "node_decision": "no",
            "store": {
                "found": false
            }
        },
        {
            "node_id": "FFM3J3yWSmSX-wlXsrRXWA",
            "node_name": "2_espc11d-40003-prod-chidc2.chidc2.outbrain.com",
            "transport_address": "10.43.27.42:9300",
            "node_attributes": {
                "ml.machine_memory": "66709622784",
                "ml.max_open_jobs": "512",
                "xpack.installed": "true",
                "ml.max_jvm_size": "16106127360",
                "transform.node": "true"
            },
            "node_decision": "no",
            "store": {
                "in_sync": true,
                "allocation_id": "nxCMwK5XRSehJzpHnZLVWg",
                "store_exception": {
                    "type": "file_not_found_exception",
                    "reason": "no segments* file found in NIOFSDirectory@/outbrain/elasticsearch/data/a/2/nodes/0/indices/FdbvZAilSDeoMEEOnbLfSQ/0/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@15411d35: files: []"
                }
            }
        },
        {
            "node_id": "VXfmP9oCSuGTZDoXjR8mLQ",
            "node_name": "espc11d-40003-prod-chidc2.chidc2.outbrain.com",
            "transport_address": "10.43.27.42:9301",
            "node_attributes": {
                "ml.machine_memory": "66709622784",
                "ml.max_open_jobs": "512",
                "xpack.installed": "true",
                "ml.max_jvm_size": "16106127360",
                "transform.node": "true"
            },
            "node_decision": "no",
            "store": {
                "found": false
            }
        },
        {
            "node_id": "asd8KjU-SjiPbg8Ce6l8vg",
            "node_name": "2_espc11d-40002-prod-chidc2.chidc2.outbrain.com",
            "transport_address": "10.43.20.69:9300",
            "node_attributes": {
                "ml.machine_memory": "66709622784",
                "ml.max_open_jobs": "512",
                "xpack.installed": "true",
                "ml.max_jvm_size": "16106127360",
                "transform.node": "true"
            },
            "node_decision": "no",
            "store": {
                "in_sync": false,
                "allocation_id": "HLrIwLgCRxaNUnjv37ItMQ"
            }
        },
        {
            "node_id": "xkkz9w_PTLm_hvYXI-BlaA",
            "node_name": "espc11d-40001-prod-chidc2.chidc2.outbrain.com",
            "transport_address": "10.43.12.17:9301",
            "node_attributes": {
                "ml.machine_memory": "66709131264",
                "ml.max_open_jobs": "512",
                "xpack.installed": "true",
                "ml.max_jvm_size": "16106127360",
                "transform.node": "true"
            },
            "node_decision": "no",
            "store": {
                "found": false
            }
        }
    ]
}

When looking at the logs of the master node i see:

[2022-09-11T01:52:27,013][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11m-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[-IkaK4MBQmlD_BTWSvbD RemoteTransportException[[2_espc11d-40003-prod-chidc2.chidc2.outbrain.com][10.43.27.42:9300][indices:data/write/bulk[s]]]; nested: UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [2] requests]];, -YkaK4MBQmlD_BTWSvbD RemoteTransportException[[2_espc11d-40003-prod-chidc2.chidc2.outbrain.com][10.43.27.42:9300][indices:data/write/bulk[s]]]; nested: UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [2] requests]];]]

On the data node i see:

[2022-09-11T02:30:33,145][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[bEA9K4MB0CoBznwrLD3O UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][bEA9K4MB0CoBznwrLD3O], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T02:29:30,652-04:00", "log.level": "WARN", "log.logger": "org.elasticsearch.deprecation.rest.RestController", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "xkkz9w_PTLm_hvYXI-BlaA", "elasticsearch.node.name": "espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "Legacy index templates are deprecated in favor of composable templates.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "deprecated_route_PUT_/_template/{name}", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]

Can you please assist me with figuring out this issue?
And is there a way of disabling this new data-streams? Tried deleting them but they keep being recreated.
I am blocked from upgrading our prod clusters before i figure out this issue.

I think we'd need to see more of the logs before these two events please.

Sure.
This was the full log on the master node.
Here are the logs of all the data nodes:

[2022-09-11T01:52:28,003][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[a0AaK4MB0CoBznwrTj3M UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][a0AaK4MB0CoBznwrTj3M], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T01:51:24,359-04:00", "log.level": "CRITICAL", "log.logger": "org.elasticsearch.deprecation.action.support.IndicesOptions", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "xkkz9w_PTLm_hvYXI-BlaA", "elasticsearch.node.name": "espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "ignore_throttled_param", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
[2022-09-11T02:30:33,145][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[bEA9K4MB0CoBznwrLD3O UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][bEA9K4MB0CoBznwrLD3O], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T02:29:30,652-04:00", "log.level": "WARN", "log.logger": "org.elasticsearch.deprecation.rest.RestController", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "xkkz9w_PTLm_hvYXI-BlaA", "elasticsearch.node.name": "espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "Legacy index templates are deprecated in favor of composable templates.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "deprecated_route_PUT_/_template/{name}", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
[2022-09-11T01:52:27,611][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [2_espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[EHcaK4MBuNRzS6IuTXY5 RemoteTransportException[[2_espc11d-40003-prod-chidc2.chidc2.outbrain.com][10.43.27.42:9300][indices:data/write/bulk[s]]]; nested: UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][EHcaK4MBuNRzS6IuTXY5], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T01:51:26,357-04:00", "log.level": "WARN", "log.logger": "org.elasticsearch.deprecation.rest.RestController", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "9g5vBmanQ1SJaYY847T3dg", "elasticsearch.node.name": "2_espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "Legacy index templates are deprecated in favor of composable templates.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "deprecated_route_PUT_/_template/{name}", "elasticsearch.http.request.x_opaque_id": "" }
]}]]];]]
[2022-09-11T02:25:52,494][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [2_espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[EXc4K4MBuNRzS6Iu5XZw UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][EXc4K4MBuNRzS6Iu5XZw], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T02:24:48,969-04:00", "log.level": "CRITICAL", "log.logger": "org.elasticsearch.deprecation.action.support.IndicesOptions", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "9g5vBmanQ1SJaYY847T3dg", "elasticsearch.node.name": "2_espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "ignore_throttled_param", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
[2022-09-11T01:52:31,409][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40002-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[sGMaK4MB4_eP7SGWXFcQ UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][sGMaK4MB4_eP7SGWXFcQ], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T01:51:26,432-04:00", "log.level": "WARN", "log.logger": "org.elasticsearch.deprecation.rest.RestController", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "0qpc6AsETcOr-W12d7Pv3Q", "elasticsearch.node.name": "espc11d-40002-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "Legacy index templates are deprecated in favor of composable templates.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "deprecated_route_PUT_/_template/{name}", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
[2022-09-11T01:51:26,113][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [2_espc11d-40002-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[RuwaK4MBTeOtGgW8RxKW RemoteTransportException[[2_espc11d-40001-prod-chidc2.chidc2.outbrain.com][10.43.12.17:9300][indices:data/write/bulk[s]]]; nested: RemoteTransportException[[2_espc11d-40001-prod-chidc2.chidc2.outbrain.com][10.43.12.17:9300][indices:data/write/bulk[s][p]]]; nested: NoSuchFileException[/outbrain/elasticsearch/data/a/2/nodes/0/indices/FdbvZAilSDeoMEEOnbLfSQ/0/index/write.lock];]]
[2022-09-11T02:15:46,276][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [2_espc11d-40002-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[R-wvK4MBTeOtGgW8pBJ8 UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][R-wvK4MBTeOtGgW8pBJ8], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T02:14:44,928-04:00", "log.level": "WARN", "log.logger": "org.elasticsearch.deprecation.rest.RestController", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "asd8KjU-SjiPbg8Ce6l8vg", "elasticsearch.node.name": "2_espc11d-40002-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "Legacy index templates are deprecated in favor of composable templates.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "deprecated_route_PUT_/_template/{name}", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
2022-09-11T02:15:48,489][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40003-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[ZAgvK4MB_XjhBWyrrQUi UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][ZAgvK4MB_XjhBWyrrQUi], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T02:14:44,548-04:00", "log.level": "CRITICAL", "log.logger": "org.elasticsearch.deprecation.action.support.IndicesOptions", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "VXfmP9oCSuGTZDoXjR8mLQ", "elasticsearch.node.name": "espc11d-40003-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "ignore_throttled_param", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
[2022-09-11T01:52:27,414][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [2_espc11d-40003-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[N7IaK4MBok9t4btoTABq UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][N7IaK4MBok9t4btoTABq], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T01:51:25,713-04:00", "log.level": "CRITICAL", "log.logger": "org.elasticsearch.deprecation.action.support.IndicesOptions", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "FFM3J3yWSmSX-wlXsrRXWA", "elasticsearch.node.name": "2_espc11d-40003-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "ignore_throttled_param", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]

Each of those nodes has 1 or 2 log entries and that's it?

Yes. The logs have rotated.
I'll attach the previous logs of one of the data nodes but they are pretty much more of the same.

es-paid-campaigns-dup-2022-09-11.log:

[2022-09-11T01:52:28,003][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[a0AaK4MB0CoBznwrTj3M UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][a0AaK4MB0CoBznwrTj3M], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T01:51:24,359-04:00", "log.level": "CRITICAL", "log.logger": "org.elasticsearch.deprecation.action.support.IndicesOptions", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "xkkz9w_PTLm_hvYXI-BlaA", "elasticsearch.node.name": "espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "ignore_throttled_param", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]
[2022-09-11T02:30:33,145][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[bEA9K4MB0CoBznwrLD3O UnavailableShardsException[[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.ds-.logs-deprecation.elasticsearch-default-2022.09.07-000001][0]] containing [index {[.logs-deprecation.elasticsearch-default][_doc][bEA9K4MB0CoBznwrLD3O], source[{"event.dataset": "deprecation.elasticsearch", "@timestamp": "2022-09-11T02:29:30,652-04:00", "log.level": "WARN", "log.logger": "org.elasticsearch.deprecation.rest.RestController", "elasticsearch.cluster.name": "es-paid-campaigns-dup", "elasticsearch.cluster.uuid": "TZAxKhapSH6GwyBWZt92AA", "elasticsearch.node.id": "xkkz9w_PTLm_hvYXI-BlaA", "elasticsearch.node.name": "espc11d-40001-prod-chidc2.chidc2.outbrain.com", "trace.id": "", "message": "Legacy index templates are deprecated in favor of composable templates.", "data_stream.type": "logs", "data_stream.dataset": "deprecation.elasticsearch", "data_stream.namespace": "default", "ecs.version": "1.7", "elasticsearch.event.category": "api", "event.code": "deprecated_route_PUT_/_template/{name}", "elasticsearch.http.request.x_opaque_id": "" }
]}]]]]]

es-paid-campaigns-dup-2022-09-04.log:

[2022-09-04T08:02:48,017][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[akBhCIMB0CoBznwrwj09 RemoteTransportException[[2_espc11d-40001-prod-chidc2.chidc2.outbrain.com][10.43.12.17:9300][indices:data/write/bulk[s]]]; nested: RemoteTransportException[[2_espc11d-40001-prod-chidc2.chidc2.outbrain.com][10.43.12.17:9300][indices:data/write/bulk[s][p]]]; nested: NoSuchFileException[/outbrain/elasticsearch/data/a/2/nodes/0/indices/lKBIfmnXQc6Gx6lUyX_-hA/0/index/write.lock];]]

es-paid-campaigns-dup-2022-08-29.log:

[2022-08-29T08:03:55,158][ERROR][o.e.x.d.l.DeprecationIndexingComponent] [espc11d-40001-prod-chidc2.chidc2.outbrain.com] Bulk write of deprecation logs encountered some failures: [[fL186YIBNPeRsu2poIuK RemoteTransportException[[espc11d-40003-prod-chidc2.chidc2.outbrain.com][10.43.27.42:9301][indices:data/write/bulk[s]]]; nested: RemoteTransportException[[espc11d-40003-prod-chidc2.chidc2.outbrain.com][10.43.27.42:9301][indices:data/write/bulk[s][p]]]; nested: NoSuchFileException[/outbrain/elasticsearch/data/a/nodes/0/indices/vBfCHHj3QKWG1Zlp2MCTyA/0/index/write.lock];]]

Is There a way to disable the data-streams?
This issue i happening on all 4 of the clusters that i have upgraded and it causes real problems for us.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.