Error while posting data on ElasticSearch Index using RestyClient

I'm posting data to my elasticsearch index using RestClient (see code below)

JSONObject obj3 = new JSONObject();
obj3.put("name","question");
obj3.put("parent",Integer.toString(id+2));
JSONObject jsonObject3 = new JSONObject();
jsonObject3.put("body", str);
jsonObject3.put("title", str);
jsonObject3.put("qajoinfield", obj3);
jsonObject3.put("isvalid", "true");
String endpoint3 ="/idxquesanswer/_doc/"+Integer.toString(id)+"?routing="+Integer.toString(id+2)+"&pretty";
HttpEntity entity3 = new NStringEntity(jsonObject3.toString() , ContentType.APPLICATION_JSON);
Response indexResponse3 = restClient.performRequest("PUT",endpoint3,Collections.<String, String>emptyMap(),entity3);
System.out.println(EntityUtils.toString(indexResponse3.getEntity()));

It is showing this error:

org.elasticsearch.client.ResponseException: method [PUT], host [http://localhost:9200], URI [/idxquesanswer/_doc/1?routing=3&pretty], status line [HTTP/1.1 429 Too Many Requests]
{
"error" : {
"root_cause" : [
{
"type" : "circuit_breaking_exception",
"reason" : "[parent] Data too large, data for [<http_request>] would be [1010740580/963.9mb], which is larger than the limit of [986061209/940.3mb], real usage: [1010740024/963.9mb], new bytes reserved: [556/556b]",
"bytes_wanted" : 1010740580,
"bytes_limit" : 986061209,
"durability" : "PERMANENT"
}
],
"type" : "circuit_breaking_exception",
"reason" : "[parent] Data too large, data for [<http_request>] would be [1010740580/963.9mb], which is larger than the limit of [986061209/940.3mb], real usage: [1010740024/963.9mb], new bytes reserved: [556/556b]",
"bytes_wanted" : 1010740580,
"bytes_limit" : 986061209,
"durability" : "PERMANENT"
},
"status" : 429
}

What should I do about it?

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