Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-99347

Elasticsearch deprecation WARNs in portal log when DXP and Elasticsearch 6.5+ with X-Pack Security is configured or when PKCS#12 format is used

    Details

      Description

      Master: Won't fix. The Search team plans to switch to elasticsearch7.

       Steps to reproduce - PKCS#12

      1. Configure DXP with ES 6.x and use PKCS#12 format
      2. Start DXP

      Actual Result: Deprecation WANRs in the DXP portal log (no functional impact)

      [2020-06-12T15:51:07,570][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][xpack.ssl.keystore.password] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      [2020-06-12T15:51:07,574][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][xpack.ssl.truststore.password] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      [2020-06-12T15:51:07,907][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][keystore.password] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      [2020-06-12T15:51:07,908][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][truststore.password] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      2020-06-12 15:51:10.574 WARN  [main][MainServlet:285] The default JVM time zone "Europe/Budapest" is not UTC or GMT. Please review the JVM property "user.timezone".
      

      Reproducible only if we also bump the client in the connector to 6.8 these deprecation log entries will appear. Right now we just bumped the remote server version in CI in LRQA-51130. - Update (March 10, 2020): client version has been updated to 6.8.6 in LPS-109810.

      No functional impact.

      1. Configure master/7.2.x with remote Elasticsearch 6.8 and Connector to X-Pack Security https://help.liferay.com/hc/en-us/articles/360028711172-Installing-Liferay-Enterprise-Search-Security
      2. Start remote Elasticsearch 6.8
      3. Start portal

      There are some new WARN messages in the liferay log when X-Pack Security is enabled and requires authentication and uses TLS (so when we use PreBuiltXPackTransportClient in RemoteElasticsearchConnection.createTransportClient():

      [2019-07-16T14:47:05,779][WARN ][o.e.d.c.j.Joda           ] [
      ode_name]'y' year should be replaced with 'u'. Use 'y' for year-of-era. Prefix your date format with '8' to use the new specifier.
      [2019-07-16T14:47:06,007][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][xpack.ssl.certificate] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      [2019-07-16T14:47:06,007][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][xpack.ssl.certificate_authorities] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      [2019-07-16T14:47:06,008][WARN ][o.e.d.c.s.Settings       ] [
      ode_name][xpack.ssl.key] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
      [2019-07-16T14:47:06,463][WARN ][o.e.d.x.c.s.SSLService   ] [
      ode_name]SSL configuration [xpack.http.ssl] relies upon fallback to another configuration for [key configuration, trust configuration], which is deprecated.
      [2019-07-16T14:47:06,464][WARN ][o.e.d.x.c.s.SSLService   ] [
      ode_name]SSL configuration [xpack.security.transport.ssl.] relies upon fallback to another configuration for [key configuration, trust configuration], which is deprecated.
      

      Solution: Disabling deprecation logger (setting it to "error") as per https://www.elastic.co/guide/en/elasticsearch/reference/6.8/logging.html#deprecation-logging. We are dealing with the removed settings and changed time formats in the Elasticsearch 7 connector (LPS-95909).

      Todo: Implement the changes from
      https://github.com/lipusz/liferay-portal/pull/276/commits/7031ef5f9430e2b95b996d4c525eee12cf9a739c

        Attachments

          Activity

            People

            • Assignee:
              brian.lee Brian Lee
              Reporter:
              tibor.lipusz Tibor Lipusz
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Engineering Assignee:
              Bryan Engler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                17 weeks, 1 day ago

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X