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

Elasticsearch bulk execution failures are not logged properly

    Details

      Description

      The log level of bulk execution failures was demoted from error to warn (here), thus we don't get enough info about the failure.

      Reproduction steps:

      1. Go to System Settings -> Search -> Elasticsearch 6 and under Additional Index Configurations add the following:
        index.mapping.total_fields.limit: 100
      2. Reindex all search indexes (you will see errors during reindexing as well)
      3. Create a web content

      Exprerienced behavior: Only the following info appears in log:

      2020-02-21 15:38:47.503 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:409] Bulk update failed
      

      Expected behavior: More detailed message should be logged, similarly to below ERROR message.

      2020-01-07 15:00:14.350 ERROR [liferay/search_writer/SYSTEM_ENGINE-16][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20115], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_35020], message [java.lang.IllegalArgumentException: Limit of total fields [100] in index [liferay-20115] has been exceeded] [Sanitized]
      

      This error was displayed on Liferay DXP 7.0 with ES 6. It is also displayed on 7.2 after changing the log level to WARN for com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.document. Based on product team's feedback, bulk execution failures used to be reported as errors, promote this log level back to error again.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP17
                7.1.10.4 SP4
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.1 CE GA2
                7.3.2 CE GA3
                Master