Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

property 'heartbeat.sender.cronExpression' is no longer supported. #765

Open
silverskyvicto opened this issue Jan 5, 2020 · 1 comment

Comments

@silverskyvicto
Copy link

Hi

When I installed Alfresco Content Services Community 6.2 GA, the following log was output to catalina.out.

2020-01-04 22:20:47,357  WARN  [heartbeat.datasender.HBDataSenderServiceBuilder] [localhost-startStop-1] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported.

heartbeat.sender.cronExpression appears to be used in the following beans:

https://github.com/Alfresco/alfresco-repository/blob/76ebd2d850802268ecf072e55200f7fffcbb19ff/src/main/resources/alfresco/heartbeat/heartbeat-context.xml#L11

When I open the target source in Intellij IDEA, the following is DEPRECATED.

https://github.com/Alfresco/alfresco-repository/blob/3aa4d1bb14981bc25e8d76fb44e8a73531b63dd0/src/main/java/org/alfresco/heartbeat/HBDataSenderServiceFactory.java#L82

@aitseitz
Copy link

aitseitz commented Oct 9, 2020

I can confirm this behaviour on latest ACS 6.2.2:

2020-10-09 12:16:19,061 WARN [org.alfresco.heartbeat.datasender.HBDataSenderServiceBuilder] [localhost-startStop-1] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported.

This WARN message even appears on each startup in the alfresco.log when you change the default settings
https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/repository.properties#L1276
to deactivate heartbeat for your ACS installation which is not connected to the internet in the alfresco-global.properties:
heartbeat.enabled=false

Additional references:
https://docs.alfresco.com/6.2/concepts/heartbeatintro.html
https://issues.alfresco.com/jira/browse/REPO-4923

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

No branches or pull requests

2 participants