Skip to content

Commit 891e56a

Browse files
committed
Add shard ID to message
1 parent 82e6010 commit 891e56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static boolean executeBulkItemRequest(BulkPrimaryExecutionContext context, Updat
271271
new CompressedXContent(result.getRequiredMappingUpdate(), XContentType.JSON, ToXContent.EMPTY_PARAMS),
272272
MapperService.MergeReason.MAPPING_UPDATE_PREFLIGHT);
273273
} catch (Exception e) {
274-
logger.info("required mapping update failed during pre-flight check", e);
274+
logger.info(() -> new ParameterizedMessage("{} mapping update rejected by primary", primary.shardId()), e);
275275
onComplete(exceptionToResult(e, primary, isDelete, version), context, updateResult);
276276
return true;
277277
}

0 commit comments

Comments
 (0)