diff --git a/src/main/java/org/elasticsearch/index/mapper/internal/SourceFieldMapper.java b/src/main/java/org/elasticsearch/index/mapper/internal/SourceFieldMapper.java index 7ccce9ba2e1..7f1f54a9525 100644 --- a/src/main/java/org/elasticsearch/index/mapper/internal/SourceFieldMapper.java +++ b/src/main/java/org/elasticsearch/index/mapper/internal/SourceFieldMapper.java @@ -344,7 +344,6 @@ public class SourceFieldMapper extends AbstractFieldMapper implements In if (!source.hasArray()) { source = source.toBytesArray(); } - assert source.hasArray(); fields.add(new StoredField(names().indexName(), source.array(), source.arrayOffset(), source.length())); } diff --git a/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java b/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java index 05223200ac9..dba2b754150 100644 --- a/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java +++ b/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java @@ -350,7 +350,7 @@ public class FsTranslog extends AbstractIndexShardComponent implements Translog out.seek(size); BytesReference ref = out.bytes(); - // TODO: pass teh BytesReference to the FsTranslogFile and have them optimize writing + // TODO: pass the BytesReference to the FsTranslogFile and have them optimize writing if (!ref.hasArray()) { ref = ref.toBytesArray(); }