Repository: hazelcast/hazelcast (language: java)

Issue:
com.hazelcast.mapstore.* 'NoClassDefFoundError' [HZ-3660]
_master_ (commit 0d36189619cd30230e4a68818658c2183c427337)
Failed on oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-16/2/testReport/junit/com.hazelcast.mapstore.postgres/

<details><summary>Example Stacktrace:</summary>

```
java.lang.NoClassDefFoundError: com/hazelcast/shaded/org/apache/calcite/rex/RexVisitor
	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
	at java.base/java.lang.Class.getConstructor0(Class.java:3342)
	at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2553)
	at com.hazelcast.internal.util.ServiceLoader$NewInstanceIterator.next(ServiceLoader.java:293)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at com.hazelcast.jet.sql.impl.connector.SqlConnectorCache.<init>(SqlConnectorCache.java:38)
	at com.hazelcast.jet.sql.impl.CalciteSqlOptimizer.<init>(CalciteSqlOptimizer.java:248)
	at com.hazelcast.sql.impl.SqlServiceImpl.start(SqlServiceImpl.java:95)
	at com.hazelcast.spi.impl.NodeEngineImpl.start(NodeEngineImpl.java:292)
	at com.hazelcast.instance.impl.Node.start(Node.java:483)
	at com.hazelcast.instance.impl.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:125)
	at com.hazelcast.instance.impl.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:218)
	at com.hazelcast.instance.impl.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:197)
	at com.hazelcast.test.TestHazelcastInstanceFactory.newHazelcastInstance(TestHazelcastInstanceFactory.java:236)
	at com.hazelcast.jet.SimpleTestInClusterSupport.initializeWitSupplier(SimpleTestInClusterSupport.java:80)
	at com.hazelcast.jet.SimpleTestInClusterSupport.initialize(SimpleTestInClusterSupport.java:68)
	at com.hazelcast.jet.sql.impl.connector.jdbc.JdbcSqlTestSupport.initialize(JdbcSqlTestSupport.java:78)
	at com.hazelcast.jet.sql.impl.connector.jdbc.JdbcSqlTestSupport.initialize(JdbcSqlTestSupport.java:65)
	at com.hazelcast.mapstore.postgres.PostgresGenericMapStoreTest.beforeClass(PostgresGenericMapStoreTest.java:30)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.hazelcast.test.AfterClassesStatement.evaluate(AfterClassesStatement.java:41)
	at com.hazelcast.test.OverridePropertyRule$1.evaluate(OverridePropertyRule.java:66)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: com.hazelcast.shaded.org.apache.calcite.rex.RexVisitor
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 25 more

```

</details>

<details><summary>Standard output:</summary>

```
11:03:58,970  INFO || - [MetricsConfigHelper] Time-limited test - [LOCAL] [dev] [5.4.0-SNAPSHOT] Overridden metrics configuration with system property 'hazelcast.metrics.collection.frequency'='1' -> 'MetricsConfig.collectionFrequencySeconds'='1'
11:03:58,972  INFO || - [logo] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] 
	+       +  o    o     o     o---o o----o o      o---o     o     o----o o--o--o
	+ +   + +  |    |    / \       /  |      |     /         / \    |         |   
	+ + + + +  o----o   o   o     o   o----o |    o         o   o   o----o    |   
	+ +   + +  |    |  /     \   /    |      |     \       /     \       |    |   
	+       +  o    o o       o o---o o----o o----o o---o o       o o----o    o   
11:03:58,972  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Copyright (c) 2008-2023, Hazelcast, Inc. All Rights Reserved.
11:03:58,972  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Hazelcast Platform 5.4.0-SNAPSHOT (20231102 - 0d36189) starting at [127.0.0.1]:5701
11:03:58,972  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Cluster name: dev
11:03:58,972  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Integrity Checker is disabled. Fail-fast on corrupted executables will not be performed. For more information, see the documentation for Integrity Checker.
11:03:58,973  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Jet is enabled
11:03:58,983  INFO || - [MetricsConfigHelper] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Collecting debug metrics and sending to diagnostics is enabled
11:03:58,984  INFO || - [TpcServerBootstrap] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] TPC: disabled
11:03:58,998  WARN || - [CPSubsystem] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] CP Subsystem is not enabled. CP data structures will operate in UNSAFE mode! Please note that UNSAFE mode will not provide strong consistency guarantees.
11:03:59,019  INFO || - [JetServiceBackend] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Setting number of cooperative threads and default parallelism to 2
11:03:59,055  WARN || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Terminating forcefully...
11:03:59,055  INFO || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Shutting down connection manager...
11:03:59,055  INFO || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Shutting down node engine...
11:03:59,061  INFO || - [NodeExtension] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Destroying node NodeExtension.
11:03:59,061  INFO || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Hazelcast Shutdown is completed in 6 ms.
11:03:59,577  INFO || - [SimpleTestInClusterSupport] Time-limited test - Terminating instance factory in SimpleTestInClusterSupport.@AfterClass

```
</details>

