|
18 | 18 | package org.apache.shardingsphere.mode.manager.cluster.persist.service;
|
19 | 19 |
|
20 | 20 | import lombok.SneakyThrows;
|
21 |
| -import lombok.extern.slf4j.Slf4j; |
22 | 21 | import org.apache.shardingsphere.infra.config.rule.RuleConfiguration;
|
23 | 22 | import org.apache.shardingsphere.infra.database.core.type.DatabaseTypeRegistry;
|
24 | 23 | import org.apache.shardingsphere.infra.datasource.pool.props.domain.DataSourcePoolProperties;
|
|
58 | 57 | /**
|
59 | 58 | * Cluster meta data manager persist service.
|
60 | 59 | */
|
61 |
| -@Slf4j |
62 | 60 | public final class ClusterMetaDataManagerPersistService implements MetaDataManagerPersistService {
|
63 | 61 |
|
64 | 62 | private final MetaDataContextManager metaDataContextManager;
|
@@ -192,8 +190,7 @@ private void afterStorageUnitsDropped(final String databaseName, final MetaDataC
|
192 | 190 | tables.forEach(each -> metaDataPersistFacade.getDatabaseMetaDataFacade().getTable().drop(databaseName, entry.getKey(), each.getName()));
|
193 | 191 | }
|
194 | 192 | } catch (final SQLException ex) {
|
195 |
| - log.error("Reload table meta failed, databaseName:{}", databaseName, ex); |
196 |
| - throw new LoadTableMetaDataFailedException(); |
| 193 | + throw new LoadTableMetaDataFailedException(databaseName, ex); |
197 | 194 | }
|
198 | 195 | Optional.ofNullable(reloadMetaDataContexts.getStatistics().getDatabaseStatistics(databaseName))
|
199 | 196 | .ifPresent(optional -> optional.getSchemaStatisticsMap().forEach((schemaName, schemaStatistics) -> metaDataPersistFacade.getStatisticsService()
|
@@ -241,8 +238,7 @@ private void reloadAlteredTables(final String databaseName, final MetaDataContex
|
241 | 238 | metaDataPersistFacade.getDatabaseMetaDataFacade().getTable().persist(databaseName, entry.getKey(), tables);
|
242 | 239 | }
|
243 | 240 | } catch (final SQLException ex) {
|
244 |
| - log.error("Reload table meta failed, databaseName:{}, needReloadTables:{}", databaseName, needReloadTables, ex); |
245 |
| - throw new LoadTableMetaDataFailedException(); |
| 241 | + throw new LoadTableMetaDataFailedException(databaseName, needReloadTables, ex); |
246 | 242 | }
|
247 | 243 | }
|
248 | 244 |
|
|
0 commit comments