NightliarX commented on issue #5311:
URL: https://github.com/apache/shenyu/issues/5311#issuecomment-1820794648

   <img width="681" alt="Screenshot 2023-11-21 185629" 
src="https://github.com/apache/shenyu/assets/31990865/f57fb410-1f8d-49db-a73d-a96a642634a8";>
   <img width="679" alt="Screenshot 2023-11-21 185815" 
src="https://github.com/apache/shenyu/assets/31990865/3c4eddc4-f985-44a7-85e5-b11aacbe99c7";><br/>
   after reading the code ,I found that the code in 
org.apache.shenyu.admin.service.impl.UpstreamCheckService may have concurrency 
problem.<br/>
   UPSTREAM_MAP.get(selectorId) in first picture may execute before 
updateHandler in method submit was executed.it leads to 
   an error result after updated the database(updateHandler's update result in 
first picture will cover the update result in second picture)


-- 
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-unsubscr...@shenyu.apache.org

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

Reply via email to