Standard output can be found here - https://s3.console.aws.amazon.com/s3/buckets/j-artifacts/Hazelcast-master-postgres-16/2/

[com.hazelcast.mapstore.postgres.PostgreGenericMapStoreIntegrationTest.(?)](https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-16/lastSuccessfulBuild/testReport/junit/com.hazelcast.mapstore.postgres/PostgreGenericMapStoreIntegrationTest/___/)
[com.hazelcast.mapstore.postgres.PostgresGenericMapStoreTest.(?)](https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-16/lastSuccessfulBuild/testReport/junit/com.hazelcast.mapstore.postgres/PostgresGenericMapStoreTest/___/)
[com.hazelcast.mapstore.mysql.MySQLGenericMapStoreIntegrationTest.(?)](https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-8.2/lastSuccessfulBuild/testReport/junit/com.hazelcast.mapstore.mysql/MySQLGenericMapStoreIntegrationTest/___/)
[com.hazelcast.mapstore.mysql.MySQLGenericMapStoreTest.(?)](https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-8.2/lastSuccessfulBuild/testReport/junit/com.hazelcast.mapstore.mysql/MySQLGenericMapStoreTest/___/)



Discussion / hints:
Related: https://github.com/hazelcast/hazelcast-enterprise/issues/6763
Failed again on _master_ with oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-5.7/30/testReport/junit/com.hazelcast.mapstore.mysql/
Internal Jira issue: [HZ-3660](https://hazelcast.atlassian.net//browse/HZ-3660)
Failed again on _master_ with 

- oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-15/27/testReport/junit/com.hazelcast.mapstore.postgres/
- oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-12/28/testReport/junit/com.hazelcast.mapstore.postgres/
Failed again on _master_ with:
-  oracle-11: https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-postgres-11/27/testReport/com.hazelcast.mapstore.postgres/
- oracle-11 (postgres 13): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-postgres-13/27/testReport/com.hazelcast.mapstore.postgres/
- oracle-11 (MySQL 8.0): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-mysql-8.0/28/testReport/com.hazelcast.mapstore.mysql/
- oracle-11 (postgres 14): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-postgres-14/27/testReport/com.hazelcast.mapstore.postgres/
- oracle-11 (postgres 16): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-postgres-16/4/testReport/com.hazelcast.mapstore.postgres/
- oracle-11 (MySQL 5.7): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-mysql-5.7/31/testReport/com.hazelcast.mapstore.mysql/
- oracle-11 (postgres 15): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-postgres-15/28/testReport/com.hazelcast.mapstore.postgres/
- oracle-11 (postgres 12): https://jenkins.hazelcast.com/view/Official%20Builds/job/Hazelcast-master-postgres-12/29/testReport/com.hazelcast.mapstore.postgres/
Failed again on _master_ with oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-11/28/testReport/junit/com.hazelcast.mapstore.postgres/
Related errors in `enterprise-sql-it`: https://jenkins.hazelcast.com/job/Hazelcast-EE-master-ZingJDK17-nightly/50/
Failed again on _master_ with oracle-11 (pg-13): https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-13/28/testReport/junit/com.hazelcast.mapstore.postgres/
Failed again on _master_ with 

- openjdk-sts (openjdk-20): https://jenkins.hazelcast.com/job/Hazelcast-EE-master-OpenJDK-sts-nightly/54/testReport/junit/com.hazelcast.it.sql/
- oracle-11 (little-endian): https://jenkins.hazelcast.com/job/Hazelcast-EE-master-nightly-little-endian/53/testReport/junit/com.hazelcast.it.sql/
- oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-8.0/29/testReport/junit/com.hazelcast.mapstore.mysql/
- zing-11: https://jenkins.hazelcast.com/job/Hazelcast-EE-master-ZingJDK11-nightly/55/testReport/junit/com.hazelcast.it.sql/
- OpenJDK17: https://jenkins.hazelcast.com/job/Hazelcast-EE-master-OpenJDK17-nightly-Esxi7/57/testReport/junit/com.hazelcast.it.sql/
- oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-8.2/3/testReport/junit/com.hazelcast.mapstore.mysql/
- openjdk-17: https://jenkins.hazelcast.com/job/Hazelcast-EE-master-ZuluJDK17-nightly/94/testReport/junit/com.hazelcast.it.sql/
- oracle-11 (pg-14): https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-14/28/testReport/junit/com.hazelcast.mapstore.postgres/
- oracle-11 (pg-16): https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-16/5/testReport/junit/com.hazelcast.mapstore.postgres/
- oracle-11 (mysql-5.7): https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-5.7/32/testReport/junit/com.hazelcast.mapstore.mysql/
- OpenJDK11 (arm64): https://jenkins.hazelcast.com/job/Hazelcast-EE-master-OpenJDK11-arm64-nightly/33/testReport/junit/com.hazelcast.it.sql/
- oracle-11 (postgres-15): https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-15/29/testReport/junit/com.hazelcast.mapstore.postgres/
- oracle-11 (pg-12): https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-12/30/testReport/junit/com.hazelcast.mapstore.postgres/
Failed again on _master_ with: 
* oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-11/29/testReport/com.hazelcast.mapstore.postgres/
* ZingJDK17: https://jenkins.hazelcast.com/job/Hazelcast-EE-master-ZingJDK17-nightly/lastSuccessfulBuild/testReport/ (all failures from `com.hazelcast.it.sql.*`)
* oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-13/29/testReport/com.hazelcast.mapstore.postgres/
* oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-mysql-8.0/30/testReport/com.hazelcast.mapstore.mysql/
Reopening as issue occurred again on: _master_ (commit 1dfbd0992f66dbf8747aee16dfead6d953db4d9d)
with oracle-11: https://jenkins.hazelcast.com/job/Hazelcast-master-postgres-14/30/testReport/com.hazelcast.mapstore.postgres/PostgreGenericMapStoreIntegrationTest/___/
<details><summary>Stacktrace:</summary>

```
java.lang.NoClassDefFoundError: com/hazelcast/shaded/org/apache/calcite/rex/RexVisitor
	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
	at java.base/java.lang.Class.getConstructor0(Class.java:3342)
	at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2553)
	at com.hazelcast.internal.util.ServiceLoader$NewInstanceIterator.next(ServiceLoader.java:293)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at com.hazelcast.jet.sql.impl.connector.SqlConnectorCache.<init>(SqlConnectorCache.java:38)
	at com.hazelcast.jet.sql.impl.CalciteSqlOptimizer.<init>(CalciteSqlOptimizer.java:250)
	at com.hazelcast.sql.impl.SqlServiceImpl.start(SqlServiceImpl.java:95)
	at com.hazelcast.spi.impl.NodeEngineImpl.start(NodeEngineImpl.java:292)
	at com.hazelcast.instance.impl.Node.start(Node.java:483)
	at com.hazelcast.instance.impl.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:124)
	at com.hazelcast.instance.impl.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:218)
	at com.hazelcast.instance.impl.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:197)
	at com.hazelcast.test.TestHazelcastInstanceFactory.newHazelcastInstance(TestHazelcastInstanceFactory.java:236)
	at com.hazelcast.jet.SimpleTestInClusterSupport.initializeWitSupplier(SimpleTestInClusterSupport.java:80)
	at com.hazelcast.jet.SimpleTestInClusterSupport.initializeWithClientAndConfigSupplier(SimpleTestInClusterSupport.java:99)
	at com.hazelcast.jet.SimpleTestInClusterSupport.initializeWithClient(SimpleTestInClusterSupport.java:90)
	at com.hazelcast.mapstore.GenericMapStoreIntegrationTest.initializeBeforeClass(GenericMapStoreIntegrationTest.java:106)
	at com.hazelcast.mapstore.postgres.PostgreGenericMapStoreIntegrationTest.beforeClass(PostgreGenericMapStoreIntegrationTest.java:35)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.hazelcast.test.AfterClassesStatement.evaluate(AfterClassesStatement.java:41)
	at com.hazelcast.test.OverridePropertyRule$1.evaluate(OverridePropertyRule.java:66)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: com.hazelcast.shaded.org.apache.calcite.rex.RexVisitor
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 25 more

```
</details>


<details><summary>Standard output:</summary>

```
13:53:50,017  INFO || - [MetricsConfigHelper] Time-limited test - [LOCAL] [dev] [5.4.0-SNAPSHOT] Overridden metrics configuration with system property 'hazelcast.metrics.collection.frequency'='1' -> 'MetricsConfig.collectionFrequencySeconds'='1'
13:53:50,066  INFO || - [logo] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] 
	+       +  o    o     o     o---o o----o o      o---o     o     o----o o--o--o
	+ +   + +  |    |    / \       /  |      |     /         / \    |         |   
	+ + + + +  o----o   o   o     o   o----o |    o         o   o   o----o    |   
	+ +   + +  |    |  /     \   /    |      |     \       /     \       |    |   
	+       +  o    o o       o o---o o----o o----o o---o o       o o----o    o   
13:53:50,066  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Copyright (c) 2008-2023, Hazelcast, Inc. All Rights Reserved.
13:53:50,080  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Hazelcast Platform 5.4.0-SNAPSHOT (20231121 - 1dfbd09) starting at [127.0.0.1]:5701
13:53:50,080  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Cluster name: dev
13:53:50,080  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Integrity Checker is disabled. Fail-fast on corrupted executables will not be performed. For more information, see the documentation for Integrity Checker.
13:53:50,081  INFO || - [system] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Jet is enabled
13:53:50,099  INFO || - [MetricsConfigHelper] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Collecting debug metrics and sending to diagnostics is enabled
13:53:50,116  INFO || - [TpcServerBootstrap] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] TPC: disabled
13:53:50,358  WARN || - [CPSubsystem] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] CP Subsystem is not enabled. CP data structures will operate in UNSAFE mode! Please note that UNSAFE mode will not provide strong consistency guarantees.
13:53:50,635  INFO || - [JetServiceBackend] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Setting number of cooperative threads and default parallelism to 8
13:53:50,674  WARN || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Terminating forcefully...
13:53:50,676  INFO || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Shutting down connection manager...
13:53:50,676  INFO || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Shutting down node engine...
13:53:50,688  INFO || - [NodeExtension] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Destroying node NodeExtension.
13:53:50,688  INFO || - [Node] Time-limited test - [127.0.0.1]:5701 [dev] [5.4.0-SNAPSHOT] Hazelcast Shutdown is completed in 14 ms.
13:53:51,339  INFO || - [SimpleTestInClusterSupport] Time-limited test - Terminating instance factory in SimpleTestInClusterSupport.@AfterClass

```
</details>

Standard output can be found here - https://s3.console.aws.amazon.com/s3/buckets/j-artifacts/Hazelcast-master-postgres-14/30/
^ Build was triggered 20m ago, so for sure after merged fix.
https://giphy.com/gifs/equipedefrance-allezlesbleues-frustre-3owypkSIpM8xw6p7W0/fullscreen

Fix patch:
diff --git a/extensions/mapstore/pom.xml b/extensions/mapstore/pom.xml
index ceeb177c57d4c..4f8e9e5cab0eb 100644
--- a/extensions/mapstore/pom.xml
+++ b/extensions/mapstore/pom.xml
@@ -51,27 +51,31 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-shade-plugin</artifactId>
-                <configuration>
-                    <!--
-                    hazelcast-mapstore doesn't have any dependencies which should be included,
-                    no need for jar-with-dependencies
-                    -->
-                    <shadedArtifactAttached>false</shadedArtifactAttached>
-                    <relocations>
-                        <relocation>
+                <executions>
+                    <execution>
+                        <id>jar-with-dependencies</id>
+                        <phase>${shade.jar-with-dependencies.phase}</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration combine.self="override">
                             <!--
-                            We need to relocate our usage of org.apache.calcite to the location used in hazelcast-sql
+                            hazelcast-mapstore doesn't have any dependencies which should be included,
+                            no need for jar-with-dependencies
                             -->
-                            <pattern>org.apache.calcite</pattern>
-                            <shadedPattern>${relocation.root}.org.apache.calcite</shadedPattern>
-                        </relocation>
-                    </relocations>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-failsafe-plugin</artifactId>
-                <version>${maven.failsafe.plugin.version}</version>
+                            <shadedArtifactAttached>false</shadedArtifactAttached>
+                            <relocations>
+                                <relocation>
+                                    <!--
+                                    We need to relocate our usage of org.apache.calcite to the location used in hazelcast-sql
+                                    -->
+                                    <pattern>org.apache.calcite</pattern>
+                                    <shadedPattern>${relocation.root}.org.apache.calcite</shadedPattern>
+                                </relocation>
+                            </relocations>
+                        </configuration>
+                    </execution>
+                </executions>
             </plugin>
         </plugins>
     </build>
diff --git a/extensions/mongodb/pom.xml b/extensions/mongodb/pom.xml
index f37d6aa32d6e8..d368d4b259bf5 100644
--- a/extensions/mongodb/pom.xml
+++ b/extensions/mongodb/pom.xml
@@ -45,6 +45,7 @@
                             <Automatic-Module-Name>com.hazelcast.jet.mongodb</Automatic-Module-Name>
                         </manifestEntries>
                     </archive>
+                    <forceCreation>true</forceCreation>
                 </configuration>
             </plugin>
 
diff --git a/pom.xml b/pom.xml
index 2d4ccd38273e5..0aed21b99b36c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1315,17 +1315,17 @@
                                 -Dlog4j.skipJansi=true
                                 ${extraVmArgs}
                             </argLine>
+                            <groups>
+                                com.hazelcast.test.annotation.NightlyTest,
+                                com.hazelcast.test.annotation.SlowTest
+                            </groups>
                             <includes>
-                                <include>**/**.java</include>
+                                <include>**/**Test.java</include>
                             </includes>
                             <excludes>
                                 <exclude>**/**IT.java</exclude>
                                 <exclude>**/jsr/**.java</exclude>
                             </excludes>
-                            <groups>
-                                com.hazelcast.test.annotation.NightlyTest,
-                                com.hazelcast.test.annotation.SlowTest
-                            </groups>
                         </configuration>
                     </plugin>
                     <plugin>
@@ -1345,6 +1345,9 @@
                             </argLine>
                             <useManifestOnlyJar>false</useManifestOnlyJar>
                             <useSystemClassLoader>true</useSystemClassLoader>
+                            <includes>
+                                <include>**/*IT.java</include>
+                            </includes>
                             <groups>
                                 com.hazelcast.test.annotation.NightlyTest,
                                 com.hazelcast.test.annotation.SlowTest


Test patch:
diff --git a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/GenericMapStoreIntegrationTest.java b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/GenericMapStoreIT.java
similarity index 99%
rename from extensions/mapstore/src/test/java/com/hazelcast/mapstore/GenericMapStoreIntegrationTest.java
rename to extensions/mapstore/src/test/java/com/hazelcast/mapstore/GenericMapStoreIT.java
index 10eadc1d27d67..27684c1bcb4db 100644
--- a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/GenericMapStoreIntegrationTest.java
+++ b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/GenericMapStoreIT.java
@@ -65,7 +65,7 @@
 
 @RunWith(HazelcastSerialClassRunner.class)
 @Category({QuickTest.class})
-public class GenericMapStoreIntegrationTest extends JdbcSqlTestSupport {
+public class GenericMapStoreIT extends JdbcSqlTestSupport {
 
     private static Config memberConfig;
 
diff --git a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mariadb/MariaDBGenericMapStoreIntegrationTest.java b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mariadb/MariaDBGenericMapStoreIT.java
similarity index 84%
rename from extensions/mapstore/src/test/java/com/hazelcast/mapstore/mariadb/MariaDBGenericMapStoreIntegrationTest.java
rename to extensions/mapstore/src/test/java/com/hazelcast/mapstore/mariadb/MariaDBGenericMapStoreIT.java
index d097989efe146..a1f561f8d75b1 100644
--- a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mariadb/MariaDBGenericMapStoreIntegrationTest.java
+++ b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mariadb/MariaDBGenericMapStoreIT.java
@@ -16,16 +16,16 @@
 
 package com.hazelcast.mapstore.mariadb;
 
-import com.hazelcast.mapstore.GenericMapStoreIntegrationTest;
+import com.hazelcast.mapstore.GenericMapStoreIT;
 import com.hazelcast.test.annotation.NightlyTest;
 import com.hazelcast.test.jdbc.MariaDBDatabaseProvider;
 import org.junit.BeforeClass;
 import org.junit.experimental.categories.Category;
 
 @Category({NightlyTest.class})
-public class MariaDBGenericMapStoreIntegrationTest extends GenericMapStoreIntegrationTest {
+public class MariaDBGenericMapStoreIT extends GenericMapStoreIT {
 
-    public MariaDBGenericMapStoreIntegrationTest() {
+    public MariaDBGenericMapStoreIT() {
         setPrefix("maria_");
     }
 
diff --git a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mssql/MSSQLGenericMapStoreIntegrationTest.java b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mssql/MSSQLGenericMapStoreIT.java
similarity index 84%
rename from extensions/mapstore/src/test/java/com/hazelcast/mapstore/mssql/MSSQLGenericMapStoreIntegrationTest.java
rename to extensions/mapstore/src/test/java/com/hazelcast/mapstore/mssql/MSSQLGenericMapStoreIT.java
index 90ef382553572..87ec1e2e8ef55 100644
--- a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mssql/MSSQLGenericMapStoreIntegrationTest.java
+++ b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mssql/MSSQLGenericMapStoreIT.java
@@ -16,7 +16,7 @@
 
 package com.hazelcast.mapstore.mssql;
 
-import com.hazelcast.mapstore.GenericMapStoreIntegrationTest;
+import com.hazelcast.mapstore.GenericMapStoreIT;
 import com.hazelcast.test.annotation.NightlyTest;
 import com.hazelcast.test.jdbc.MSSQLDatabaseProvider;
 import org.junit.BeforeClass;
@@ -25,9 +25,9 @@
 
 @Ignore
 @Category({NightlyTest.class})
-public class MSSQLGenericMapStoreIntegrationTest extends GenericMapStoreIntegrationTest {
+public class MSSQLGenericMapStoreIT extends GenericMapStoreIT {
 
-    public MSSQLGenericMapStoreIntegrationTest() {
+    public MSSQLGenericMapStoreIT() {
         setPrefix("mssql_");
     }
 
diff --git a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mysql/MySQLGenericMapStoreIntegrationTest.java b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mysql/MySQLGenericMapStoreIT.java
similarity index 84%
rename from extensions/mapstore/src/test/java/com/hazelcast/mapstore/mysql/MySQLGenericMapStoreIntegrationTest.java
rename to extensions/mapstore/src/test/java/com/hazelcast/mapstore/mysql/MySQLGenericMapStoreIT.java
index d686f5a1f7ca4..94958a73119d0 100644
--- a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mysql/MySQLGenericMapStoreIntegrationTest.java
+++ b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/mysql/MySQLGenericMapStoreIT.java
@@ -16,16 +16,16 @@
 
 package com.hazelcast.mapstore.mysql;
 
-import com.hazelcast.mapstore.GenericMapStoreIntegrationTest;
+import com.hazelcast.mapstore.GenericMapStoreIT;
 import com.hazelcast.test.annotation.NightlyTest;
 import com.hazelcast.test.jdbc.MySQLDatabaseProvider;
 import org.junit.BeforeClass;
 import org.junit.experimental.categories.Category;
 
 @Category({NightlyTest.class})
-public class MySQLGenericMapStoreIntegrationTest extends GenericMapStoreIntegrationTest {
+public class MySQLGenericMapStoreIT extends GenericMapStoreIT {
 
-    public MySQLGenericMapStoreIntegrationTest() {
+    public MySQLGenericMapStoreIT() {
         setPrefix("mysql_");
     }
 
diff --git a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgreGenericMapStoreIntegrationTest.java b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgreGenericMapStoreIT.java
similarity index 84%
rename from extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgreGenericMapStoreIntegrationTest.java
rename to extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgreGenericMapStoreIT.java
index a2dccc9c8d8f7..c2a9178ab6134 100644
--- a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgreGenericMapStoreIntegrationTest.java
+++ b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgreGenericMapStoreIT.java
@@ -16,16 +16,16 @@
 
 package com.hazelcast.mapstore.postgres;
 
-import com.hazelcast.mapstore.GenericMapStoreIntegrationTest;
+import com.hazelcast.mapstore.GenericMapStoreIT;
 import com.hazelcast.test.annotation.NightlyTest;
 import com.hazelcast.test.jdbc.PostgresDatabaseProvider;
 import org.junit.BeforeClass;
 import org.junit.experimental.categories.Category;
 
 @Category({NightlyTest.class})
-public class PostgreGenericMapStoreIntegrationTest extends GenericMapStoreIntegrationTest {
+public class PostgreGenericMapStoreIT extends GenericMapStoreIT {
 
-    public PostgreGenericMapStoreIntegrationTest() {
+    public PostgreGenericMapStoreIT() {
         setPrefix("postgre_");
     }
 
diff --git a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgresGenericMapStoreTest.java b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgresGenericMapStoreSimpleIT.java
similarity index 93%
rename from extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgresGenericMapStoreTest.java
rename to extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgresGenericMapStoreSimpleIT.java
index c8a4d57a49bc5..4d896a6d63830 100644
--- a/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgresGenericMapStoreTest.java
+++ b/extensions/mapstore/src/test/java/com/hazelcast/mapstore/postgres/PostgresGenericMapStoreSimpleIT.java
@@ -23,7 +23,7 @@
 import org.junit.experimental.categories.Category;
 
 @Category(NightlyTest.class)
-public class PostgresGenericMapStoreTest extends GenericMapStoreTest {
+public class PostgresGenericMapStoreSimpleIT extends GenericMapStoreTest {
 
     @BeforeClass
     public static void beforeClass()  {