-
Notifications
You must be signed in to change notification settings - Fork 219
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
fix async http client call-point feature and rest timeout #200
fix async http client call-point feature and rest timeout #200
Conversation
771824d
to
51b9f2e
Compare
...lade-exec-common/src/main/java/com/alibaba/chaosblade/exec/common/context/GlobalContext.java
Show resolved
Hide resolved
return beforeEnhancer.doBeforeAdvice(classLoader, className, object, method, methodArguments); | ||
} | ||
} | ||
LOGGER.warn("Can't find enhancer for:{}#{}", className, method.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will a lot of logs be printed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I will change the log level to debug.
.../com/alibaba/chaosblade/exec/plugin/http/asynchttpclient/AsyncHttpClientHandlerEnhancer.java
Show resolved
Hide resolved
- fix RestTemplate timeout config - call-point performance optimization Signed-off-by: zhucegep <shizhi.zhu@qunar.com>
51b9f2e
to
87c3333
Compare
|
||
private static final char PACKAGE_SEPARATOR_CHAR = '.'; | ||
|
||
public static String simpleClassName(Class<?> clazz) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use class. getSimpleName() method?
throw new RuntimeException("contextMap size over limit."); | ||
} | ||
} | ||
Object previous = contextMap.put(key, value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to determine whether the value is null.
Thank you for your contributions. |
Describe what this PR does / why we need it