mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-06 19:09:14 +00:00
Don't convert source to UTF-8 it might not be valid UTF-8
This commit is contained in:
parent
2e48fb8294
commit
e946ec0c33
@ -555,8 +555,8 @@ public class IndexShard extends AbstractIndexShardComponent implements IndicesCl
|
|||||||
index = indexingOperationListeners.preIndex(shardId, index);
|
index = indexingOperationListeners.preIndex(shardId, index);
|
||||||
try {
|
try {
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.trace("index [{}][{}] (seq# [{}], source {})",
|
// don't use index.source().utf8ToString() here source might not be valid UTF-8
|
||||||
index.type(), index.id(), index.seqNo(), index.source().utf8ToString());
|
logger.trace("index [{}][{}] (seq# [{}])", index.type(), index.id(), index.seqNo());
|
||||||
}
|
}
|
||||||
result = engine.index(index);
|
result = engine.index(index);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user