Skip to content

Commit

Permalink
Upgrade to Hazelcast 4.2 with tenant control
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Mar 26, 2021
1 parent 1ee30c3 commit a73dc8c
Show file tree
Hide file tree
Showing 15 changed files with 263 additions and 1,042 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ def DOMAIN_NAME
def payaraBuildNumber
pipeline {
agent any
options {
disableConcurrentBuilds()
}
environment {
MP_METRICS_TAGS='tier=integration'
MP_CONFIG_CACHE_DURATION=0
Expand Down
8 changes: 0 additions & 8 deletions appserver/tests/payara-samples/micro-programmatic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap</groupId>
<artifactId>shrinkwrap-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap</groupId>
<artifactId>shrinkwrap-impl-base</artifactId>
</dependency>
</dependencies>

<profiles>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) [2016-2020] Payara Foundation and/or its affiliates. All rights reserved.
* Copyright (c) [2016-2021] Payara Foundation and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -146,11 +146,14 @@ private boolean isLoaded(String componentId, ComponentInvocation invocation) {
: compEnvMgr.getJndiNameEnvironment(componentId);
if (env != null) {
ApplicationInfo appInfo = appRegistry.get(DOLUtils.getApplicationFromEnv(env).getRegistrationName());
Collection<ModuleInfo> modules = appInfo.getModuleInfos();
String moduleName = DOLUtils.getModuleName(env);
if (modules.stream().filter(mod -> mod.getName().equals(moduleName))
.anyMatch(moduleInfo -> !moduleInfo.isLoaded())) {
return false;
if (appInfo != null) {
// Check if deployed vs. Payara internal application
Collection<ModuleInfo> modules = appInfo.getModuleInfos();
String moduleName = DOLUtils.getModuleName(env);
if (modules.stream().filter(mod -> mod.getName().equals(moduleName))
.anyMatch(moduleInfo -> !moduleInfo.isLoaded())) {
return false;
}
}
}
return env != null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
import static com.hazelcast.spi.properties.ClusterProperty.WAIT_SECONDS_BEFORE_JOIN;
import com.sun.enterprise.util.Utility;
import fish.payara.nucleus.events.HazelcastEvents;
import fish.payara.nucleus.hazelcast.contextproxy.CachingProviderProxy;
import org.glassfish.api.StartupRunLevel;
import org.glassfish.api.admin.ServerEnvironment;
import org.glassfish.api.admin.ServerEnvironment.Status;
Expand Down Expand Up @@ -534,7 +533,7 @@ private synchronized void bootstrapHazelcast() {
}
setAttribute(theInstance.getCluster().getLocalMember().getUuid(), INSTANCE_ATTRIBUTE, memberName);
setAttribute(theInstance.getCluster().getLocalMember().getUuid(), INSTANCE_GROUP_ATTRIBUTE, memberGroup);
hazelcastCachingProvider = new CachingProviderProxy(new HazelcastServerCachingProvider(theInstance), context);
hazelcastCachingProvider = new HazelcastServerCachingProvider(theInstance);
bindToJNDI();
if(env.getStatus() == Status.started) {
// only issue this event if the server is already running,
Expand Down
Loading

0 comments on commit a73dc8c

Please sign in to comment.