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

fix async http client call-point feature and rest timeout #200

Merged

Conversation

zhucegep
Copy link
Contributor

Describe what this PR does / why we need it

  • fix async http client call-point feature
  • fix RestTemplate timeout config
  • call-point performance optimization

@xcaspar xcaspar self-requested a review August 13, 2021 02:06
@xcaspar xcaspar added the type/bug Category issues or prs related to bug. label Aug 13, 2021
@xcaspar xcaspar added this to the v1.4.0 milestone Aug 13, 2021
@zhucegep zhucegep force-pushed the fix_callpoint_and_rest_timeout branch from 771824d to 51b9f2e Compare August 13, 2021 03:00
return beforeEnhancer.doBeforeAdvice(classLoader, className, object, method, methodArguments);
}
}
LOGGER.warn("Can't find enhancer for:{}#{}", className, method.getName());
Copy link
Member

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?

Copy link
Contributor Author

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.

- fix RestTemplate timeout config
- call-point performance optimization

Signed-off-by: zhucegep <shizhi.zhu@qunar.com>
@zhucegep zhucegep force-pushed the fix_callpoint_and_rest_timeout branch from 51b9f2e to 87c3333 Compare August 16, 2021 03:30

private static final char PACKAGE_SEPARATOR_CHAR = '.';

public static String simpleClassName(Class<?> clazz) {
Copy link
Member

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);
Copy link
Member

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.

@xcaspar
Copy link
Member

xcaspar commented Aug 16, 2021

Thank you for your contributions.

@xcaspar xcaspar merged commit 65fd815 into chaosblade-io:master Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants