Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LPD-40485 Ehcache] LPD-41245 Upgrade to Ehcache 3 #7721

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

dantewang
Copy link
Collaborator

This PR includes #7720

… listener factory

# breaking

## What modules/apps/portal-cache/portal-cache-api/src/main/java/com/liferay/portal/cache/configuration/PortalCacheManagerConfiguration.java

Constructor parameter `portalCacheManagerListenerPropertiesSet` and method `getPortalCacheManagerListenerPropertiesSet` are removed from the class.

## Why

These, as well as the support for declaring a portal cache manager listener factory in the Ehcache XML configuration file and getting it processed by Liferay is removed as a preparation of upgrading to Ehcache 3. Ehcache 3 no longer supports declaring cache manager event listener factory in XML configurations.

## Alternatives

Register custom `PortalCacheManagerListener` implementation using `PortalCacheManager.registerPortalCacheManagerListener(PortalCacheManagerListener)`.

----

# breaking

## What modules/apps/portal-cache/portal-cache-api/src/main/java/com/liferay/portal/cache/PortalCacheManagerListenerFactory.java

`modules/apps/portal-cache/portal-cache-api/src/main/java/com/liferay/portal/cache/PortalCacheManagerListenerFactory.java` is removed.

## Why

These, as well as the support for declaring a portal cache manager listener factory in the Ehcache XML configuration file and getting it processed by Liferay is removed as a preparation of upgrading to Ehcache 3. Ehcache 3 no longer supports declaring cache manager event listener factory in XML configurations.

## Alternatives

Register custom `PortalCacheManagerListener` implementation using `PortalCacheManager.registerPortalCacheManagerListener(PortalCacheManagerListener)`.

----
…r factory

# breaking

## What modules/apps/portal-cache/portal-cache-api/src/main/java/com/liferay/portal/cache/configuration/PortalCacheConfiguration.java

Method `getPortalCacheListenerPropertiesSet()` is replaced by `getPortalCacheReplicatorPropertiesSet()`.

## Why

These, as well as the support for declaring a portal cache listener factory in the Ehcache XML configuration file and getting it processed by Liferay is removed as a preparation of upgrading to Ehcache 3. Ehcache 3 no longer supports declaring cache event listener factory in XML configurations.

The method name is updated to reflect the change and show that the properties set now only serves `PortalCacheReplicator` configurations.

## Alternatives

Register custom `PortalCacheListener` implementation using `PortalCache#registerPortalCacheListener` methods.

----

# breaking

## What modules/apps/portal-cache/portal-cache-api/src/main/java/com/liferay/portal/cache/PortalCacheListenerFactory.java

`modules/apps/portal-cache/portal-cache-api/src/main/java/com/liferay/portal/cache/PortalCacheListenerFactory.java` is removed.

## Why

These, as well as the support for declaring a portal cache listener factory in the Ehcache XML configuration file and getting it processed by Liferay is removed as a preparation of upgrading to Ehcache 3. Ehcache 3 no longer supports declaring cache event listener factory in XML configurations.

## Alternatives

Register custom `PortalCacheListener` implementation using `PortalCache#registerPortalCacheListener` methods.

----
…ault cache configuration from the "default" template, and provide a method to derive a builder from the default configuration for later usage.
…aces and classes to adapt to Ehcache 3's internal statistic service
…Ehcache configuration overriding, supply an ExecutionService that runs tasks on the caller thread for event listeners, and supply a StatisticsService for management.
… Ehcache 3, use the default configuration when the Ehcache is not pre-created by the XML configurations.
@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@dantewang
Copy link
Collaborator Author

ci:test:relevant

@dantewang
Copy link
Collaborator Author

ci:test:clustering

@dantewang
Copy link
Collaborator Author

ci:test:core-functional

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 5fe2861239e84ecd0758b51a9708e4249c8405d4

Sender Branch:

