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

Set maximumSize using @HystrixCommand annotation hystrix version 2.2.4 #2004

Open
narayandatt opened this issue Sep 25, 2020 · 0 comments
Open

Comments

@narayandatt
Copy link

HI Team while i am using @HystrixProperty to set maximumSize i am not able to do in Hystrix version: 2.2.4

code Example:

@HystrixCommand(ignoreExceptions = MyException.class,
threadPoolProperties = {
@HystrixProperty(name = "coreSize", value = "20"),
@HystrixProperty(name = "maximumSize", value = "25"),
@HystrixProperty(name = "allowMaximumSizeToDivergeFromCoreSize", value = "true")
})
public MyPerson getMyPerson(...)

Hystrix version: 2.2.4

Exception:

Caused by: java.lang.IllegalArgumentException: unknown thread pool property: maximumSize
at com.netflix.hystrix.contrib.javanica.conf.HystrixPropertiesManager.initializeProperties(HystrixPropertiesManager.java:125)
at com.netflix.hystrix.contrib.javanica.conf.HystrixPropertiesManager.initializeThreadPoolProperties(HystrixPropertiesManager.java:108)
at com.netflix.hystrix.contrib.javanica.command.GenericSetterBuilder.build(GenericSetterBuilder.java:81)

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

No branches or pull requests

1 participant