Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

filter out empty value for entity features #306

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

ylwu-amzn
Copy link
Contributor

@ylwu-amzn ylwu-amzn commented Nov 4, 2020

Issue #, if available:

Description of changes:
HC detector stays on initialization for days. We can see a lot of “NoSuchElementException” exception which caused by Optional.EMPTY.get(). This caused by null feature aggregation result (the category field value is not null). So if some entities have null feature data, will throw NoSuchElementException exception and skip other normal entities.

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

@codecov
Copy link

codecov bot commented Nov 4, 2020

Codecov Report

Merging #306 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #306      +/-   ##
============================================
- Coverage     72.06%   72.06%   -0.01%     
- Complexity     1969     1970       +1     
============================================
  Files           199      199              
  Lines          9465     9468       +3     
  Branches        844      844              
============================================
+ Hits           6821     6823       +2     
  Misses         2233     2233              
- Partials        411      412       +1     
Flag Coverage Δ Complexity Δ
cli 79.27% <ø> (ø) 0.00 <ø> (ø)
plugin 71.47% <100.00%> (-0.01%) 1970.00 <3.00> (+1.00) ⬇️

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

Impacted Files Coverage Δ Complexity Δ
...oforelasticsearch/ad/feature/SearchFeatureDao.java 80.75% <100.00%> (+0.18%) 81.00 <3.00> (+2.00)
...asticsearch/ad/cluster/ADClusterEventListener.java 88.00% <0.00%> (-2.00%) 13.00% <0.00%> (-1.00%)

@ylwu-amzn ylwu-amzn added the bug Something isn't working label Nov 4, 2020
Copy link
Contributor

@zhanghg08 zhanghg08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the change.

@ylwu-amzn ylwu-amzn merged commit 75d564b into opendistro-for-elasticsearch:master Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants