hello-stephen commented on code in PR #71398: URL: https://github.com/apache/doris/pull/71398#discussion_r4793567777
########## 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: [P2] Default the runner's keytab directory to the directory containing the generated `krb5.conf`. The rootless fixture launcher writes both keytabs next to that file and tells host clients to export `KRB5_CONFIG`. Following those instructions resolves `clientConfig`, but `clientKeytabDir` still defaults to `/keytabs`, which the launcher never creates on the host. With Kerberos tests enabled, the preflight fails before any Iceberg SQL runs. Keep `kerberosClientKeytabDir` as an explicit override. [Rootless fixture setup](https://github.com/apache/doris/blob/21b09d934a82b5b0221410b04c16eea5006a5624/docker/thirdparties/README.md#L60-L63) ########## 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: [P3] Include write-side FileIO in catalog cache invalidation even when its read entries are gone. With SDK manifest caching enabled on a Hadoop catalog, an overwrite can populate the adapter's cache and the post-commit table refresh then evicts Doris's table and snapshot entries. `collectManifestFileIos` only walks those entries, so `REFRESH CATALOG` can miss the wrapper here. The next writer reuses the same catalog FileIO and its cached manifest bytes. Track the write bindings by catalog generation and test the catalog refresh path with no resident read entries. The current cache test calls this helper directly and skips FileIO discovery. -- 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]
