You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "Xu-Wentao (via GitHub)" <gi...@apache.org> on 2023/05/18 10:31:17 UTC

[GitHub] [shardingsphere-on-cloud] Xu-Wentao commented on a diff in pull request #364: test(operator): add IT mock test for ssChaos

Xu-Wentao commented on code in PR #364:
URL: https://github.com/apache/shardingsphere-on-cloud/pull/364#discussion_r1194950317


##########
shardingsphere-operator/pkg/controllers/shardingsphere_chaos_controller.go:
##########
@@ -160,6 +160,9 @@ func (r *ShardingSphereChaosReconciler) reconcileStatus(ctx context.Context, cha
 
 	rt, err := r.getRuntimeChaos(ctx, namespacedName)
 	if err != nil {
+		if apierrors.IsNotFound(err) {
+			return nil
+		}
 		return err

Review Comment:
   `return apierrors.IsNotFound(err)`



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

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