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

Warning seen while reindexing with Cross-Cluster Replication on Elasticsearch 6

    Details

      Description

      Steps to reproduce:

      1. Set up two Elasticsearch clusters for with their trial licenses activated by running the following command from your portal root directory: "ant -f build-test-elasticsearch6.xml start-elasticsearch -Dremote.elasticsearch.ccr.enabled=true"
        1. This also sets "index.soft_deletes.enabled: true" in "Additional Index Configurations"
      2. Start up portal
      3. Navigate to Control Panel > Configuration> System Settings > Search > Index Actions
      4. Reindex all search indexes to enable soft deletes on the Liferay indices
      5. Connect the Elasticsearch clusters and create follow indices by running the following command from your portal root directory: "ant -f build-test-elasticsearch6.xml create-follower-indices"
      6. Navigate to Control Panel > Configuration > System Settings > Search > Cross-Cluster Replication Elasticsearch Connections
      7. Add a new connection with the following:
        1. Connection ID: ccr
        2. Cluster Name: LiferayElasticsearchClusterTwo
        3. Transport Address: localhost:9500
        4. Network Host Address: http://localhost:9202
      8. Navigate to Control Panel > Configuration > System Settings > Search > Cross-Cluster Replication
      9. Set the following and click "Save":
        1. Check the "Enabled" checkbox
        2. Cross-Cluster Replication Local Cluster Connection Configurations: localhost:8080=ccr
      10. Create a Web Content Article titled "Doc 1"
      11. Search for "doc" and assert "Doc 1" is returned as a search result
      12. Navigate to Control Panel > Configuration > Search
      13. Reindex all search indexes

      Expected results:
      Expected no warnings to be thrown while reindexing

      Actual results:

      The following warnings are seen. There doesn't seem to be any functional impact.

      23:18:04,596 WARN  [I/O dispatcher 33][RestClient:185] request [PUT http://localhost:9202/liferay-0/_ccr/follow?wait_for_active_shards=1] returned 1 warnings: [299 Elasticsearch-6.8.7-c63e621 "'y' year should be replaced with 'u'. Use 'y' for year-of-era. Prefix your date format with '8' to use the new specifier."]
      23:18:13,662 WARN  [I/O dispatcher 73][RestClient:185] request [PUT http://localhost:9202/liferay-20099/_ccr/follow?wait_for_active_shards=1] returned 1 warnings: [299 Elasticsearch-6.8.7-c63e621 "'y' year should be replaced with 'u'. Use 'y' for year-of-era. Prefix your date format with '8' to use the new specifier."]
      

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7
      Portal 7.2.x GIT ID: d826da485c00f11d66a5eb86218991ef4c7ed7fc

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timothy.pak Timothy Pak
              Reporter:
              timothy.pak Timothy Pak
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 15 weeks ago

                  Packages

                  Version Package
                  7.2.10 DXP FP8
                  7.2.10.3 DXP SP3
                  7.2.X