Help with process cluster event timeout exception

Hi There,

I have an index which consists only 8 documents, but while inserting that, I have got the Cluster Event Exception, When I try it after few seconds, then it worked fine. This is a big problem for me.
This is the Response I got from API.

{
      "took": 30015,
      "errors": true,
      "items": [
        {
          "index": {
            "_index": "SomeIndex",
            "_type": "SomeIndex",
            "_id": "8E0AA1CC-B6E9-4880-A799-9C984EB7DE4C",
            "status": 503,
            "error": {
              "type": "process_cluster_event_timeout_exception",
              "reason": "failed to process cluster event (put-mapping) within 30s"
            }
          }
        },
        {
          "index": {
            "_index": "SomeIndex",
            "_type": "SomeIndex",
            "_id": "ECC4B734-5064-40FD-9F71-398EEC00D35B",
            "status": 503,
            "error": {
              "type": "process_cluster_event_timeout_exception",
              "reason": "failed to process cluster event (put-mapping) within 30s"
            }
          }
        },
        {
          "index": {
            "_index": "SomeIndex",
            "_type": "SomeIndex",
            "_id": "0BF8362B-F97A-4C85-9040-7F453206881F",
            "status": 503,
            "error": {
              "type": "process_cluster_event_timeout_exception",
              "reason": "failed to process cluster event (put-mapping) within 30s"
            }
          }
        },
        {
          "index": {
            "_index": "SomeIndex",
            "_type": "SomeIndex",
            "_id": "E6B3BB96-7D5C-4804-A9AF-E3F2FFB9B71D",
            "status": 503,
            "error": {
              "type": "process_cluster_event_timeout_exception",
              "reason": "failed to process cluster event (put-mapping) within 30s"
            }
          }
        }
      ]
    }
 

Even the data is very much less. All the elastic is normal. But I got this error.
@dadoonet @Christian_Dahlqvist @DavidTurner Please help. :slight_smile:

Which Elasticsearch version are you using? What is the size and specification of the cluster? What type of storage are you using?