Skip to content

Conversation

@apnicjim
Copy link
Contributor

This is probably a nice property to have in order to avoid returning responses based on partially loaded data whilst the data is still being loaded.

Also this change results in @transactional now being applied, though I haven't thought of a reasonable way to test this. The transaction belongs to RipeDbLoader, but whether it's applied is a function of how it is called (i.e. whether the call can be intercepted by a dynamic proxy). So it can really only be integration tested in the context where its called. Alternatives would be to refactor to a TransactionTemplate which isn't dependent on dynamic proxies, or to just not test.

  • re-created PR off of updated develop branch

Now that the application does not signal it is healthy until the inital
data load has completed, more time needs to be allowed for startup.
Logs were complaining that no task scheduler bean was available.
LOGGER.info("IP interval tree construction completed, {} entries", history.getTree().size());
}

@PostConstruct

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants