Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduler crashes occasionally #3370

Open
Wang-Kai opened this issue Mar 26, 2024 · 1 comment
Open

scheduler crashes occasionally #3370

Wang-Kai opened this issue Mar 26, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Wang-Kai
Copy link

What happened:

The volcano scheduler crashes occasionally, which due to IgnoredDevicesList slice isn’t concurrency secure.

image

What you expected to happen:

Don't panic

How to reproduce it (as minimally and precisely as possible):

The demo like this:

package main

import (
	"strings"
	"time"
)

func main() {
	var vals []string
	go func() {
		for {
			for _, v := range vals {
				strings.Compare(v, "a")
			}
		}
	}()

	go func() {
		for {
			vals = []string{}
			vals = append(vals, "a", "b")
		}
	}()
	time.Sleep(time.Hour)
}

Anything else we need to know?:

Environment:

  • Volcano Version: v1.8.2
  • Kubernetes version (use kubectl version): v1.20
  • Cloud provider or hardware configuration: 128C 256G
  • OS (e.g. from /etc/os-release): Debian GNU/Linux 9
  • Kernel (e.g. uname -a):Linux 5.10.0
  • Install tools: kubectl
  • Others:
@Wang-Kai Wang-Kai added the kind/bug Categorizes issue or PR as related to a bug. label Mar 26, 2024
@Wang-Kai Wang-Kai changed the title scheduler panic due scheduler crashes occasionally Mar 26, 2024
@lowang-bh
Copy link
Member

It will be fixed in #3325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants