migrate_8_0.asciidoc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. [[migrating-8.0]]
  2. == Migrating to 8.0
  3. ++++
  4. <titleabbrev>8.0</titleabbrev>
  5. ++++
  6. This section discusses the changes that you need to be aware of when migrating
  7. your application to {es} 8.0.
  8. See also <<release-highlights>> and <<es-release-notes>>.
  9. coming::[8.0.0]
  10. [discrete]
  11. [[breaking-changes-8.0]]
  12. === Breaking changes
  13. The following changes in {es} 8.0 might affect your applications
  14. and prevent them from operating normally.
  15. Before upgrading to 8.0, review these changes and take the described steps
  16. to mitigate the impact.
  17. NOTE: Breaking changes introduced in minor versions are
  18. normally limited to security and bug fixes.
  19. Significant changes in behavior are deprecated in a minor release and
  20. the old behavior is supported until the next major release.
  21. To find out if you are using any deprecated functionality,
  22. enable <<deprecation-logging, deprecation logging>>.
  23. include::migrate_8_0/_cluster-node-setting-changes.asciidoc[]
  24. include::migrate_8_0/_command-line-tool-changes.asciidoc[]
  25. include::migrate_8_0/_index-setting-changes.asciidoc[]
  26. include::migrate_8_0/_java-api-changes.asciidoc[]
  27. include::migrate_8_0/_jvm-option-changes.asciidoc[]
  28. include::migrate_8_0/_logging-changes.asciidoc[]
  29. include::migrate_8_0/_mapping-changes.asciidoc[]
  30. include::migrate_8_0/_packaging-changes.asciidoc[]
  31. include::migrate_8_0/_painless-changes.asciidoc[]
  32. include::migrate_8_0/_rest-api-changes.asciidoc[]
  33. include::migrate_8_0/_system-req-changes.asciidoc[]
  34. include::migrate_8_0/transform.asciidoc[]
  35. [discrete]
  36. [[deprecated-8.0]]
  37. === Deprecations
  38. The following functionality has been deprecated in {es} 8.0
  39. and will be removed in 8.0
  40. While this won't have an immediate impact on your applications,
  41. we strongly encourage you take the described steps to update your code
  42. after upgrading to 8.0.
  43. NOTE: Significant changes in behavior are deprecated in a minor release and
  44. the old behavior is supported until the next major release.
  45. To find out if you are using any deprecated functionality,
  46. enable <<deprecation-logging, deprecation logging>>.
  47. //NOTE: The notable-breaking-changes tagged regions are re-used in the
  48. //Installation and Upgrade Guide
  49. //tag::notable-breaking-changes[]
  50. [discrete]
  51. [[breaking_80_cluster_node_setting_deprecations]]
  52. ==== Cluster and node setting deprecations
  53. [[deprecate-transient-cluster-settings]]
  54. .Transient cluster settings are deprecated.
  55. [%collapsible]
  56. ====
  57. *Details* +
  58. Starting in 7.16, transient cluster settings are deprecated and will be removed in a future release. This is because transient
  59. cluster settings have an unpredictable lifecycle. Transient cluster settings do not survive full cluster restarts or
  60. cluster instability. In these cases, {es} recovers the cluster state
  61. from persistent storage, effectively erasing the transient settings. The loss of transient settings can happen
  62. unexpectedly, leading to a potentially undesired cluster configuration.
  63. *Impact* +
  64. To avoid deprecation warnings, discontinue use of transient settings when modifying
  65. your cluster settings through the `PUT _cluster/settings` REST API. Use persistent
  66. settings instead. See the
  67. {ref}/transient-settings-migration-guide.html[Transient settings migration
  68. guide].
  69. ====
  70. //end::notable-breaking-changes[]
  71. [discrete]
  72. [[breaking_80_command_line_tool_deprecations]]
  73. ==== Command line tool deprecations
  74. TIP: {ess-skip-section}
  75. [[deprecate-elasticsearch-setup-passwords]]
  76. .The `elasticsearch-setup-passwords` tool is deprecated.
  77. [%collapsible]
  78. ====
  79. *Details* +
  80. The `elasticsearch-setup-passwords` tool is deprecated in 8.0. To
  81. manually reset the password for built-in users (including the `elastic` user), use
  82. the {ref}/reset-password.html[`elasticsearch-reset-password`] tool, the {es}
  83. {ref}/security-api-change-password.html[change passwords API], or the
  84. User Management features in {kib}.
  85. `elasticsearch-setup-passwords` will be removed in a future release.
  86. *Impact* +
  87. Passwords are generated automatically for the `elastic` user when you start {es} for the first time. If you run `elasticsearch-setup-passwords` after
  88. starting {es}, it will fail because the `elastic`
  89. user password is already configured.
  90. ====
  91. include::migrate_8_0/migrate_to_java_time.asciidoc[]
  92. include::transient-settings-migration-guide.asciidoc[]