You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "Forstwith (via GitHub)" <gi...@apache.org> on 2023/04/12 11:17:51 UTC

[GitHub] [skywalking] Forstwith commented on issue #10672: [Bug] Python agent critical performance regression

Forstwith commented on issue #10672:
URL: https://github.com/apache/skywalking/issues/10672#issuecomment-1505096128

   I just got this problem too.
   ![image](https://user-images.githubusercontent.com/22184723/231440858-758208b0-57a6-4c58-9078-2ee0c32350a7.png)
   
   Just remove this empty test can solve problem. Because it is a blocking queue, there is no need to judge empty
   ```python
       @report_with_backoff(reporter_name='segment', init_wait=0)
       def __report_segment(self) -> None:
           if not self.__segment_queue.empty(): # remove this empty test can solve problem. Because it is a blocking queue, there is no need to judge empty
               self.__protocol.report_segment(self.__segment_queue)
   
       @report_with_backoff(reporter_name='log', init_wait=0)
       def __report_log(self) -> None:
           if not self.__log_queue.empty():
               self.__protocol.report_log(self.__log_queue)
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

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