skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

spring config trace info error

Open mbao opened this issue 7 years ago • 6 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • [ ] Question or discussion

Question

  • What do you want to know? There is no trace info of spring cloud config server. After debugging, I find that spring cloud config will call two controller method for one request, but after first method finish,RESPONSE_KEY_IN_RUNTIME_CONTEXT is removed, so response is null when next called. I don't know if this is a bug or there is something error in my using.

wx20190304-180310 image

mbao avatar Mar 04 '19 10:03 mbao

Why call the method twice?

cc @ascrutae We need to avoid this issue, but I just don't know why this happens.

wu-sheng avatar Mar 04 '19 12:03 wu-sheng

@ascrutae Look like, runtime context should be stack based for each key? I am not sure yet.

wu-sheng avatar Mar 04 '19 12:03 wu-sheng

Why call the method twice?

cc @ascrutae We need to avoid this issue, but I just don't know why this happens.

Not one method twice, but one controller method with annotation RequestMapping calls another one with that annotation.

mbao avatar Mar 05 '19 02:03 mbao

I think that is the exact case. You call between controllers.

wu-sheng avatar Mar 05 '19 02:03 wu-sheng

This case is more common in some business environment, I will try to fix it in this version.

ascrutae avatar Mar 05 '19 02:03 ascrutae

Fixed in 6.1.0

wu-sheng avatar May 22 '19 14:05 wu-sheng