You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by "leborchuk (via GitHub)" <gi...@apache.org> on 2026/09/30 09:50:06 UTC

[PR] Cherry pick commits from main to REL_2_STABLE, Sep'26 [cloudberry]

leborchuk opened a new pull request, #2066:
URL: https://github.com/apache/cloudberry/pull/2066

   <!-- Thank you for your contribution to Apache Cloudberry (Incubating)! -->
   
   Fixes #ISSUE_Number
   
   ### What does this PR do?
   <!-- Brief overview of the changes, including any major features or fixes -->
   
   ### Type of Change
   - [ ] Bug fix (non-breaking change)
   - [ ] New feature (non-breaking change)
   - [ ] Breaking change (fix or feature with breaking changes)
   - [ ] Documentation update
   
   ### Breaking Changes
   <!-- Remove if not applicable. If yes, explain impact and migration path -->
   
   ### Test Plan
   <!-- How did you test these changes? -->
   - [ ] Unit tests added/updated
   - [ ] Integration tests added/updated
   - [ ] Passed `make installcheck`
   - [ ] Passed `make -C src/test installcheck-cbdb-parallel`
   
   ### Impact
   <!-- Remove sections that don't apply -->
   **Performance:**
   <!-- Any performance implications? -->
   
   **User-facing changes:**
   <!-- Any changes visible to users? -->
   
   **Dependencies:**
   <!-- New dependencies or version changes? -->
   
   ### Checklist
   - [ ] Followed [contribution guide](https://cloudberry.apache.org/contribute/code)
   - [ ] Added/updated documentation
   - [ ] Reviewed code for security implications
   - [ ] This PR contains AI-assisted code generation
   - [ ] Requested review from [cloudberry committers](https://github.com/orgs/apache/teams/cloudberry-committers)
   
   ### Additional Context
   <!-- Any other information that would help reviewers? Remove if none -->
   
   ### CI Skip Instructions
   <!--
   To skip CI builds, add the appropriate CI skip identifier to your PR title.
   The identifier must:
   - Be in square brackets []
   - Include the word "ci" and either "skip" or "no"
   - Only use for documentation-only changes or when absolutely necessary
   -->
   
   ---
   <!-- Join our community:
   - Mailing list: [dev@cloudberry.apache.org](https://lists.apache.org/list.html?dev@cloudberry.apache.org) (subscribe: dev-subscribe@cloudberry.apache.org)
   - Discussions: https://github.com/apache/cloudberry/discussions -->
   


-- 
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: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org


Re: [PR] Cherry pick commits from main to REL_2_STABLE, Sep'26 [cloudberry]

Posted by "leborchuk (via GitHub)" <gi...@apache.org>.
leborchuk commented on PR #2066:
URL: https://github.com/apache/cloudberry/pull/2066#issuecomment-5915456709

   
   
   
   > @leborchuk A few more commits from main that look worth including here. All four cherry-pick cleanly onto the current head of this branch, and the code they fix is the same on REL_2_STABLE:
   > 
   > * [81feec7](https://github.com/apache/cloudberry/commit/81feec76f0df9d2fb837f6130d77f62a7c9592e3) — Fix putIntoUnackQueueRing function logic for Intercontect interfaces:loss advance method ([Fix putIntoUnackQueueRing function logic for Intercontect interfaces:loss advance method #1986](https://github.com/apache/cloudberry/pull/1986))
   >   [81feec76f0d](https://github.com/apache/cloudberry/commit/81feec76f0d)
   >   Bug fix in the UDP interconnect's retransmit timer ring, in both `ic_udpifc.c` and udp2.
   > * [cc4ff98](https://github.com/apache/cloudberry/commit/cc4ff9890e68098caf5812b5c492f4cdc694a53e) — interconnect: restart in fast mode so the test does not race crash recovery
   >   [cc4ff9890e6](https://github.com/apache/cloudberry/commit/cc4ff9890e6)
   >   Test fix: `gpstop -raiq` can leave the cluster without segments and break the suites that follow.
   > * [238feec](https://github.com/apache/cloudberry/commit/238feec82c8127174ac00fdcbb5c6bae7ee58c26) — Fix PAX protobuf array bounds warnings ([Fix PAX protobuf array bounds warnings #1982](https://github.com/apache/cloudberry/pull/1982))
   >   [238feec82c8](https://github.com/apache/cloudberry/commit/238feec82c8)
   >   Silences false GCC 14 warnings from the protobuf 3.19 headers only; matters for Rocky 10 builds.
   > * [b3f0cea](https://github.com/apache/cloudberry/commit/b3f0cea7c06599901de668ff84dfa06eab153888) — Remove duplicated declaration of gp_create_table_random_default_distribution
   >   [b3f0cea7c06](https://github.com/apache/cloudberry/commit/b3f0cea7c06)
   >   Companion to [01c6e69](https://github.com/apache/cloudberry/commit/01c6e69d807c62fda97779378b014f2f7906a695), which is already on REL_2_STABLE as [621702d](https://github.com/apache/cloudberry/commit/621702d4a40703236a333f079131e6ce617032c2); the duplicate declaration exists there too.
   
   You are right, I missed them since focused mainly on license and bugfixes. But they are worth cherry-picking, it's not a new functionality


-- 
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: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org


Re: [PR] Cherry pick commits from main to REL_2_STABLE, Sep'26 [cloudberry]

Posted by "tuhaihe (via GitHub)" <gi...@apache.org>.
tuhaihe commented on PR #2066:
URL: https://github.com/apache/cloudberry/pull/2066#issuecomment-5914469578

   @leborchuk A few more commits from main that look worth including here. All
   four cherry-pick cleanly onto the current head of this branch, and the code
   they fix is the same on REL_2_STABLE:
   
   - 81feec76f0d — Fix putIntoUnackQueueRing function logic for Intercontect interfaces:loss advance method (#1986)
     https://github.com/apache/cloudberry/commit/81feec76f0d
     Bug fix in the UDP interconnect's retransmit timer ring, in both `ic_udpifc.c` and udp2.
   - cc4ff9890e6 — interconnect: restart in fast mode so the test does not race crash recovery
     https://github.com/apache/cloudberry/commit/cc4ff9890e6
     Test fix: `gpstop -raiq` can leave the cluster without segments and break the suites that follow.
   - 238feec82c8 — Fix PAX protobuf array bounds warnings (#1982)
     https://github.com/apache/cloudberry/commit/238feec82c8
     Silences false GCC 14 warnings from the protobuf 3.19 headers only; matters for Rocky 10 builds.
   - b3f0cea7c06 — Remove duplicated declaration of gp_create_table_random_default_distribution
     https://github.com/apache/cloudberry/commit/b3f0cea7c06
     Companion to 01c6e69d807, which is already on REL_2_STABLE as 621702d4a40; the duplicate declaration exists there too.


-- 
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: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org


Re: [PR] Cherry pick commits from main to REL_2_STABLE, Sep'26 [cloudberry]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #2066:
URL: https://github.com/apache/cloudberry/pull/2066#discussion_r4143362930


##########
contrib/pax_storage/CMakeLists.txt:
##########
@@ -118,13 +118,30 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/")
 include(FindDependencies)
 add_subdirectory(src/cpp)
 
+# yyjson is only needed by the manifest API implementation, which is off by
+# default.  It is fetched from its upstream release at configure time rather
+# than vendored as a submodule, so that it stays out of the source release
+# for builds that do not use it.
+set(YYJSON_VERSION "0.12.0" CACHE STRING "yyjson release to fetch for the manifest API")
+
 if(USE_MANIFEST_API AND NOT USE_PAX_CATALOG)
+    include(FetchContent)
+
+    message(STATUS "Fetching yyjson ${YYJSON_VERSION} for the manifest API")
+    FetchContent_Declare(
+        yyjson
+        GIT_REPOSITORY https://github.com/ibireme/yyjson.git
+        GIT_TAG ${YYJSON_VERSION}
+        GIT_SHALLOW TRUE
+    )
+
     set(SAVED_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
     set(SAVED_CMAKE_INSTALL_SO_NO_EXE ${CMAKE_INSTALL_SO_NO_EXE})
 
     set(BUILD_SHARED_LIBS ON)
     set(CMAKE_INSTALL_SO_NO_EXE OFF)
-    add_subdirectory(${CMAKE_SOURCE_DIR}/../../dependency/yyjson ${CMAKE_BINARY_DIR}/yyjson_build)
+
+    FetchContent_MakeAvailable(yyjson)

Review Comment:
   The project still advertises CMake 3.11 (`CMakeLists.txt:17` and `src/cpp/CMakeLists.txt:18`), but `FetchContent_MakeAvailable()` was added in 3.14. Configuring with CMake 3.11–3.13 and `USE_MANIFEST_API=ON`, `USE_PAX_CATALOG=OFF` fails because that command is unavailable. Use the older `FetchContent_Populate`/`add_subdirectory` pattern for those versions, or raise and document the minimum version for this configuration.



##########
src/backend/utils/adt/genfile.c:
##########
@@ -680,6 +709,8 @@ pg_file_write_v1_1(PG_FUNCTION_ARGS)
 	bool		replace = PG_GETARG_BOOL(2);
 	int64		count = 0;
 
+	requireWriteServerFiles();

Review Comment:
   This now permits `pg_write_server_files` members to call the write functions, but their subsequent filename checks still call `convert_and_check_filename()`, which bypasses the DataDir/log-directory restriction only for `pg_read_server_files`. A writer without the read role cannot write, rename, or unlink a writable absolute path elsewhere on the server, contrary to the documented write-role capability (`doc/src/sgml/user-manag.sgml:628-630`). Make the filename checks in all three write paths recognize the write role without changing read-only APIs, and test an outside-DataDir path.



-- 
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: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org


Re: [PR] Cherry pick commits from main to REL_2_STABLE, Sep'26 [cloudberry]

Posted by "tuhaihe (via GitHub)" <gi...@apache.org>.
tuhaihe commented on PR #2066:
URL: https://github.com/apache/cloudberry/pull/2066#issuecomment-5913969939

   @leborchuk I pushed four commits on top of your branch to keep REL_2_STABLE's
   source release passing Apache RAT once this PR is merged:
   
   1. **RAT: exclude the docs of the pax_storage submodules** (from #2058) —
      `caa1710ff65` replaced the blanket `**/*.md` exclude, which left 36 Markdown
      files in the googletest, googlebench and tabulate submodules uncovered.
   2. **RAT: exclude the SQL scripts and expected output of yezzey** (new,
      REL_2_STABLE only) — the same commit replaced the blanket `**/*.sql` and
      `**/*.out` excludes with targeted ones written against main, which has no
      yezzey. That left 9 files of the yezzey submodule uncovered.
   3. **CI: check out submodules in the RAT workflow** (from #2058) — the release
      tarball includes submodules, but CI audited a checkout without them, which is
      why neither problem showed up in CI.
   4. **Doc: fix Greenplum wording in README** (from #2057, marked
      `Backpatch-through: REL_2_STABLE`).
   
   With these, RAT on a clean export of this branch with all submodules reports
   0 unapproved files (it was 45 before). Since some PRs to main are still not merged, so cherry-pick them here.


-- 
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: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org


Re: [PR] Cherry pick commits from main to REL_2_STABLE, Sep'26 [cloudberry]

Posted by "leborchuk (via GitHub)" <gi...@apache.org>.
leborchuk merged PR #2066:
URL: https://github.com/apache/cloudberry/pull/2066


-- 
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: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org