You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/07/02 06:35:26 UTC

[GitHub] [incubator-apisix] zhangjicun commented on issue #1623: bug: the behavior of the code 'ngx.worker.id() == 0' in the the file of skywalking/client.lua would not be unpredictable

zhangjicun commented on issue #1623:
URL: https://github.com/apache/incubator-apisix/issues/1623#issuecomment-652813171


   local endpoint = conf.endpoint
   local tracing_buffer = ngx.shared['skywalking-tracing-buffer']
   local service_id = tracing_buffer:get(endpoint .. '_service_id')
   
   replace
   if ngx.worker.id() == 0 and not heartbeat_timer then
   to
   if not service_id and not heartbeat_timer then
   
   how about like this going to work?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org