migrate_8_1.asciidoc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. [[migrating-8.1]]
  2. == Migrating to 8.1
  3. ++++
  4. <titleabbrev>8.1</titleabbrev>
  5. ++++
  6. This section discusses the changes that you need to be aware of when migrating
  7. your application to {es} 8.1.
  8. See also <<release-highlights>> and <<es-release-notes>>.
  9. [discrete]
  10. [[breaking-changes-8.1]]
  11. === Breaking changes
  12. The following changes in {es} 8.1 might affect your applications
  13. and prevent them from operating normally.
  14. Before upgrading to 8.1, review these changes and take the described steps
  15. to mitigate the impact.
  16. // NOTE: The notable-breaking-changes tagged regions are re-used in the
  17. // Installation and Upgrade Guide
  18. // tag::notable-breaking-changes[]
  19. [discrete]
  20. [[breaking_81_rest_api_changes]]
  21. ==== REST API changes
  22. [[search_apis_fields_parameter_normalizes_geometry_objects_cross_international_dateline]]
  23. .The search API's `fields` parameter now normalizes geometry objects that cross the international dateline
  24. [%collapsible]
  25. ====
  26. *Details* +
  27. The search API's `fields` parameter now normalizes `geo_shape` objects that
  28. cross the international dateline (+/-180° longitude). For example, if a polygon
  29. crosses the dateline, the `fields` parameter returns it as two polygons. You can
  30. still retrieve original, unnormalized geometry objects from `_source`.
  31. *Impact* +
  32. If your application requires unnormalized geometry objects, retrieve them from
  33. `_source` rather than using the `fields` parameter.
  34. ====
  35. // end::notable-breaking-changes[]
  36. [discrete]
  37. [[deprecated-8.1]]
  38. === Deprecations
  39. The following functionality has been deprecated in {es} 8.1
  40. and will be removed in a future version.
  41. While this won't have an immediate impact on your applications,
  42. we strongly encourage you take the described steps to update your code
  43. after upgrading to 8.1.
  44. To find out if you are using any deprecated functionality,
  45. enable <<deprecation-logging, deprecation logging>>.
  46. // tag::notable-breaking-changes[]
  47. [discrete]
  48. [[deprecations_81_cluster_and_node_setting]]
  49. ==== Cluster and node setting deprecations
  50. [[legacy_values_for_discovery_type_setting_are_deprecated]]
  51. .Legacy values for the `discovery.type` setting are deprecated
  52. [%collapsible]
  53. ====
  54. *Details* +
  55. Legacy values for the `discovery.type` setting are deprecated and will be
  56. forbidden in a future version.
  57. *Impact* +
  58. Do not set `discovery.type` to any value except `single-node` or `multi-node`.
  59. All other values are equivalent to the default discovery type which is
  60. `multi-node`. Where possible, omit this setting so that {es} uses the default
  61. discovery type.
  62. ====
  63. [discrete]
  64. [[deprecations_81_rest_api]]
  65. ==== REST API deprecations
  66. [[lenient_parsing_of_bulk_actions_deprecated]]
  67. .Lenient parsing of bulk actions is deprecated
  68. [%collapsible]
  69. ====
  70. *Details* +
  71. Older versions of {es} parse the action lines of bulk requests very permissively
  72. and would silently ignore invalid or malformed actions. This lenience is
  73. deprecated and a future version will reject bulk requests containing invalid
  74. actions.
  75. *Impact* +
  76. Ensure that bulk actions are well-formed JSON objects containing a single entry
  77. with the correct key.
  78. ====
  79. // end::notable-breaking-changes[]
  80. [[deprecate_index_include_frozen_request_parameter_in_sql_api]]
  81. .Deprecate `index_include_frozen` request parameter in `_sql` API
  82. [%collapsible]
  83. ====
  84. *Details* +
  85. Following the deprecation of frozen indices, the `index_include_frozen`
  86. parameter and `FROZEN` syntax is now also deprecated.
  87. *Impact* +
  88. You should unfreeze frozen indices using the
  89. {ref}/unfreeze-index-api.html[unfreeze index API] and stop using the
  90. `index_include_frozen` parameter or the `FROZEN` keyword in SQL
  91. queries. For some use cases, the frozen tier may be a suitable
  92. replacement for frozen indices. See {ref}/data-tiers.html[data tiers]
  93. for more information.
  94. ====