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

Allow member without JCache in classpath to join cluster when no Cache configurations are defined #9459

Merged
merged 2 commits into from
Dec 20, 2016

Conversation

vbekiaris
Copy link
Contributor

Allows a member without JCache API in its classpath to join a cluster whose members do have the JCache API, when JCache is not used (no CacheConfigs are already defined) and log a warning that if JCache API will be used, it will fail.
Also prints an informative SEVERE message in case CacheConfigs are delivered in the PostJoinCacheOperation but JCache API artifact is missing from the classpath (currently, a service not found exception is logged that indicates that CacheService is not available but does not provide information towards resolving the issue).

Fixes #9301

@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

Copy link
Contributor

@jerrinot jerrinot left a comment

Choose a reason for hiding this comment

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

very nice!

@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

ICacheService cacheService = getService();
for (CacheConfig cacheConfig : configs) {
cacheService.putCacheConfigIfAbsent(cacheConfig);
if (isJcacheAvailable(getNodeEngine().getConfigClassLoader())) {
Copy link
Member

Choose a reason for hiding this comment

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

isJCacheAvailable with capital C (it is not introduced here but just wanted to note)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @ahmetmircik , I renamed the methods in JCacheDetector with a capital C in a separate commit. Once green will squash & merge.

Copy link
Member

@ahmetmircik ahmetmircik left a comment

Choose a reason for hiding this comment

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

minor comment

@devOpsHazelcast
Copy link
Collaborator

Test PASSed.

@vbekiaris vbekiaris merged commit 12c8925 into hazelcast:master Dec 20, 2016
@vbekiaris vbekiaris deleted the fixes/3.8/jcache-join branch December 20, 2016 11:54
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Core Type: Defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not fail when node without JCache service joins cluster where JCache service is enabled but not used
5 participants