You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2022/12/05 06:13:00 UTC

[jira] [Created] (YUNIKORN-1447) data race: TestUnReservationAndDeletion

Wilfred Spiegelenburg created YUNIKORN-1447:
-----------------------------------------------

             Summary: data race: TestUnReservationAndDeletion
                 Key: YUNIKORN-1447
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1447
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: core - common
            Reporter: Wilfred Spiegelenburg


{code}
==================
WARNING: DATA RACE
Write at 0x00c026924a50 by goroutine 57:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x41c
  github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).unReserveCount()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:1008 +0xf0
  github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).removeAllocationAsk()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:1419 +0x22c
  github.com/apache/yunikorn-core/pkg/scheduler.(*ClusterContext).processAskReleases()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/context.go:822 +0xa4
  github.com/apache/yunikorn-core/pkg/scheduler.(*ClusterContext).handleRMUpdateAllocationEvent()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/context.go:757 +0xec
  github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).handleRMEvent()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:111 +0x15c
  github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).StartService.func1()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:55 +0x38

Previous read at 0x00c026924a50 by goroutine 56:
  runtime.evacuate_fast64()
      /usr/local/go/src/runtime/map_fast64.go:376 +0x3fc
  github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).unReserve()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:967 +0x88
  github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).allocate()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:911 +0x354
  github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).tryAllocate()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:832 +0x140
  github.com/apache/yunikorn-core/pkg/scheduler.(*ClusterContext).schedule()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/context.go:137 +0x15c
  github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).MultiStepSchedule()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:192 +0x68
  github.com/apache/yunikorn-core/pkg/scheduler/tests.TestUnReservationAndDeletion()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/tests/reservation_test.go:439 +0x112c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1439 +0x18c
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1486 +0x44

Goroutine 57 (running) created at:
  github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).StartService()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:55 +0xfc
  github.com/apache/yunikorn-core/pkg/entrypoint.startAllServicesWithParameters()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/entrypoint/entrypoint.go:90 +0x550
  github.com/apache/yunikorn-core/pkg/entrypoint.StartAllServicesWithManualScheduler()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/entrypoint/entrypoint.go:61 +0x54
  github.com/apache/yunikorn-core/pkg/scheduler/tests.(*mockScheduler).Init()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/tests/mockscheduler_test.go:55 +0x1c4
  github.com/apache/yunikorn-core/pkg/scheduler/tests.TestUnReservationAndDeletion()
      /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/tests/reservation_test.go:387 +0x9c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1439 +0x18c
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1486 +0x44

Goroutine 56 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1486 +0x560
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1839 +0x94
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1439 +0x18c
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1837 +0x6c8
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1719 +0x878
  main.main()
      _testmain.go:153 +0x3b4
==================
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org