migrate_5_0.asciidoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. [[breaking-changes-5.0]]
  2. == Breaking changes in 5.0
  3. This section discusses the changes that you need to be aware of when migrating
  4. your application to Elasticsearch 5.0.
  5. [IMPORTANT]
  6. .Known networking bug in 5.0.0-alpha5
  7. ======================================================
  8. There is a bug in the new Netty4 implementation in this release which affects any REST request with
  9. a body that is sent in two requests, the first with an `Expect: 100-continue` header. This bug will
  10. manifest with an exception similar to the following:
  11. [source,txt]
  12. ----
  13. [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]
  14. java.lang.UnsupportedOperationException: unsupported message type: DefaultFullHttpResponse (expected: ByteBuf, FileRegion)
  15. ----
  16. This is due to incorrect handling of the `Expect` HTTP header, and it can be
  17. worked around in one of three ways:
  18. * Use a client which does not add `Expect` headers (including the official clients).
  19. * Pass a blank `Except` header, e.g.
  20. +
  21. [source,sh]
  22. ----
  23. curl -H 'Expect:' ...
  24. ----
  25. * Use Netty3 for the HTTP layer by passing the following setting at startup:
  26. +
  27. [source,sh]
  28. ----
  29. ./bin/elasticsearch -Ehttp.type=netty3
  30. ----
  31. ======================================================
  32. [float]
  33. [[migration-plugin]]
  34. === Migration Plugin
  35. The https://github.com/elastic/elasticsearch-migration/blob/2.x/README.asciidoc[`elasticsearch-migration` plugin]
  36. (compatible with Elasticsearch 2.3.0 and above) will help you to find issues
  37. that need to be addressed when upgrading to Elasticsearch 5.0.
  38. [float]
  39. === Indices created before 5.0
  40. Elasticsearch 5.0 can read indices created in version 2.0 or above. An
  41. Elasticsearch 5.0 node will not start in the presence of indices created in a
  42. version of Elasticsearch before 2.0.
  43. [IMPORTANT]
  44. .Reindex indices from Elasticseach 1.x or before
  45. =========================================
  46. Indices created in Elasticsearch 1.x or before will need to be reindexed with
  47. Elasticsearch 2.x in order to be readable by Elasticsearch 5.x. It is not
  48. sufficient to use the <<indices-upgrade,`upgrade`>> API. The easiest
  49. way to reindex old indices is to upgrade to Elasticsearch 2.3 or later and to use the
  50. `reindex` API, or the reindex UI provided by the <<migration-plugin,Migration Plugin>>.
  51. =========================================
  52. The first time Elasticsearch 5.0 starts, it will automatically rename index
  53. folders to use the index UUID instead of the index name. If you are using
  54. <<indices-shadow-replicas,shadow replicas>> with shared data folders, first
  55. start a single node with access to all data folders, and let it rename all
  56. index folders before starting other nodes in the cluster.
  57. [float]
  58. === Also see:
  59. * <<breaking_50_search_changes>>
  60. * <<breaking_50_mapping_changes>>
  61. * <<breaking_50_percolator>>
  62. * <<breaking_50_suggester>>
  63. * <<breaking_50_index_apis>>
  64. * <<breaking_50_document_api_changes>>
  65. * <<breaking_50_settings_changes>>
  66. * <<breaking_50_allocation>>
  67. * <<breaking_50_http_changes>>
  68. * <<breaking_50_rest_api_changes>>
  69. * <<breaking_50_cat_api>>
  70. * <<breaking_50_java_api_changes>>
  71. * <<breaking_50_packaging>>
  72. * <<breaking_50_plugins>>
  73. * <<breaking_50_fs>>
  74. * <<breaking_50_aggregations_changes>>
  75. * <<breaking_50_scripting>>
  76. include::migrate_5_0/search.asciidoc[]
  77. include::migrate_5_0/mapping.asciidoc[]
  78. include::migrate_5_0/percolator.asciidoc[]
  79. include::migrate_5_0/suggest.asciidoc[]
  80. include::migrate_5_0/index-apis.asciidoc[]
  81. include::migrate_5_0/docs.asciidoc[]
  82. include::migrate_5_0/settings.asciidoc[]
  83. include::migrate_5_0/allocation.asciidoc[]
  84. include::migrate_5_0/http.asciidoc[]
  85. include::migrate_5_0/rest.asciidoc[]
  86. include::migrate_5_0/cat.asciidoc[]
  87. include::migrate_5_0/java.asciidoc[]
  88. include::migrate_5_0/packaging.asciidoc[]
  89. include::migrate_5_0/plugins.asciidoc[]
  90. include::migrate_5_0/fs.asciidoc[]
  91. include::migrate_5_0/aggregations.asciidoc[]
  92. include::migrate_5_0/scripting.asciidoc[]