Skip to content

Features are not being ingested due to max age overflow - #1209

Merged
pyalex merged 1 commit into
feast-dev:masterfrom
pyalex:fix-max-age-overflow
Dec 2, 2020
Merged

Features are not being ingested due to max age overflow#1209
pyalex merged 1 commit into
feast-dev:masterfrom
pyalex:fix-max-age-overflow

Conversation

@pyalex

@pyalex pyalex commented Dec 2, 2020

Copy link
Copy Markdown
Collaborator

Signed-off-by: Oleksii Moskalenko moskalenko.alexey@gmail.com

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

With big values of max age (like 1 month) stored as Integer (2628000) converting to milliseconds that happens during writing to redis fails with overflow 2628000 * 1000 = -1666967296. Thus all rows are being stored with negative expiry time and being deleted right away.

This PR suggests use Long instead of Int for max age. Alternative would be to do maxAge.toLong before converting to milliseconds, but it's very easy to miss that part.

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pyalex

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop

woop commented Dec 2, 2020

Copy link
Copy Markdown
Member

@pyalex you can just type NONE into the release note box if you want release-note-none label to be added.

@pyalex

pyalex commented Dec 2, 2020

Copy link
Copy Markdown
Collaborator Author

@woop sure, I was not aware of this option

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

@pyalex: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
test-end-to-end-aws 5cf1fcd link /test test-end-to-end-aws

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@pyalex
pyalex merged commit ad67392 into feast-dev:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants