You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by AsterixDB Code Review <do...@asterix-gerrit.ics.uci.edu> on 2026/09/12 17:13:39 UTC

[S] Change in asterixdb[master]: [NO ISSUE][MISC] Keep the forked GCS package in step with iceberg

From Michael Blow <mb...@apache.org>:

Michael Blow has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21766?usp=email )


Change subject: [NO ISSUE][MISC] Keep the forked GCS package in step with iceberg
......................................................................

[NO ISSUE][MISC] Keep the forked GCS package in step with iceberg

The org.apache.iceberg.gcp.gcs package is forked into
asterix-external-data under util/google/iceberg/fileio, but nothing tied
those files to the iceberg release they were copied from, and the copy
had drifted a full minor behind the resolved dependency before that was
noticed.

Record the release the fork was taken from in iceberg-gcs-fork.version,
and have asterix-external-data enforce that it equals
icebergjavasdk.version. Advancing iceberg now fails at validate until
the package is re-copied, and the failure names both versions and what
to do about them.

The new property also carries a @pinned-with marker, so a dependency
scan that stages an iceberg upgrade reports the fork as needing review
instead of leaving it behind silently. That marker is a one-line comment
adjacent to the property because only the line immediately above it is
examined.

Ext-ref: MB-73557
Co-Authored-By: Claude Opus 5 <no...@anthropic.com>
Change-Id: I61bc0864c8bb405ca1fbda3b5e3f55a9bdb65911
---
M asterixdb/asterix-external-data/pom.xml
M asterixdb/pom.xml
2 files changed, 37 insertions(+), 0 deletions(-)



  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/66/21766/1

diff --git a/asterixdb/asterix-external-data/pom.xml b/asterixdb/asterix-external-data/pom.xml
index 49a0bf4..d993a96 100644
--- a/asterixdb/asterix-external-data/pom.xml
+++ b/asterixdb/asterix-external-data/pom.xml
@@ -40,6 +40,32 @@
   <build>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>ensure-forked-gcs-package-matches-iceberg</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <evaluateBeanshell>
+                  <condition>"${icebergjavasdk.version}".equals("${iceberg-gcs-fork.version}")</condition>
+                  <message>#### The org.apache.iceberg.gcp.gcs package forked under
+                    src/main/java/org/apache/asterix/external/util/google/iceberg/fileio was copied
+                    from iceberg ${iceberg-gcs-fork.version}, but this build resolves iceberg
+                    ${icebergjavasdk.version}. Re-copy the package from the iceberg-gcp sources jar
+                    at ${icebergjavasdk.version}, re-apply the local differences each file documents
+                    in its javadoc, then set iceberg-gcs-fork.version to match.</message>
+                </evaluateBeanshell>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.apache.asterix</groupId>
         <artifactId>lexer-generator-maven-plugin</artifactId>
         <version>${lexer-generator-maven-plugin.version}</version>
diff --git a/asterixdb/pom.xml b/asterixdb/pom.xml
index 0ebf6e7..ff26aea 100644
--- a/asterixdb/pom.xml
+++ b/asterixdb/pom.xml
@@ -124,6 +124,17 @@
 
     <icebergjavasdk.version>1.11.0</icebergjavasdk.version>
 
+    <!-- The org.apache.iceberg.gcp.gcs package is forked into asterix-external-data,
+         under util/google/iceberg/fileio. This records the release those files were
+         copied from, and asterix-external-data enforces that the two agree, so an
+         iceberg upgrade cannot silently leave the copy behind. To advance: re-copy the
+         package from the iceberg-gcp sources jar at the new version, re-apply the local
+         differences each file documents in its javadoc, then move this.
+         The marker below is a one-line comment adjacent to the property on purpose:
+         the updater looks only one line back for it. -->
+    <!-- @pinned-with: ${icebergjavasdk.version} -->
+    <iceberg-gcs-fork.version>1.11.0</iceberg-gcs-fork.version>
+
     <!-- @derived-from: org.apache.iceberg:iceberg-nessie:${icebergjavasdk.version}#dep:nessie-client -->
     <nessieproject.version>0.107.5</nessieproject.version>
 

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21766?usp=email
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: I61bc0864c8bb405ca1fbda3b5e3f55a9bdb65911
Gerrit-Change-Number: 21766
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Blow <mb...@apache.org>