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

FISH-7841: fixing path to localize hazelcast configuration file #6477

Conversation

breakponchito
Copy link
Contributor

@breakponchito breakponchito commented Nov 9, 2023

Fix to locate the hazelcast config file on another folder

Description

This is a fix for a reported bug regarding file config location for hazelcast

Important Info

Blockers

Testing

New tests

Testing Performed

Manual testing with hazelcast configuration file:
testing hazel cast file on the current directory:test.xml
command: java -jar payara-micro.jar --hzconfigfile test.xml
`
[2023-11-10T12:11:29.633-0600] [] [INFO] [] [fish.payara.boot.runtime.BootCommand] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1699639889633] [levelValue: 800] [[
Boot Command set returned with result SUCCESS : PlainTextActionReporterSUCCESSDescription: set AdminCommandnull
hazelcast-runtime-configuration.hazelcast-configuration-file=test.xml
]]

[2023-11-10T12:11:30.289-0600] [] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=31 _ThreadName=RunLevelControllerThread-1699639889692] [timeMillis: 1699639890289] [levelValue: 800] Loading Hazelcast configuration from file: test.xml

[2023-11-10T12:11:33.731-0600] [] [INFO] [] [fish.payara.nucleus.cluster.PayaraCluster] [tid: _ThreadID=97 _ThreadName=Executor-Service-1] [timeMillis: 1699639893731] [levelValue: 800] [[
Data Grid Status
Payara Data Grid State: DG Version: 5 DG Name: mycluster DG Size: 1
Instances: {
DataGrid: mycluster Name: Happy-Cavefish Lite: false This: true UUID: be43eb84-7ef7-4fb5-bf07-e2159f842cbe Address: /172.28.253.32:5701
}]]

`

and the fix for custom folder for the hazelcast file: hazel/hazelcast-config.xml
command: java -jar payara-micro.jar --hzconfigfile hazel/hazelcast-config.xml

`
[2023-11-10T12:42:36.842-0600] [] [INFO] [] [fish.payara.boot.runtime.BootCommand] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1699641756842] [levelValue: 800] [[
Boot Command set returned with result SUCCESS : PlainTextActionReporterSUCCESSDescription: set AdminCommandnull
hazelcast-runtime-configuration.hazelcast-configuration-file=hazel/hazelcast-config.xml
]]

[2023-11-10T12:42:37.466-0600] [] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=32 _ThreadName=RunLevelControllerThread-1699641756902] [timeMillis: 1699641757466] [levelValue: 800] Loading Hazelcast configuration from file: hazel/hazelcast-config.xml

[2023-11-10T12:42:41.049-0600] [] [INFO] [] [fish.payara.nucleus.cluster.PayaraCluster] [tid: _ThreadID=99 _ThreadName=Executor-Service-1] [timeMillis: 1699641761049] [levelValue: 800] [[
Data Grid Status
Payara Data Grid State: DG Version: 5 DG Name: customName DG Size: 1
Instances: {
DataGrid: customName Name: Excited-Anglerfish Lite: false This: true UUID: 97929393-4e55-4e6f-b54c-95fd5e4e60e3 Address: /172.28.253.32:5701
}]]

`

with more than one folder: java -jar payara-micro.jar --hzconfigfile hazel/temp/hazelcast-config.xml

`
[2023-11-10T13:25:09.268-0600] [] [INFO] [] [fish.payara.boot.runtime.BootCommand] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1699644309268] [levelValue: 800] [[
Boot Command set returned with result SUCCESS : PlainTextActionReporterSUCCESSDescription: set AdminCommandnull
hazelcast-runtime-configuration.hazelcast-configuration-file=hazel/temp/hazelcast-config.xml
]]

[2023-11-10T13:25:09.954-0600] [] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=31 _ThreadName=RunLevelControllerThread-1699644309320] [timeMillis: 1699644309954] [levelValue: 800] Loading Hazelcast configuration from file: hazel/temp/hazelcast-config.xml

[2023-11-10T13:25:13.869-0600] [] [INFO] [] [fish.payara.nucleus.cluster.PayaraCluster] [tid: _ThreadID=98 _ThreadName=Executor-Service-1] [timeMillis: 1699644313869] [levelValue: 800] [[
Data Grid Status
Payara Data Grid State: DG Version: 5 DG Name: customName DG Size: 1
Instances: {
DataGrid: customName Name: Strange-Medusafish Lite: false This: true UUID: cdcf8a5a-82fa-4f39-ab0d-5b784689aac0 Address: /172.28.253.32:5701
}]]

`

The name of the cluster was provided from the hazelcast file config

Testing Environment

Ubuntu 20.04, JDK 11, maven 3.8.6

Documentation

Notes for Reviewers

@breakponchito
Copy link
Contributor Author

Jenkins test please

@breakponchito
Copy link
Contributor Author

Still testing

@breakponchito
Copy link
Contributor Author

already tested

@Pandrex247 Pandrex247 changed the title FISH-7959: fixing path to localize hazelcast configuration file FISH-7841: fixing path to localize hazelcast configuration file Nov 13, 2023
Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JIRA ID on the commit is incorrect

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JIRA ID on the commit is incorrect

@Pandrex247
Copy link
Member

Otherwise eyeballing it LGTM

@breakponchito
Copy link
Contributor Author

Jenkins test please

@breakponchito breakponchito merged commit ed619d1 into payara:master Nov 13, 2023
1 check passed
@grommitz
Copy link

@Pandrex247 I think there has been a regression of this fix. It was originally fixed in 6.2023.12 and has been working for me since then. But I just tried upgrading to 6.2024.4 and it is no longer working, the config is not loaded again.

@Pandrex247
Copy link
Member

Interesting, that class hasn't been changed since this fix.
Looking at the title of other commits that have touched Hazelcast or Micro recently - nothing jumps out at me has being a change that would break this again 🤔

Please feel free to raise an issue with a reproducer.

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

Successfully merging this pull request may close these issues.

None yet

3 participants