Skip to content

Commit

Permalink
fix check style
Browse files Browse the repository at this point in the history
Signed-off-by: duanyyyyyyy <[email protected]>
  • Loading branch information
duanyyyyyyy committed Jan 2, 2025
1 parent cc671e9 commit 175572b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class HiveConnectorInternalMgr {
private final CachingRemoteFileConf remoteFileConf;

private ExecutorService refreshHiveMetastoreExecutor;
private ExecutorService refreshExternalTableExecutor;
private ExecutorService refreshHiveExternalTableExecutor;
private ExecutorService refreshRemoteFileExecutor;
private ExecutorService pullRemoteFileExecutor;
private ExecutorService updateRemoteFilesExecutor;
Expand Down Expand Up @@ -101,8 +101,8 @@ public void shutdown() {
if (enableMetastoreCache && refreshHiveMetastoreExecutor != null) {
refreshHiveMetastoreExecutor.shutdown();
}
if (enableMetastoreCache && refreshExternalTableExecutor != null) {
refreshExternalTableExecutor.shutdown();
if (enableMetastoreCache && refreshHiveExternalTableExecutor != null) {
refreshHiveExternalTableExecutor.shutdown();
}
if (enableRemoteFileCache && refreshRemoteFileExecutor != null) {
refreshRemoteFileExecutor.shutdown();
Expand All @@ -122,12 +122,12 @@ public IHiveMetastore createHiveMetastore() {
} else {
refreshHiveMetastoreExecutor = Executors.newCachedThreadPool(
new ThreadFactoryBuilder().setNameFormat("hive-metastore-refresh-%d").build());
refreshExternalTableExecutor = Executors.newCachedThreadPool(
refreshHiveExternalTableExecutor = Executors.newCachedThreadPool(
new ThreadFactoryBuilder().setNameFormat("hive-external-table-refresh-%d").build());
baseHiveMetastore = CachingHiveMetastore.createCatalogLevelInstance(
hiveMetastore,
new ReentrantExecutor(refreshHiveMetastoreExecutor, hmsConf.getCacheRefreshThreadMaxNum()),
new ReentrantExecutor(refreshExternalTableExecutor, hmsConf.getCacheRefreshThreadMaxNum()),
new ReentrantExecutor(refreshHiveExternalTableExecutor, hmsConf.getCacheRefreshThreadMaxNum()),
hmsConf.getCacheTtlSec(),
enableHmsEventsIncrementalSync ? NEVER_REFRESH : hmsConf.getCacheRefreshIntervalSec(),
hmsConf.getCacheMaxNum(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class HudiConnectorInternalMgr {
private CachingRemoteFileConf remoteFileConf;

private ExecutorService refreshHiveMetastoreExecutor;
private ExecutorService refreshExternalTableExecutor;
private ExecutorService refreshHudiExternalTableExecutor;
private ExecutorService refreshRemoteFileExecutor;
private ExecutorService pullRemoteFileExecutor;

Expand Down Expand Up @@ -95,8 +95,8 @@ public void shutdown() {
if (enableMetastoreCache && refreshHiveMetastoreExecutor != null) {
refreshHiveMetastoreExecutor.shutdown();
}
if (enableMetastoreCache && refreshExternalTableExecutor != null) {
refreshExternalTableExecutor.shutdown();
if (enableMetastoreCache && refreshHudiExternalTableExecutor != null) {
refreshHudiExternalTableExecutor.shutdown();
}
if (enableRemoteFileCache && refreshRemoteFileExecutor != null) {
refreshRemoteFileExecutor.shutdown();
Expand All @@ -116,12 +116,12 @@ public IHiveMetastore createHiveMetastore() {
} else {
refreshHiveMetastoreExecutor = Executors.newCachedThreadPool(
new ThreadFactoryBuilder().setNameFormat("hive-metastore-refresh-%d").build());
refreshExternalTableExecutor = Executors.newCachedThreadPool(
new ThreadFactoryBuilder().setNameFormat("hive-external-table-refresh-%d").build());
refreshHudiExternalTableExecutor = Executors.newCachedThreadPool(
new ThreadFactoryBuilder().setNameFormat("hudi-external-table-refresh-%d").build());
baseHiveMetastore = CachingHiveMetastore.createCatalogLevelInstance(
hiveMetastore,
new ReentrantExecutor(refreshHiveMetastoreExecutor, hmsConf.getCacheRefreshThreadMaxNum()),
new ReentrantExecutor(refreshExternalTableExecutor, hmsConf.getCacheRefreshThreadMaxNum()),
new ReentrantExecutor(refreshHudiExternalTableExecutor, hmsConf.getCacheRefreshThreadMaxNum()),
hmsConf.getCacheTtlSec(),
hmsConf.getCacheRefreshIntervalSec(),
hmsConf.getCacheMaxNum(),
Expand Down

0 comments on commit 175572b

Please sign in to comment.