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


##########
regression-test/suites/external_table_p0/kerberos/test_iceberg_hms_manifest_kerberos.groovy:
##########
@@ -0,0 +1,246 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite("test_iceberg_hms_manifest_kerberos", 
"p0,external,kerberos,external_docker,external_docker_kerberos") {
+    if 
(!"true".equalsIgnoreCase(context.config.otherConfigs.get("enableKerberosTest")))
 {
+        return
+    }
+    String externalEnvIp = context.config.otherConfigs.get("externalEnvIp")
+    String suffix = UUID.randomUUID().toString().replace("-", "").substring(0, 
12)
+    String database = "manifest_auth_${suffix}"
+    def fixtures = [
+        [catalog: "iceberg_manifest_a_${suffix}", realm: "LABS.TERADATA.COM", 
host: "hadoop-master",
+         hmsPort: 9583, hdfsPort: 8520, keytab: "hive-presto-master.keytab"],
+        [catalog: "iceberg_manifest_b_${suffix}", realm: "OTHERREALM.COM", 
host: "hadoop-master-2",
+         hmsPort: 9683, hdfsPort: 8620, keytab: 
"other-hive-presto-master.keytab"]
+    ]
+    String rules = 'RULE:[2:$1@$0](.*@LABS.TERADATA.COM)s/@.*//\n' +
+            'RULE:[2:$1@$0](.*@OTHERREALM.COM)s/@.*//\nDEFAULT'
+    // The regression runner also needs the fixture credentials to verify HDFS 
cleanup after SDK purge errors.
+    String clientKeytabDir = 
context.config.otherConfigs.get("kerberosClientKeytabDir") ?: "/keytabs"

Review Comment:
   Fixed in 330d9c371f76. The suite now selects an explicit client keytab 
directory first, otherwise the complete readable keytab pair beside the 
resolved krb5.conf, otherwise the legacy /keytabs directory. This supports the 
documented rootless layout while preserving older fixtures and authoritative 
explicit overrides. Eleven source-bound prefix/preflight controls cover 
rootless, legacy, relative config, invalid overrides and missing files before 
SQL mutation. The cleanup child/process code is unchanged and source-bound to 
its prior secured-HDFS runtime checks.



##########
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalMetaCache.java:
##########
@@ -1332,6 +1332,7 @@ private void dropManifestFileIoCaches(List<FileIO> 
fileIos) {
     private void dropManifestFileIoCache(FileIO fileIo) {
         try {
             ManifestFiles.dropCache(fileIo);
+            IcebergAuthenticatedFileIO.dropCache(fileIo);

Review Comment:
   Fixed in 330d9c371f76. Raw FileIO is now recorded at actual read 
loading/write acquisition, independently of evictable read entries, in a 
cache-instance weak identity tracker keyed by the captured metadata generation. 
Catalog refresh unions tracked and resident IO, drops raw and authenticated SDK 
cache keys outside bookkeeping locks, and keeps weak registrations for later 
refresh after a retained writer refills its cache. The registry has no strong 
backedge to either generation or IO. Five SDK-backed public-entry tests 
reproduce the prior failures and verify absent read entries, repeated refresh 
without reacquisition, catalog isolation, raw cache after eviction, 
retained/replacement generations, and HMS acquisition. The legacy adaptation 
additionally tests disabled table caching.



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