opendistro-for-elasticsearch / anomaly-detection

A machine learning plugin in Open Distro for real time anomaly detection on streaming data.
https://opendistro.github.io/for-elasticsearch-docs/docs/ad/
Apache License 2.0
78 stars 36 forks source link

Fix log messages and init progress for the profile API #374

Closed kaituo closed 3 years ago

kaituo commented 3 years ago

Issue #, if available:

Description of changes:

This PR fixes incorrect or unnecessary log messages. The PR also uses ASCII to convert the init progress to a string. Otherwise, we may get unexpected characters.

Testing done:

  1. gradle build

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov[bot] commented 3 years ago

Codecov Report

Merging #374 (f0aeb7d) into master (16631c8) will decrease coverage by 0.00%. The diff coverage is 53.19%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #374      +/-   ##
============================================
- Coverage     78.95%   78.94%   -0.01%     
  Complexity     2655     2655              
============================================
  Files           247      247              
  Lines         11719    11723       +4     
  Branches       1009     1009              
============================================
+ Hits           9253     9255       +2     
- Misses         1991     1993       +2     
  Partials        475      475              
Flag Coverage Δ Complexity Δ
plugin 78.92% <53.19%> (-0.02%) 0.00 <9.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...stroforelasticsearch/ad/AnomalyDetectorRunner.java 46.25% <0.00%> (ø) 7.00 <0.00> (ø)
...distroforelasticsearch/ad/EntityProfileRunner.java 78.16% <0.00%> (-1.12%) 31.00 <0.00> (ø)
...n/opendistroforelasticsearch/ad/MemoryTracker.java 77.33% <ø> (ø) 21.00 <0.00> (ø)
...est/handler/IndexAnomalyDetectorActionHandler.java 49.19% <0.00%> (ø) 32.00 <0.00> (ø)
...arch/ad/transport/ADResultBulkTransportAction.java 92.50% <0.00%> (ø) 13.00 <0.00> (ø)
...search/ad/transport/RCFPollingTransportAction.java 90.24% <0.00%> (ø) 6.00 <0.00> (ø)
...ad/transport/handler/MultiEntityResultHandler.java 23.25% <0.00%> (ø) 3.00 <0.00> (ø)
...pendistroforelasticsearch/ad/ml/CheckpointDao.java 83.76% <50.00%> (ø) 57.00 <0.00> (ø)
...rch/ad/transport/AnomalyResultTransportAction.java 80.78% <50.00%> (ø) 77.00 <0.00> (ø)
...rch/ad/transport/EntityProfileTransportAction.java 90.56% <50.00%> (ø) 8.00 <0.00> (ø)
... and 15 more