OpenSearch/modules
Tim Brooks a7fa5d3335 Remove dangerous `ByteBufStreamInput` methods (#27076)
This commit removes the `ByteBufStreamInput` `readBytesReference` and
`readBytesRef` methods. These methods are zero-copy which means that
they retain a reference to the underlying netty buffer. The problem is
that our `TcpTransport` is not designed to handle zero-copy. The netty
implementation sets the read index past the current message once it has
been deserialized, handled, and mostly likely dispatched to another
thread. This means that netty is free to release this buffer. So it is
unsafe to retain a reference to it without calling `retain`. And we
cannot call `retain` because we are not currently designed to handle
reference counting past the transport level.

This should not currently impact us as we wrap the `ByteBufStreamInput`
in `NamedWriteableAwareStreamInput` in the `TcpTransport`. This stream
essentially delegates to the underling stream. However, in the case of
`readBytesReference` and `readBytesRef` it leaves thw implementations
to the standard `StreamInput` methods. These methods call the read byte
array method which delegates to `ByteBufStreamInput`. The read byte
array method on `ByteBufStreamInput` copies so it is safe. The only
impact of this commit should be removing methods that could be dangerous
if they were eventually called due to some refactoring.
2017-10-24 08:51:14 -06:00
..
aggs-matrix-stats [TEST] Fix internalMatrixStatsTests failure 2017-08-02 16:36:34 +01:00
analysis-common Return List instead of an array from settings (#26903) 2017-10-09 09:52:08 +02:00
ingest-common removed unused import 2017-10-23 10:00:54 +02:00
lang-expression Scripting: Fix expressions to temporarily support filter scripts (#26824) 2017-10-09 17:02:21 -07:00
lang-mustache Fix update_by_query's default size parameter (#26784) 2017-09-25 16:25:27 -04:00
lang-painless Painless: add tests for cached boxing (#24163) 2017-10-10 10:34:03 -04:00
mapper-extras Reject the `index_options` parameter for numeric fields (#26668) 2017-09-25 23:43:14 +02:00
parent-join Don't refresh on `_flush` `_force_merge` and `_upgrade` (#27000) 2017-10-16 10:16:35 +02:00
percolator Don't detect source's XContentType in DocumentParser.parseDocument() (#26880) 2017-10-10 15:31:56 +02:00
reindex Update by Query is modified to accept short `script` parameter. (#26841) 2017-10-11 21:57:46 +00:00
repository-url Unify Settings xcontent reading and writing (#26739) 2017-09-25 13:23:01 +02:00
transport-netty4 Remove dangerous `ByteBufStreamInput` methods (#27076) 2017-10-24 08:51:14 -06:00
tribe Remove Settings#getAsMap() (#26845) 2017-10-04 01:21:38 -06:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00