Fix NoneStream model has wrong downsampling (#9088)

This commit is contained in:
吴晟 Wu Sheng 2022-05-18 07:50:56 +08:00 committed by GitHub
parent 68e48811b4
commit e02f7efd0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@
* Remove `Layer` concept form `Process`.
* Update to list all eBPF profiling schedulers without duration.
* Storage(ElasticSearch): add search options to tolerate inexisting indices.
* Fix the problem that `MQ` has the wrong `Layer` type
* Fix the problem that `MQ` has the wrong `Layer` type.
* Fix NoneStream model has wrong downsampling(was Second, should be Minute).
#### UI

View File

@ -78,7 +78,7 @@ public class NoneStreamProcessor implements StreamProcessor<NoneStream> {
ModelCreator modelSetter = moduleDefineHolder.find(CoreModule.NAME).provider().getService(ModelCreator.class);
// None stream doesn't read data from database during the persistent process. Keep the timeRelativeID == false always.
Model model = modelSetter.add(streamClass, stream.scopeId(), new Storage(stream.name(), false, DownSampling.Second), true);
Model model = modelSetter.add(streamClass, stream.scopeId(), new Storage(stream.name(), false, DownSampling.Minute), true);
final NoneStreamPersistentWorker persistentWorker = new NoneStreamPersistentWorker(moduleDefineHolder, model, noneStream);
workers.put(streamClass, persistentWorker);