Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serving integration test for updated feature type #1112

Merged

Conversation

terryyylim
Copy link
Member

Signed-off-by: Terence [email protected]

What this PR does / why we need it:
Following this PR, this PR adds an integration test that checks for NOT FOUND values in online retrieval when feature types are changed.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

coreClient, projectName, featureTableName, entities, features, 7200);

// Sleep is necessary to ensure caching (every 10s) of updated FeatureTable is done
try {
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it possible to manually trigger cache invalidation?
or at least configure it to every second for example?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately, we set the number of seconds here, I don't think it's possible to configure this setting.

Copy link
Collaborator

Choose a reason for hiding this comment

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

but it can be moved to Spring config, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

You mean make it configurable thru serving's application.yml?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yep

@feast-ci-bot feast-ci-bot added size/L and removed size/M labels Nov 2, 2020
@terryyylim terryyylim force-pushed the update-serving-integration-test branch from adf8fde to 6f9cbd6 Compare November 2, 2020 06:21
@terryyylim terryyylim force-pushed the update-serving-integration-test branch from 6f9cbd6 to a653fea Compare November 2, 2020 06:23

@Autowired
public SpecServiceConfig(FeastProperties feastProperties) {
feastCoreHost = feastProperties.getCoreHost();
feastCorePort = feastProperties.getCoreGrpcPort();
CACHE_REFRESH_RATE_SECONDS = feastProperties.getCoreCacheRefreshInterval();
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. since it's not a constant anymore shouldn't it be lowercased?
  2. add this. please

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

@terryyylim
Copy link
Member Author

/retest

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pyalex, terryyylim

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

The pull request process is described here

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

@pyalex
Copy link
Collaborator

pyalex commented Nov 2, 2020

/lgtm

@terryyylim
Copy link
Member Author

/retest

@feast-ci-bot feast-ci-bot merged commit 85eedf0 into feast-dev:master Nov 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