GithubHelp home page GithubHelp logo

Comments (11)

mauri870 avatar mauri870 commented on July 19, 2024 1

Thanks. I don't think -race is required to reproduce the issue. The race instrumentation might slow the runtime down just enough for this to reproduce more easier.

I had better luck reproducing with stress and a higher number of parallel processes:

go test -c ./staging/src/k8s.io/client-go/util/workqueue/...
go run golang.org/x/tools/cmd/stress@latest -p 1024 -failure unexpected ./workqueue.test -test.v -test.run ^TestAddTwoFireEarly$

/assign tatsuhiro-t

from kubernetes.

tatsuhiro-t avatar tatsuhiro-t commented on July 19, 2024 1

Yeah, I used -race to save the number of runs and time.

from kubernetes.

tatsuhiro-t avatar tatsuhiro-t commented on July 19, 2024

/sig api-machinery

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

Is that reproducible for you with x/tools/stress?

$ go test -c -race ./staging/src/k8s.io/client-go/util/workqueue/...
$ go run golang.org/x/tools/cmd/stress@latest -p 256  ./workqueue.test -test.v -test.run ^TestAddTwoFireEarly$

Edit: I got it after a couple thousand runs

5s: 512 runs so far, 0 failures
10s: 1152 runs so far, 0 failures
15s: 1789 runs so far, 0 failures
20s: 2424 runs so far, 0 failures

/tmp/go-stress-20240619T095442-4267781378
=== RUN   TestAddTwoFireEarly
    delaying_queue_test.go:160: unexpected err: timed out waiting for the condition
--- FAIL: TestAddTwoFireEarly (10.00s)
FAIL


ERROR: exit status 1

25s: 3063 runs so far, 1 failures (0.03%)

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

/triage accepted

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

@tatsuhiro-t Your fix makes sense, are you planning on sending a PR? Thanks.

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

/assign

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

Just preassigning, if you want to work on it let me know.

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

/kind flake

from kubernetes.

mauri870 avatar mauri870 commented on July 19, 2024

/remove-kind bug

from kubernetes.

tatsuhiro-t avatar tatsuhiro-t commented on July 19, 2024

Yes, let me work on this issue.

I have not tried x/tools/stress. Lots of trials are needed to reproduce it.

from kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.