Documented netty4 Expect bug in release notes and breaking changes
This commit is contained in:
parent
42725e9339
commit
83532ac377
|
@ -4,13 +4,48 @@
|
|||
This section discusses the changes that you need to be aware of when migrating
|
||||
your application to Elasticsearch 5.0.
|
||||
|
||||
[IMPORTANT]
|
||||
.Known networking bug in 5.0.0-alpha5
|
||||
======================================================
|
||||
|
||||
There is a major bug in the new Netty4 implementation in this release which
|
||||
affects any REST requests greater than 1024 bytes in size, and which will
|
||||
generate an exception similar to the following:
|
||||
|
||||
[source,txt]
|
||||
----
|
||||
[WARN ][http.netty4] [wtOV9Vb] caught exception while handling client http traffic, closing connection [id: 0x1320b717, L:/0:0:0:0:0:0:0:1:9200 - R:/0:0:0:0:0:0:0:1:54732]
|
||||
java.lang.UnsupportedOperationException: unsupported message type: DefaultFullHttpResponse (expected: ByteBuf, FileRegion)
|
||||
----
|
||||
|
||||
This is due to incorrect handling of the `Expect` HTTP header, and it can be
|
||||
worked around in one of three ways:
|
||||
|
||||
* Use a client which does not add `Expect` headers (including the official clients).
|
||||
|
||||
* Pass a blank `Except` header, e.g.
|
||||
+
|
||||
[source,sh]
|
||||
----
|
||||
curl -H 'Expect:' ...
|
||||
----
|
||||
|
||||
* Use Netty3 for the HTTP layer by passing the following setting at startup:
|
||||
+
|
||||
[source,sh]
|
||||
----
|
||||
./bin/elasticsearch -Ehttp.type=netty3
|
||||
----
|
||||
|
||||
======================================================
|
||||
|
||||
[float]
|
||||
[[migration-plugin]]
|
||||
=== Migration Plugin
|
||||
|
||||
The https://github.com/elastic/elasticsearch-migration/blob/2.x/README.asciidoc[`elasticsearch-migration` plugin]
|
||||
(compatible with Elasticsearch 2.3.0 and above) will help you to find issues
|
||||
that need to be addressed when upgrading to Elasticsearch 5.0.
|
||||
that need to be addressed when upgrading to Elasticsearch 5.0.
|
||||
|
||||
[float]
|
||||
=== Indices created before 5.0
|
||||
|
|
|
@ -5,6 +5,41 @@ Also see <<breaking-changes-5.0>>.
|
|||
|
||||
IMPORTANT: This is an alpha release and is intended for _testing purposes only_. Indices created in this version will *not be compatible with Elasticsearch 5.0.0 GA*. Upgrading 5.0.0-alpha5 to any other version is not supported.
|
||||
|
||||
[IMPORTANT]
|
||||
.Known networking bug in 5.0.0-alpha5
|
||||
======================================================
|
||||
|
||||
There is a major bug in the new Netty4 implementation in this release which
|
||||
affects any REST requests greater than 1024 bytes in size, and which will
|
||||
generate an exception similar to the following:
|
||||
|
||||
[source,txt]
|
||||
----
|
||||
[WARN ][http.netty4] [wtOV9Vb] caught exception while handling client http traffic, closing connection [id: 0x1320b717, L:/0:0:0:0:0:0:0:1:9200 - R:/0:0:0:0:0:0:0:1:54732]
|
||||
java.lang.UnsupportedOperationException: unsupported message type: DefaultFullHttpResponse (expected: ByteBuf, FileRegion)
|
||||
----
|
||||
|
||||
This is due to incorrect handling of the `Expect` HTTP header, and it can be
|
||||
worked around in one of three ways:
|
||||
|
||||
* Use a client which does not add `Expect` headers (including the official clients).
|
||||
|
||||
* Pass a blank `Except` header, e.g.
|
||||
+
|
||||
[source,sh]
|
||||
----
|
||||
curl -H 'Expect:' ...
|
||||
----
|
||||
|
||||
* Use Netty3 for the HTTP layer by passing the following setting at startup:
|
||||
+
|
||||
[source,sh]
|
||||
----
|
||||
./bin/elasticsearch -Ehttp.type=netty3
|
||||
----
|
||||
|
||||
======================================================
|
||||
|
||||
[[breaking-5.0.0-alpha5]]
|
||||
[float]
|
||||
=== Breaking changes
|
||||
|
|
Loading…
Reference in New Issue