Closed tdiesler closed 2 months ago
Done
Reopen, because of ...
fatal error: concurrent map read and map write
goroutine 15404 [running]:
k8s.io/apimachinery/pkg/runtime.(*Scheme).ObjectKinds(0xc0002ae540, {0x2e5ddb0?, 0xc0004a2930})
/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.28.8/pkg/runtime/scheme.go:267 +0x1ad
k8s.io/apimachinery/pkg/runtime/serializer/protobuf.(*Serializer).Decode(0xc0008d5140, {0xc00140a000?, 0x1010f?, 0x12000?}, 0x0, {0x2e5ddb0?, 0xc0004a2930?})
/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.28.8/pkg/runtime/serializer/protobuf/protobuf.go:132 +0x458
k8s.io/apimachinery/pkg/runtime.WithoutVersionDecoder.Decode({{0x7f39dc397fd8?, 0xc0008d5140?}}, {0xc00140a000?, 0x199?, 0xc0004a2930?}, 0x259db80?, {0x2e5ddb0?, 0xc0004a2930?})
/home/runner/go/pkg/mod/k8s.io/apimachinery@v0.28.8/pkg/runtime/helper.go:252 +0x4f
sigs.k8s.io/controller-runtime/pkg/client/apiutil.targetZeroingDecoder.Decode({{0x2e54ea0?, 0xc00107c050?}}, {0xc00140a000, 0x1010f, 0x12000}, 0x0?, {0x2e5ddb0?, 0xc0004a2930?})
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/client/apiutil/apimachinery.go:236 +0xb0
k8s.io/client-go/rest.Result.Into({{0xc00140a000, 0x1010f, 0x12000}, {0x0, 0x0, 0x0}, {0xc000144060, 0x23}, {0x0, 0x0}, ...}, ...)
/home/runner/go/pkg/mod/k8s.io/client-go@v0.28.8/rest/request.go:1373 +0x97
sigs.k8s.io/controller-runtime/pkg/client.(*typedClient).List(0xc0008e8900, {0x2e7a818, 0x44b0940}, {0x2e87cc0?, 0xc0004a2930}, {0xc0009ba9c0, 0x2, 0x3655?})
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/client/typed_client.go:165 +0x2a5
sigs.k8s.io/controller-runtime/pkg/client.(*client).List(0xc0008e8900, {0x2e7a818, 0x44b0940}, {0x2e87cc0?, 0xc0004a2930?}, {0xc0009ba9c0, 0x2, 0x2})
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/client/client.go:402 +0x3e5
github.com/apache/camel-k/v2/e2e/support.IntegrationPod.func1.IntegrationPods.func1()
/home/runner/work/camel-k/camel-k/e2e/support/test_support.go:649 +0x271
github.com/apache/camel-k/v2/e2e/support.IntegrationPod.func1()
/home/runner/work/camel-k/camel-k/e2e/support/test_support.go:623 +0x7d
github.com/apache/camel-k/v2/e2e/advanced.TestKamelCLIPromote.func1.4.8.IntegrationLogs.func6()
This code cannot be called concurrently
err := TestClient(t).List(ctx, &lst,
ctrl.InNamespace(ns),
ctrl.MatchingLabels{
v1.IntegrationLabel: name,
})
if err != nil {
failTest(t, err)
}
Done
What happened?
Multiple test may fail in the wake of such a concurrent map read/write
https://github.com/apache/camel-k/actions/runs/8521680570/job/23379943610?pr=5299