You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "liushv0 (via GitHub)" <gi...@apache.org> on 2024/02/19 07:49:27 UTC

[I] bug: [apisix-ingress-controller]

liushv0 opened a new issue, #2167:
URL: https://github.com/apache/apisix-ingress-controller/issues/2167

   ### Current Behavior
   
   controller processor occasionally crash during running,
   cause by "fatal error: concurrent map writes"
   
   ### Expected Behavior
   
   no panic
   
   ### Error Logs
   
   <img width="1443" alt="image" src="https://github.com/apache/apisix-ingress-controller/assets/19424192/1d8b851e-6f55-4fed-8496-8c689faf3782">
   
   
   ### Steps to Reproduce
   
   function call stack like this:
   <img width="2700" alt="apisix-ingress-controller start" src="https://github.com/apache/apisix-ingress-controller/assets/19424192/741d36c0-db0c-4a0f-ae7e-a4a84d7848d8">
   
   
   
   so function   Plugins.DeepCopyInto(pkg/types/apisix/v1/types.go:187)  could be called by multiple goroutine at same time,
   type  Plugins  is alias name  to map, 
   it is not concurrent safe,this will cause  ”concurrent map writes“  error
   
   
   ### Environment
   
   - APISIX Ingress controller version  1.7.1 
    


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

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


Re: [I] bug: plugin config "concurrent map writes" [apisix-ingress-controller]

Posted by "lkad (via GitHub)" <gi...@apache.org>.
lkad commented on issue #2167:
URL: https://github.com/apache/apisix-ingress-controller/issues/2167#issuecomment-2527024522

   "I also encountered the same bug; the ingress can restart about three times a week."


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

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


Re: [I] bug: plugin config "concurrent map writes" [apisix-ingress-controller]

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #2167:
URL: https://github.com/apache/apisix-ingress-controller/issues/2167#issuecomment-1963518897

   The struct on which unmarshal is being performed is created with new() everytime when DeepCopy is called. Which means the data which is being written is not shared between function calls, so how can there be concurrent writes? I am trying to understand that right now. 


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

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


Re: [I] bug: plugin config "concurrent map writes" [apisix-ingress-controller]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #2167:
URL: https://github.com/apache/apisix-ingress-controller/issues/2167#issuecomment-2134200734

   This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


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

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