Branch Name: LPD-41245-upgrade-to-ehcache3
Branch GIT ID: 3b9589a598830b2c5b48cdb515b88f6ff0fcb0a7

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:core-functional - 194 out of 224 jobs passed in 1 hour 46 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 5fe2861239e84ecd0758b51a9708e4249c8405d4

Upstream Comparison:

Branch GIT ID: 5fe2861239e84ecd0758b51a9708e4249c8405d4
Jenkins Build URL: EE Development Acceptance (master) - 1068 - 2024-12-07[12:36:31]

ci:test:core-functional - 194 out of 224 jobs PASSED

30 Failed Jobs:

194 Successful Jobs:
    For more details click here.

    Failures unique to this pull:

    1. functional-tomcat90-mysql57/1/5
           [echo] [2024-12-08T20:23:03,191][INFO ][o.e.e.NodeEnvironment    ] [test-1-33-3.lax.liferay.com] using [1] data paths, mounts [[/opt/dev/projects/github (/dev/nvme0n1p2)]], net usable_space [1.2tb], net total_space [1.7tb], types [ext4]
           [echo] [2024-12-08T20:23:03,193][INFO ][o.e.e.NodeEnvironment    ] [test-1-33-3.lax.liferay.com] heap size [1.9gb], compressed ordinary object pointers [true]
           [echo] [2024-12-08T20:23:03,376][INFO ][o.e.n.Node               ] [test-1-33-3.lax.liferay.com] node name [test-1-33-3.lax.liferay.com], node ID [xtIF2OtNStS9fwOnbMzZwg], cluster name [LiferayElasticsearchCluster], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
           [echo] [2024-12-08T20:23:57,734][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [test-1-33-3.lax.liferay.com] [controller/319833] [Main.cc@122] controller (64 bit): Version 7.17.24 (Build ed240f42881932) Copyright (c) 2024 Elasticsearch BV
      [stopwatch] [start.elasticsearch.node: 2:39.405 sec]
      [stopwatch] [test.execution.duration: 10:07.660 sec]
      [stopwatch] [run.batch.test.action: 11:15.130 sec]
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:300: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1628: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1632: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16103: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:7067: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-elasticsearch7.xml:1380: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-elasticsearch7.xml:1425: Elasticsearch server on port 9200 failed to initialize.
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1290759894.properties
    2. functional-tomcat90-mysql57/2/4
           [exec] [ERROR] 
           [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
           [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
           [exec] [ERROR] 
           [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
           [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
           [exec] [ERROR] 
           [exec] [ERROR] After correcting the problems, you can resume the build with the command
           [exec] [ERROR]   mvn <args> -rf :com.liferay.faces.demo.alloy.showcase.portlet
      [stopwatch] [test.execution.duration: 1:07.406 sec]
      [stopwatch] [run.batch.test.action: 1:39.745 sec]
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:300: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1628: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1632: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16008: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-jsf.xml:80: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:531: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:650: exec returned: 1
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1002390593.properties
    3. functional-tomcat90-mysql57/2/11
           [exec] [ERROR] 
           [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
           [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
           [exec] [ERROR] 
           [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
           [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
           [exec] [ERROR] 
           [exec] [ERROR] After correcting the problems, you can resume the build with the command
           [exec] [ERROR]   mvn <args> -rf :com.liferay.faces.demo.alloy.showcase.portlet
      [stopwatch] [test.execution.duration: 1:09.635 sec]
      [stopwatch] [run.batch.test.action: 1:41.965 sec]
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:300: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1628: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1632: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16008: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-jsf.xml:80: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:531: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:650: exec returned: 1
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1241512034.properties
      1. ...
    4. functional-tomcat90-mysql57/2/12
           [exec] [ERROR] 
           [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
           [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
           [exec] [ERROR] 
           [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
           [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
           [exec] [ERROR] 
           [exec] [ERROR] After correcting the problems, you can resume the build with the command
           [exec] [ERROR]   mvn <args> -rf :com.liferay.faces.demo.alloy.showcase.portlet
      [stopwatch] [test.execution.duration: 1:10.538 sec]
      [stopwatch] [run.batch.test.action: 1:53.189 sec]
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:300: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1628: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1632: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16008: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-jsf.xml:80: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:531: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:650: exec returned: 1
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null960452963.properties
      1. ...
    5. functional-tomcat90-mysql57/2/13
           [exec] [ERROR] 
           [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
           [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
           [exec] [ERROR] 
           [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
           [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
           [exec] [ERROR] 
           [exec] [ERROR] After correcting the problems, you can resume the build with the command
           [exec] [ERROR]   mvn <args> -rf :com.liferay.faces.demo.alloy.showcase.portlet
      [stopwatch] [test.execution.duration: 1:38.099 sec]
      [stopwatch] [run.batch.test.action: 2:10.564 sec]
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:300: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1628: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1632: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16008: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-jsf.xml:80: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:531: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-common.xml:650: exec returned: 1
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1237087422.properties
      1. ...
    6. ...

    For upstream results, click here.

    Test bundle downloads:

    @liferay-continuous-integration
    Copy link
    Collaborator

    @dantewang
    Copy link
    Collaborator Author

    ci:report:87254104

    @dantewang
    Copy link
    Collaborator Author

    ci:report:87256574

    @liferay-continuous-integration
    Copy link
    Collaborator

    Build completed.

    Testray CSV has been generated successfully for testrayBuildID: 87254104.

    Job Link: generate-testray-csv

    Testray CSV Link: testray-results-87254104.csv

    @liferay-continuous-integration
    Copy link
    Collaborator

    Build completed.

    Testray CSV has been generated successfully for testrayBuildID: 87256574.

    Job Link: generate-testray-csv

    Testray CSV Link: testray-results-87256574.csv

    … to remove; fire remove event by ourselves, because multi-vm cache replication depends on it.
    @dantewang dantewang force-pushed the LPD-41245-upgrade-to-ehcache3 branch from 3b9589a to 31c5015 Compare December 9, 2024 06:21
    @dantewang
    Copy link
    Collaborator Author

    ci:test:clustering

    @dantewang
    Copy link
    Collaborator Author

    Build completed.

    Testray CSV has been generated successfully for testrayBuildID: 87256574.

    Job Link: generate-testray-csv

    Testray CSV Link: testray-results-87256574.csv

    No unique failure in non-cluster core-functional tests.

    Will double check clustering tests in the latest clustering run.

    @liferay-continuous-integration
    Copy link
    Collaborator

    ❌ ci:test:clustering - 45 out of 48 jobs passed in 1 hour 48 minutes

    Click here for more details.

    Base Branch:

    Branch Name: master
    Branch GIT ID: 5fe2861239e84ecd0758b51a9708e4249c8405d4

    Upstream Comparison:

    Branch GIT ID: 5fe2861239e84ecd0758b51a9708e4249c8405d4
    Jenkins Build URL: EE Development Acceptance (master) - 1068 - 2024-12-07[12:36:31]

    ci:test:clustering - 45 out of 48 jobs PASSED

    3 Failed Jobs:

    45 Successful Jobs:
      For more details click here.

      Failures unique to this pull:

      For upstream results, click here.

      Test bundle downloads:

      @liferay-continuous-integration
      Copy link
      Collaborator

      @dantewang
      Copy link
      Collaborator Author

      Jenkins Build:test-portal-acceptance-pullrequest(master)#19091
      Jenkins Report:jenkins-report.html
      **Jenkins Suite:**clustering
      Pull Request:liferay-core-infra#7721
      Testray Routine:EE Pull Request
      Testray Build:[master] ci:test:clustering - dantewang > liferay-core-infra - PR#7721 - 2024-12-08[22:21:59]
      **Testray Build ID:**87278022
      Testray Importer:publish-testray-report#41303

      No unique failure in clustering.

      Copy link

      Please resolve conflicts so we can continue reviewing and processing.

      Created by PR_Conflicts_Alert[bot]

      Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
      Projects
      None yet
      Development

      Successfully merging this pull request may close these issues.

      2 participants