MapperParsingException is logged at DEBUG?

While doing some bulk indexing we see MapperParsingException in the logs. But these are logged at DEBUG level. Is that on purpose? Shouldn't these be ERROR? (From our application's perspective a mapping failure is indeed an ERROR.) Is there any way to change the level for these exceptions?

es 2.3.3

Can you please post those exceptions that you see in the logs? Do you get back an error in the response? If you are using bulk you should be checking all the items in the response, as the response code is always 200.

Let's see what exceptions they are and then define whether you should be worried or not :wink:

Here is a different exception logged at DEBUG. This was just before a message of "[s-elasticsearch-data-8] stopping ..." where the data node stopped (itself?)

[connect-kennametal-kmnewalbany-mtconnectdataitems-201607][[connect-kennametal-kmnewalbany-mtconnectdataitems-201607][0]] IllegalIndexShardStateException[CurrentState[STARTED] shard is not a primary]
	at org.elasticsearch.index.shard.IndexShard.prepareIndexOnPrimary(IndexShard.java:557)
	at org.elasticsearch.action.index.TransportIndexAction.prepareIndexOperationOnPrimary(TransportIndexAction.java:212)
	at org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:224)
	at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:326)
	at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:119)
	at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:68)
	at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:639)
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
	at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:279)
	at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:271)
	at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75)
	at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376)
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

And we do check all the bulk request return status in the client. These logs/exceptions are all from the actual elasticsearch nodes themselves.