Weiwei Yang created YUNIKORN-62:
-----------------------------------
Summary: Fix time logging issue while doing reservation
Key: YUNIKORN-62
URL: https://issues.apache.org/jira/browse/YUNIKORN-62
Project: Apache YuniKorn
Issue Type: Bug
Components: core - scheduler
Reporter: Weiwei Yang
Met a weird logging issue with zap, looks like it is related to the time
package.
{code:java}
Met a weird logging issueMet a weird logging issue
```2020-03-27T13:30:26.553-0700 DEBUG scheduler/scheduling_node.go:213 running
predicates failed {"allocationId": "c7ed4d67-7069-11ea-b2f0-025000000001",
"nodeID": "docker-desktop", "error": "predicate CheckNodeUnschedulable cannot
be satisified, reason [Predicate NodeUnknownCondition failed]"}panic: runtime
error: invalid memory address or nil pointer dereference[signal SIGSEGV:
segmentation violation code=0x1 addr=0x0 pc=0x11ac568] goroutine 51
[running]:go.uber.org/zap/zapcore.(*jsonEncoder).AppendDuration(0xc007eca390,
0x77370eba)
/Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/json_encoder.go:239
+0xc8go.uber.org/zap/zapcore.(*jsonEncoder).AddDuration(0xc007eca390,
0x2c60b0f, 0x6, 0x77370eba)
/Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/json_encoder.go:123
+0x65go.uber.org/zap/zapcore.Field.AddTo(0x2c60b0f, 0x6, 0x8, 0x77370eba, 0x0,
0x0, 0x0, 0x0, 0x2fd78c0, 0xc007eca390)
/Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/field.go:126
+0x558go.uber.org/zap/zapcore.addFields(0x2fd78c0, 0xc007eca390, 0xc00016e000,
0x4, 0x4) /Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/field.go:199
+0x114go.uber.org/zap/zapcore.consoleEncoder.writeContext(0xc0000c1ec0,
0xc007e0ace0, 0xc00016e000, 0x4, 0x4)
/Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/console_encoder.go:131
+0xffgo.uber.org/zap/zapcore.consoleEncoder.EncodeEntry(0xc0000c1ec0, 0xff,
0xbf97b678a0fc80f8, 0x95cef19f3, 0x3f4a2a0, 0x0, 0x0, 0x2c72aac, 0x15, 0x1,
...)
/Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/console_encoder.go:110
+0x47ego.uber.org/zap/zapcore.(*ioCore).Write(0xc0000c1ef0, 0xff,
0xbf97b678a0fc80f8, 0x95cef19f3, 0x3f4a2a0, 0x0, 0x0, 0x2c72aac, 0x15, 0x1,
...) /Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/core.go:86
+0x107go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc007e52b00, 0xc00016e000,
0x4, 0x4) /Users/wyang/go/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:216
+0x1e8go.uber.org/zap.(*Logger).Debug(0xc0005265a0, 0x2c72aac, 0x15,
0xc00016e000, 0x4, 0x4)
/Users/wyang/go/pkg/mod/go.uber.org/[email protected]/logger.go:179
+0x96github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*SchedulingApplication).tryNodes(0xc000314360,
0xc006024000, 0x2f7e3e0, 0xc007d0d600, 0x0)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduling_application.go:529
+0x7edgithub.com/apache/incubator-yunikorn-core/pkg/scheduler.(*SchedulingApplication).tryAllocate(0xc000314360,
0xc00a2006e8, 0xc0001701c0, 0x0)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduling_application.go:399
+0x176github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*SchedulingQueue).tryAllocate(0xc000530e00,
0xc0001701c0, 0x1)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduling_queue.go:517
+0x139github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*SchedulingQueue).tryAllocate(0xc000170150,
0xc0001701c0, 0x0)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduling_queue.go:529
+0x6c8github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*partitionSchedulingContext).tryAllocate(0xc0001701c0,
0xc00a2006d8)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduling_partition.go:366
+0x94github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*Scheduler).schedule(0xc0000e6050)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduler.go:581
+0x90bgithub.com/apache/incubator-yunikorn-core/pkg/scheduler.(*Scheduler).internalSchedule(0xc0000e6050)
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduler.go:101
+0x39created by
github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*Scheduler).StartService
/Users/wyang/go/pkg/mod/github.com/apache/[email protected]/pkg/scheduler/scheduler.go:74
+0x1b2make: *** [run] Error 2```
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]