You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "Chi-Sheng Liu (Jira)" <ji...@apache.org> on 2021/06/29 18:59:00 UTC

[jira] [Resolved] (SUBMARINE-842) Race condition when creating namespace in controller

     [ https://issues.apache.org/jira/browse/SUBMARINE-842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chi-Sheng Liu resolved SUBMARINE-842.
-------------------------------------
    Resolution: Fixed

https://github.com/apache/submarine/pull/606

Fixed by pull request 606. We put the submarine CR and the resources created by operator in the same namespace temporarily.

> Race condition when creating namespace in controller
> ----------------------------------------------------
>
>                 Key: SUBMARINE-842
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-842
>             Project: Apache Submarine
>          Issue Type: Bug
>          Components: Cloud-native Deployment
>            Reporter: Chi-Sheng Liu
>            Assignee: Chi-Sheng Liu
>            Priority: Major
>
> In the syncHandler function in submarine-cloud-v2/controller.go, we will create a namespace "submarine-user-test" and then create other resources on that namespace. However we do not wait until the namespace is created, so sometimes the operator will find the namespace does not exist and will crash.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org