You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by GitBox <gi...@apache.org> on 2021/04/15 15:42:28 UTC

[GitHub] [incubator-yunikorn-k8shim] manirajv06 commented on pull request #255: YUNIKORN-636: Shim side changes of YUNIKORN-490

manirajv06 commented on pull request #255:
URL: https://github.com/apache/incubator-yunikorn-k8shim/pull/255#issuecomment-820531336


   Had come across the below lock issues while running "make test" for shim. Working on it.
   
   2021-04-15T21:09:57.659+0530	INFO	shim/scheduler.go:217	register RM to the scheduler	{"clusterID": "my-kube-cluster", "clusterVersion": "0.1", "policyGroup": "queues"}
   fatal error: sync: RUnlock of unlocked RWMutex
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x21eb14f]
   
   goroutine 78 [running]:
   runtime.throw(0x25e6c1c, 0x21)
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/panic.go:1116 +0x72 fp=0xc0000f95b8 sp=0xc0000f9588 pc=0x1036482
   sync.throw(0x25e6c1c, 0x21)
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/panic.go:1102 +0x35 fp=0xc0000f95d8 sp=0xc0000f95b8 pc=0x1036405
   sync.(*RWMutex).rUnlockSlow(0xc000539718, 0xffffffff)
   	/usr/local/Cellar/go/1.14.3/libexec/src/sync/rwmutex.go:80 +0x3f fp=0xc0000f9600 sp=0xc0000f95d8 pc=0x107629f
   sync.(*RWMutex).RUnlock(0xc000539718)
   	/usr/local/Cellar/go/1.14.3/libexec/src/sync/rwmutex.go:70 +0x49 fp=0xc0000f9620 sp=0xc0000f9600 pc=0x1076249
   runtime.call32(0x0, 0x2677ff0, 0xc0000f9ae0, 0x800000008)
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/asm_amd64.s:539 +0x3b fp=0xc0000f9650 sp=0xc0000f9620 pc=0x106700b
   panic(0x238aa00, 0x3580a10)
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/panic.go:975 +0x3e3 fp=0xc0000f9708 sp=0xc0000f9650 pc=0x1036013
   runtime.panicmem(...)
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/panic.go:212
   runtime.sigpanic()
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/signal_unix.go:695 +0x3da fp=0xc0000f9738 sp=0xc0000f9708 pc=0x104d06a
   github.com/apache/incubator-yunikorn-k8shim/pkg/shim.(*KubernetesShim).registerShimLayer(0xc00021d9f0, 0xc0000f99e0, 0xc00022d028)
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/shim/scheduler.go:222 +0x46f fp=0xc0000f9970 sp=0xc0000f9738 pc=0x21eb14f
   github.com/apache/incubator-yunikorn-k8shim/pkg/shim.(*KubernetesShim).register(0xc00021d9f0, 0xc000248000)
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/shim/scheduler.go:135 +0x2f fp=0xc0000f9998 sp=0xc0000f9970 pc=0x21eab1f
   github.com/apache/incubator-yunikorn-k8shim/pkg/shim.(*KubernetesShim).register-fm(0xc000248000)
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/shim/scheduler.go:134 +0x34 fp=0xc0000f99b8 sp=0xc0000f9998 pc=0x21f1104
   github.com/looplab/fsm.(*FSM).afterEventCallbacks(0xc0005396e0, 0xc000248000)
   	/Users/mani/go/pkg/mod/github.com/looplab/fsm@v0.1.0/fsm.go:414 +0x107 fp=0xc0000f9a08 sp=0xc0000f99b8 pc=0x15ab857
   github.com/looplab/fsm.(*FSM).Event.func1()
   	/Users/mani/go/pkg/mod/github.com/looplab/fsm@v0.1.0/fsm.go:309 +0xb6 fp=0xc0000f9a50 sp=0xc0000f9a08 pc=0x15ab926
   github.com/looplab/fsm.transitionerStruct.transition(...)
   	/Users/mani/go/pkg/mod/github.com/looplab/fsm@v0.1.0/fsm.go:354
   github.com/looplab/fsm.(*transitionerStruct).transition(0x35d3f70, 0xc0005396e0, 0x0, 0x0)
   	<autogenerated>:1 +0x64 fp=0xc0000f9a60 sp=0xc0000f9a50 pc=0x15ab9b4
   github.com/looplab/fsm.(*FSM).doTransition(...)
   	/Users/mani/go/pkg/mod/github.com/looplab/fsm@v0.1.0/fsm.go:339
   github.com/looplab/fsm.(*FSM).Event(0xc0005396e0, 0x25cd82c, 0x11, 0x0, 0x0, 0x0, 0x0, 0x0)
   	/Users/mani/go/pkg/mod/github.com/looplab/fsm@v0.1.0/fsm.go:321 +0x593 fp=0xc0000f9c20 sp=0xc0000f9a60 pc=0x15aaca3
   github.com/apache/incubator-yunikorn-k8shim/pkg/shim.(*KubernetesShim).handle(0xc00021d9f0, 0xba01050, 0xc0004def40, 0x0, 0x0)
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/shim/scheduler.go:237 +0xa7 fp=0xc0000f9c98 sp=0xc0000f9c20 pc=0x21eb3e7
   github.com/apache/incubator-yunikorn-k8shim/pkg/shim.(*KubernetesShim).SchedulerEventHandler.func1(0x24207c0, 0xc0004def40)
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/shim/scheduler.go:124 +0xd1 fp=0xc0000f9e50 sp=0xc0000f9c98 pc=0x21f0081
   github.com/apache/incubator-yunikorn-k8shim/pkg/dispatcher.Start.func1()
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/dispatcher/dispatcher.go:196 +0x489 fp=0xc0000f9fe0 sp=0xc0000f9e50 pc=0x21880c9
   runtime.goexit()
   	/usr/local/Cellar/go/1.14.3/libexec/src/runtime/asm_amd64.s:1373 +0x1 fp=0xc0000f9fe8 sp=0xc0000f9fe0 pc=0x1068d41
   created by github.com/apache/incubator-yunikorn-k8shim/pkg/dispatcher.Start
   	/Users/mani/codebase/yunikorn/incubator-yunikorn-k8shim/pkg/dispatcher/dispatcher.go:184 +0x7e
   
   goroutine 1 [chan receive]:
   testing.(*T).Run(0xc00022cb40, 0x25d8cf8, 0x19, 0x2674d78, 0x108e326)
   	/usr/local/Cellar/go/1.14.3/libexec/src/testing/testing.go:1043 +0x37e
   testing.runTests.func1(0xc00022ca20)
   	/usr/local/Cellar/go/1.14.3/libexec/src/testing/testing.go:1284 +0x78
   testing.tRunner(0xc00022ca20, 0xc0007c7e10)
   	/usr/local/Cellar/go/1.14.3/libexec/src/testing/testing.go:991 +0xdc
   testing.runTests(0xc000202000, 0x3590d20, 0x4, 0x4, 0x0)
   	/usr/local/Cellar/go/1.14.3/libexec/src/testing/testing.go:1282 +0x2a7
   testing.(*M).Run(0xc000708000, 0x0)
   	/usr/local/Cellar/go/1.14.3/libexec/src/testing/testing.go:1199 +0x15f
   main.main()
   	_testmain.go:50 +0x135
   
   


-- 
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.

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