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


##########
fe/fe-connector/fe-connector-metastore-hms/src/main/java/org/apache/doris/connector/metastore/hms/DefaultHmsMetaStoreProperties.java:
##########
@@ -42,6 +48,19 @@ public static DefaultHmsMetaStoreProperties of(Map<String, 
String> raw, Map<Stri
 
     @Override
     public void validate() {
-        validateConnection();
+        if (dlf != null) {
+            dlf.validate();
+        } else {
+            validateConnection();
+        }
+    }
+
+    @Override
+    public Map<String, String> toHiveConfOverrides(String 
defaultClientSocketTimeoutSeconds) {
+        Map<String, String> conf = 
super.toHiveConfOverrides(defaultClientSocketTimeoutSeconds);
+        if (dlf != null) {
+            conf.putAll(dlf.toDlfCatalogConf());

Review Comment:
   Fixed in 963cd6be4e. The DLF merge now forwards only DLF-owned keys over the 
canonical HMS map, preserving the metadata username and avoiding reintroduction 
of an explicitly blank storage username. Added distinct HMS/storage-user tests 
for the shared holder and both Hive/Hudi authenticators. The baseline failed 
those assertions; the candidate passes them.



##########
fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/IcebergSiblingProperties.java:
##########
@@ -54,13 +56,14 @@ private IcebergSiblingProperties() {
 
     /**
      * Returns a NEW property map = the gateway catalog's properties verbatim 
with the iceberg catalog flavor
-     * forced to {@code hms}. The input is never mutated (the gateway holds it 
unmodifiable and shared). An
-     * existing {@code iceberg.catalog.type} is overridden unconditionally — 
an iceberg-on-HMS sibling is always
-     * the hms flavor.
+     * chosen from the gateway's metadata backend. The input is never mutated; 
an existing
+     * {@code iceberg.catalog.type} cannot redirect a sibling to another 
metadata service.
      */
     static Map<String, String> synthesize(Map<String, String> 
gatewayCatalogProperties) {
         Map<String, String> siblingProperties = new 
HashMap<>(gatewayCatalogProperties);
-        siblingProperties.put(ICEBERG_CATALOG_TYPE_KEY, 
ICEBERG_CATALOG_TYPE_HMS);
+        // The sibling must use the same metadata service rather than dialing 
an absent Thrift URI.
+        siblingProperties.put(ICEBERG_CATALOG_TYPE_KEY,
+                HmsClientConfig.isDlfMetastore(gatewayCatalogProperties) ? 
"dlf" : ICEBERG_CATALOG_TYPE_HMS);

Review Comment:
   Fixed in 963cd6be4e. All five proxy modes retain the HMS URI, 
authentication, timeout and Hive XML resources in the downstream Iceberg DLF 
catalog. Lazy pool acquisition and metadata RPCs use the HMS identity while 
FileIO keeps storage authentication. Added downstream catalog tests for all 
five modes plus pool identity, RPC exception and interruption tests; DLF_ONLY 
remains a control. Rebased onto current master, resolved the SPI version 
conflict with API 39 while preserving upstream API 38 additions. Local 
verification: 265 classes / 3572 tests, zero final failures/errors (11 existing 
disabled tests), FE build/Checkstyle and both DLF SQL suites. Live KDC/cloud 
reads remain unverified.



-- 
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