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

Missing debug trace in RemoteElasticsearchConnection.createTransportClient()

    Details

      Description

      Missing debug trace in RemoteElasticsearchConnection.createTransportClient().
      This is necessary in order to diagnose configuration problems, for example, see: LPS-97878

      Steps to reproduce

      1. Install a new Liferay instance
      2. Install a Elasticsearch server (see: https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/installing-elasticsearch )
      3. Configure Liferay with REMOTE Elasticsearch configuration (see: https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/configuring-the-liferay-elasticsearch-connector )
      4. Execute a full reindex and verify search is working
      5. Stop Liferay
      6. Create a folder "log4j" inside of LIFERAY_HOME/osgi/
      7. Copy attached files log4j.dtd and com.liferay.portal.search.elasticsearch6.impl-log4j-ext.xml into LIFERAY_HOME/osgi/log4j folder
      8. Start Liferay and check log files
        • Expected behavior: a debug trace with elasticsearch remote configuration is written to log
          2019-07-04 11:29:57.519 DEBUG [Elasticsearch initialization thread][RemoteElasticsearchConnection:156] settings: {"client.transport.ignore_cluster_name":"false","client.transport.sniff":"true","cluster.name":"liferay-elasticsearch-pre","http.host":"_local_","monitor.jvm.gc.enabled":"false", ...
        • Wrong behavior: no debug trace is written to log file

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                linda.sui Linda Sui
                Reporter:
                jorge.diaz Jorge Diaz
                Participants of an Issue:
                Recent user:
                Jason Pince
                Engineering Assignee:
                Bryan Engler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.10 DXP FP13
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  Master