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

Fix exception with Instant type when performing continuous rollup #373

Merged

Conversation

qreshi
Copy link
Contributor

@qreshi qreshi commented Jan 7, 2021

Issue #, if available: #364

Description of changes:
Passing in Instant to the RangeQueryBuilder when creating search requests for continuous rollups leads to can not write type [class java.time.Instant] exceptions. Converting Instant to epoch millis as Long to fix this issue.

The problem was reproduced locally and confirmed that this change fixed continuous rollups and the target index contents were validated against the source index for consistency.

Some tests specifically validating continuous rollup output or search consistency should be added. If they aren't addressed here, they will be tracked as a follow-up item.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@qreshi qreshi requested review from dbbaughe and thalurur January 7, 2021 00:58
@qreshi qreshi added the bug Something isn't working label Jan 7, 2021
@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #373 (107c7b6) into master (e1af452) will decrease coverage by 0.25%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #373      +/-   ##
============================================
- Coverage     76.28%   76.03%   -0.26%     
  Complexity     1384     1384              
============================================
  Files           183      183              
  Lines          7022     7022              
  Branches       1143     1143              
============================================
- Hits           5357     5339      -18     
- Misses         1035     1056      +21     
+ Partials        630      627       -3     
Impacted Files Coverage Δ Complexity Δ
...csearch/indexmanagement/rollup/util/RollupUtils.kt 77.91% <0.00%> (ø) 0.00 <0.00> (ø)
...statemanagement/model/destination/CustomWebhook.kt 65.21% <0.00%> (-28.99%) 12.00% <0.00%> (-2.00%)
...ent/rollup/action/explain/ExplainRollupResponse.kt 70.00% <0.00%> (-10.00%) 5.00% <0.00%> (-1.00%)
...xmanagement/rollup/actionfilter/FieldCapsFilter.kt 75.73% <0.00%> (+0.73%) 28.00% <0.00%> (+1.00%)
...nt/indexstatemanagement/model/destination/Slack.kt 54.54% <0.00%> (+13.63%) 4.00% <0.00%> (+2.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1af452...625646c. Read the comment docs.

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