Fix not-time-series model blocking OAP boots in no-init mode. (#9966)

This commit is contained in:
Gao Hongtao 2022-11-16 17:23:22 +08:00 committed by GitHub
parent 8dfd18ec20
commit 4ae167b850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -111,6 +111,7 @@
* Remove `lengthEnvVariable` for `Column` as it never works as expected.
* Add `LongText` to support longer logs persistent as a text type in ElasticSearch, instead of a keyword, to avoid length limitation.
* Fix wrong system variable name `SW_CORE_ENABLE_ENDPOINT_NAME_GROUPING_BY_OPENAPI`. It was **opaenapi**.
* Fix not-time-series model blocking OAP boots in no-init mode.
#### UI

View File

@ -44,6 +44,9 @@ public class BanyanDBIndexInstaller extends ModelInstaller {
@Override
public boolean isExists(Model model) throws StorageException {
if (!model.isTimeSeries()) {
return true;
}
final ConfigService configService = moduleManager.find(CoreModule.NAME).provider().getService(ConfigService.class);
final MetadataRegistry.SchemaMetadata metadata = MetadataRegistry.INSTANCE.parseMetadata(model, config, configService);
try {
@ -87,7 +90,7 @@ public class BanyanDBIndexInstaller extends ModelInstaller {
log.info("install measure schema {}", model.getName());
((BanyanDBStorageClient) client).define(measure);
}
} else if (!model.isTimeSeries()) { // UITemplate
} else if (!model.isTimeSeries()) {
log.info("skip property index {}", model.getName());
}
} catch (IOException ex) {