Gabriel39 commented on code in PR #69906:
URL: https://github.com/apache/doris/pull/69906#discussion_r4717955206


##########
thirdparty/vars.sh:
##########
@@ -235,10 +235,12 @@ ZSTD_SOURCE=zstd-1.5.7
 ZSTD_MD5SUM="780fc1896922b1bc52a4e90980cdda48"
 
 # brotli
-BROTLI_DOWNLOAD="https://github.com/google/brotli/archive/v1.0.9.tar.gz";
-BROTLI_NAME="brotli-1.0.9.tar.gz"
-BROTLI_SOURCE="brotli-1.0.9"
-BROTLI_MD5SUM="c2274f0c7af8470ad514637c35bcee7d"
+# Arrow builds and BE statically links this decoder, so a system library update
+# cannot replace the vulnerable code fixed in 1.0.10 (CVE-2026-111497).
+BROTLI_DOWNLOAD="https://github.com/google/brotli/archive/v1.0.10.tar.gz";

Review Comment:
   I checked the dependency publishing workflow in apache/doris-thirdparty. It 
polls the corresponding Doris branches every 30 minutes and rebuilds/publishes 
the prebuilt dependency archives when thirdparty/ changes: [master 
workflow](https://github.com/apache/doris-thirdparty/blob/main/.github/workflows/build.yml),
 [4.x 
workflow](https://github.com/apache/doris-thirdparty/blob/main/.github/workflows/build-4.x.yml).
   
   For builds consuming the refreshed dependency set, this stale-prefix 
scenario does not apply. I suggest handling dependency freshness through the 
shared artifact/image rollout rather than adding a Brotli-specific version 
check to every Doris build. The finding is still valid for an installation that 
keeps an old prefix: it needs the rebuilt Arrow/Brotli libraries and a relinked 
BE. Archive publication alone does not establish that every build environment 
has refreshed; the current [image publication 
guide](https://github.com/apache/doris-thirdparty/blob/main/README-docker-images.md)
 includes a manual push step. I have not verified the installed artifacts on 
all build workers, so this is a rollout requirement rather than a claim that 
all existing environments are already updated.



##########
thirdparty/download-thirdparty.sh:
##########
@@ -480,6 +480,12 @@ if [[ " ${TP_ARCHIVES[*]} " =~ " ARROW " ]]; then
             patch -p1 <"${TP_PATCH_DIR}/apache-arrow-24.0.0-lzo.patch"
             touch "${PATCHED_MARK}"
         fi
+        # Arrow also verifies the overridden Brotli archive against its own 
SHA256.
+        # A separate marker updates sources that already have the other Arrow 
patches.
+        if [[ ! -f "${PATCHED_MARK}_brotli_1_0_10" ]]; then
+            patch -p1 
<"${TP_PATCH_DIR}/apache-arrow-24.0.0-brotli-1.0.10.patch"

Review Comment:
   Confirmed the interruption window with an isolated reproduction: when the 
patch is already applied but its marker is absent, retrying the current command 
exits with status 1.
   
   The automated [third-party build 
workflow](https://github.com/apache/doris-thirdparty/blob/main/.github/workflows/build-target.yml)
 starts from a fresh Doris checkout and a bundle of source archives, so it does 
not carry this partially patched source directory between runs. Builds 
consuming the resulting prebuilt libraries do not run this patch either. I 
suggest treating this as a follow-up improvement for restarting an interrupted 
source build, rather than a blocker for this dependency upgrade.
   
   If addressed, the retry should recognize the expected version and SHA256 
already being present and restore the marker, while continuing to fail on an 
unexpected state or a real patch error.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to