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

ISPN-1869 If maxEntries set without eviction strategy, default to LIRS #956

Closed
wants to merge 1 commit into from

Conversation

galderz
Copy link
Member

@galderz galderz commented Feb 20, 2012

@@ -81,6 +81,10 @@ void validate() {
log.warn("FIFO strategy is deprecated, LRU will be used instead");
if (strategy.isEnabled() && maxEntries <= 0)
throw new ConfigurationException("Eviction maxEntries value cannot be less than or equal to zero if eviction is enabled");
if (maxEntries > 0 && !strategy.isEnabled()) {
strategy = EvictionStrategy.LIRS;
log.debugf("Max entries configured (%d) without eviction strategy. Override strategy to be %s", maxEntries, strategy);
Copy link
Member

Choose a reason for hiding this comment

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

"Overriding strategy to be ... "? The log message you're printing out reads like an instruction that the user needs to override the strategy, not that it is being overridden.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, it was meant to be: "Overriding strategy to be..." - I'll reword it

@galderz
Copy link
Member Author

galderz commented Feb 20, 2012

@maniksurtani updated commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants