This is an automated email from the ASF dual-hosted git repository.

nixonrodrigues pushed a commit to branch atlas-2.6
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/atlas-2.6 by this push:
     new a7972d4ab3 ATLAS-5439 Fix HBase, Storm, Falcon, and Trino bridge 
integration tests on atlas-2.6 branch (#804)
a7972d4ab3 is described below

commit a7972d4ab38e081bc3f7f50f4c4376a64c22d693
Author: Nixon Rodrigues <[email protected]>
AuthorDate: Thu Nov 26 20:34:06 2026 +0530

    ATLAS-5439 Fix HBase, Storm, Falcon, and Trino bridge integration tests on 
atlas-2.6 branch (#804)
    
    * ATLAS-5439 Fix HBase, Storm, Falcon, and Trino bridge integration tests.
    
    Pin Jetty 9.3 for Hadoop 3.0.3 mini-clusters.
    Stabilize HBase IT host binding.
    Adjust Storm local cluster config for Apple Silicon.
    Use v1 notifications in Falcon ITs.
    Align Failsafe with surefire-testng while skipping placeholder Trino ITs.
    
    Co-authored-by: Cursor <[email protected]>
---
 .../test/resources/atlas-application.properties    |  1 +
 addons/hbase-bridge/pom.xml                        | 72 ++++++++++++++++++----
 .../org/apache/atlas/hbase/HBaseAtlasHookIT.java   | 18 +++---
 addons/hbase-testing-util/pom.xml                  | 52 +++++++++++++++-
 .../atlas/hbase/TestHBaseTestingUtilSpinup.java    |  2 +
 addons/storm-bridge/pom.xml                        | 10 +++
 .../org/apache/atlas/storm/hook/StormTestUtil.java | 10 ++-
 addons/trino-extractor/pom.xml                     |  2 +
 pom.xml                                            |  9 ++-
 9 files changed, 152 insertions(+), 24 deletions(-)

diff --git 
a/addons/falcon-bridge/src/test/resources/atlas-application.properties 
b/addons/falcon-bridge/src/test/resources/atlas-application.properties
index 94a75aab4a..69cb5b7069 100644
--- a/addons/falcon-bridge/src/test/resources/atlas-application.properties
+++ b/addons/falcon-bridge/src/test/resources/atlas-application.properties
@@ -48,6 +48,7 @@ atlas.graph.index.search.solr.embedded=true
 atlas.graph.index.search.max-result-set-size=150
 #########  Notification Configs  #########
 atlas.notification.embedded=true
+atlas.notification.entity.version=v1
 atlas.kafka.zookeeper.connect=localhost:19026
 atlas.kafka.bootstrap.servers=localhost:19027
 atlas.kafka.data=${sys:atlas.data}/kafka
diff --git a/addons/hbase-bridge/pom.xml b/addons/hbase-bridge/pom.xml
index 28f414dc7d..1b91a136fb 100644
--- a/addons/hbase-bridge/pom.xml
+++ b/addons/hbase-bridge/pom.xml
@@ -36,11 +36,61 @@
         <apache.log4j.version>2.17.1</apache.log4j.version>
         <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
         <checkstyle.skip>false</checkstyle.skip>
+        <hadoop.jetty.version>9.3.19.v20170502</hadoop.jetty.version>
         <hadoop.version>3.0.3</hadoop.version>
         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
-        <jetty.version>9.3.14.v20161028</jetty.version>
     </properties>
 
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-http</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-io</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-security</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-server</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-servlet</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-util</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-util-ajax</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-webapp</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-xml</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>com.google.guava</groupId>
@@ -168,12 +218,6 @@
             <artifactId>httpcore</artifactId>
             <version>${httpcomponents-httpcore.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.eclipse.jetty</groupId>
-            <artifactId>jetty-webapp</artifactId>
-            <version>${jetty.version}</version>
-            <scope>compile</scope>
-        </dependency>
         <dependency>
             <groupId>org.mockito</groupId>
             <artifactId>mockito-all</artifactId>
@@ -287,15 +331,19 @@
             <version>${apache.log4j.version}</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.eclipse.jetty</groupId>
-            <artifactId>jetty-server</artifactId>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <configuration>
+                    <!-- MiniCluster uses Hadoop HttpServer2 + Jetty 9.3 APIs; 
isolate from Jetty 9.4 in the Jetty Maven plugin JVM -->
+                    <forkCount>1</forkCount>
+                    <!-- Spinup is a Surefire test in 
addons/hbase-testing-util, not an Atlas bridge IT -->
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.eclipse.jetty</groupId>
                 <artifactId>jetty-maven-plugin</artifactId>
diff --git 
a/addons/hbase-bridge/src/test/java/org/apache/atlas/hbase/HBaseAtlasHookIT.java
 
b/addons/hbase-bridge/src/test/java/org/apache/atlas/hbase/HBaseAtlasHookIT.java
index 40cd28139a..cd2cd826ab 100644
--- 
a/addons/hbase-bridge/src/test/java/org/apache/atlas/hbase/HBaseAtlasHookIT.java
+++ 
b/addons/hbase-bridge/src/test/java/org/apache/atlas/hbase/HBaseAtlasHookIT.java
@@ -65,13 +65,9 @@ public class HBaseAtlasHookIT {
     private AtlasClientV2       atlasClient;
 
     @BeforeClass
-    public void setUp() {
-        try {
-            createHBaseCluster();
-            createAtlasClient();
-        } catch (Exception e) {
-            LOG.error("Unable to create Hbase Admin for Testing ", e);
-        }
+    public void setUp() throws Exception {
+        createHBaseCluster();
+        createAtlasClient();
     }
 
     @AfterClass
@@ -208,9 +204,15 @@ public class HBaseAtlasHookIT {
         
hBaseTestingUtility.getConfiguration().set("hbase.regionserver.info.port", 
String.valueOf(getFreePort()));
         hBaseTestingUtility.getConfiguration().set("zookeeper.znode.parent", 
"/hbase-unsecure");
         
hBaseTestingUtility.getConfiguration().set("hbase.table.sanity.checks", 
"false");
-        
hBaseTestingUtility.getConfiguration().set("hbase.coprocessor.master.classes", 
"org.apache.atlas.hbase.hook.HBaseAtlasCoprocessor");
+        // Bind master/RS to loopback so mini-cluster RPC works on macOS 
(avoids LAN IP timeouts).
+        hBaseTestingUtility.getConfiguration().set("hbase.master.hostname", 
"127.0.0.1");
+        
hBaseTestingUtility.getConfiguration().set("hbase.regionserver.hostname", 
"127.0.0.1");
 
         hBaseTestingUtility.startMiniCluster();
+
+        if 
(!hBaseTestingUtility.getHBaseCluster().waitForActiveAndReadyMaster(60000)) {
+            throw new IllegalStateException("HBase mini cluster master not 
ready");
+        }
     }
 
     public AtlasClientV2 getAtlasClient() {
diff --git a/addons/hbase-testing-util/pom.xml 
b/addons/hbase-testing-util/pom.xml
index d1b10a4e0f..1f461f9876 100644
--- a/addons/hbase-testing-util/pom.xml
+++ b/addons/hbase-testing-util/pom.xml
@@ -36,10 +36,60 @@
         <apache.log4j.version>2.17.1</apache.log4j.version>
         <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
         <checkstyle.skip>false</checkstyle.skip>
+        <hadoop.jetty.version>9.3.19.v20170502</hadoop.jetty.version>
         <hadoop.version>3.0.3</hadoop.version>
-        <jetty.version>9.3.14.v20161028</jetty.version>
     </properties>
 
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-http</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-io</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-security</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-server</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-servlet</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-util</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-util-ajax</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-webapp</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jetty</groupId>
+                <artifactId>jetty-xml</artifactId>
+                <version>${hadoop.jetty.version}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>junit</groupId>
diff --git 
a/addons/hbase-testing-util/src/test/java/org/apache/atlas/hbase/TestHBaseTestingUtilSpinup.java
 
b/addons/hbase-testing-util/src/test/java/org/apache/atlas/hbase/TestHBaseTestingUtilSpinup.java
index 4c62eba8e4..a7bb112baf 100644
--- 
a/addons/hbase-testing-util/src/test/java/org/apache/atlas/hbase/TestHBaseTestingUtilSpinup.java
+++ 
b/addons/hbase-testing-util/src/test/java/org/apache/atlas/hbase/TestHBaseTestingUtilSpinup.java
@@ -41,6 +41,8 @@ public class TestHBaseTestingUtilSpinup {
         
hBaseTestingUtility.getConfiguration().set("hbase.regionserver.info.port", 
String.valueOf(getFreePort()));
         hBaseTestingUtility.getConfiguration().set("zookeeper.znode.parent", 
"/hbase-unsecure");
         
hBaseTestingUtility.getConfiguration().set("hbase.table.sanity.checks", 
"false");
+        hBaseTestingUtility.getConfiguration().set("hbase.master.hostname", 
"127.0.0.1");
+        
hBaseTestingUtility.getConfiguration().set("hbase.regionserver.hostname", 
"127.0.0.1");
     }
 
     @Test
diff --git a/addons/storm-bridge/pom.xml b/addons/storm-bridge/pom.xml
index f903655271..7d5cace84f 100644
--- a/addons/storm-bridge/pom.xml
+++ b/addons/storm-bridge/pom.xml
@@ -200,6 +200,13 @@
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <configuration>
+                    <forkCount>1</forkCount>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.eclipse.jetty</groupId>
                 <artifactId>jetty-maven-plugin</artifactId>
@@ -299,6 +306,9 @@
                             <goal>stop</goal>
                         </goals>
                         <phase>post-integration-test</phase>
+                        <configuration>
+                            <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
+                        </configuration>
                     </execution>
                 </executions>
             </plugin>
diff --git 
a/addons/storm-bridge/src/test/java/org/apache/atlas/storm/hook/StormTestUtil.java
 
b/addons/storm-bridge/src/test/java/org/apache/atlas/storm/hook/StormTestUtil.java
index eb01710842..972a2cd22f 100644
--- 
a/addons/storm-bridge/src/test/java/org/apache/atlas/storm/hook/StormTestUtil.java
+++ 
b/addons/storm-bridge/src/test/java/org/apache/atlas/storm/hook/StormTestUtil.java
@@ -19,8 +19,10 @@
 package org.apache.atlas.storm.hook;
 
 import org.apache.storm.Config;
+import org.apache.storm.DaemonConfig;
 import org.apache.storm.ILocalCluster;
 import org.apache.storm.Testing;
+import org.apache.storm.metricstore.NoOpMetricStore;
 import org.apache.storm.generated.StormTopology;
 import org.apache.storm.testing.TestGlobalCount;
 import org.apache.storm.testing.TestWordCounter;
@@ -38,9 +40,13 @@ final class StormTestUtil {
     }
 
     public static ILocalCluster createLocalStormCluster() {
-        // start a local storm cluster
+        HashMap<String, Object> daemonConf = new HashMap<>();
+        // Avoid RocksDB JNI (x86_64-only in storm-core) on Apple Silicon 
during local Nimbus startup.
+        daemonConf.put(DaemonConfig.STORM_METRIC_STORE_CLASS, 
NoOpMetricStore.class.getName());
+
         HashMap<String, Object> localClusterConf = new HashMap<>();
-        localClusterConf.put("nimbus-daemon", true);
+        localClusterConf.put("daemon-conf", daemonConf);
+        // Leave nimbus-daemon at default (false) so NimbusClient uses 
in-process nimbus; needed for hook + local ITs.
         return Testing.getLocalCluster(localClusterConf);
     }
 
diff --git a/addons/trino-extractor/pom.xml b/addons/trino-extractor/pom.xml
index 20ac433e8e..b6d4c65772 100644
--- a/addons/trino-extractor/pom.xml
+++ b/addons/trino-extractor/pom.xml
@@ -35,6 +35,8 @@
     <properties>
         <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
         <checkstyle.skip>false</checkstyle.skip>
+        <!-- TrinoExtractorIT is a placeholder only (no @Test methods); skip 
until ITs are implemented -->
+        <skipITs>true</skipITs>
     </properties>
 
     <dependencies>
diff --git a/pom.xml b/pom.xml
index eff9b56bac..9f646bc7a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -146,7 +146,7 @@
         <jersey-spring.version>1.19.4</jersey-spring.version>
         <jersey.version>1.19</jersey.version>
         <jettison.version>1.5.4</jettison.version>
-        <jetty-maven-plugin.stopWait>10</jetty-maven-plugin.stopWait>
+        <jetty-maven-plugin.stopWait>120</jetty-maven-plugin.stopWait>
         <jetty.version>9.4.56.v20240826</jetty.version>
         <joda-time.version>2.10.6</joda-time.version>
         <json-simple.version>1.1.1</json-simple.version>
@@ -1366,6 +1366,13 @@
                     <forkCount>0</forkCount>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
                 </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.maven.surefire</groupId>
+                        <artifactId>surefire-testng</artifactId>
+                        <version>${failsafe.version}</version>
+                    </dependency>
+                </dependencies>
                 <executions>
                     <execution>
                         <id>integration-test</id>

Reply via email to