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

Panic may occur during load testing #513

Open
k2tzumi opened this issue May 17, 2023 · 5 comments
Open

Panic may occur during load testing #513

k2tzumi opened this issue May 17, 2023 · 5 comments
Labels
bug Something isn't working pull request wanted

Comments

@k2tzumi
Copy link
Collaborator

k2tzumi commented May 17, 2023

Although not known to be reproducible, the following error occurred in some cases.

$ runn loadt --load-concurrent 3 --duration 20s tests/**/*.yml
panic: runtime error: index out of range [7] with length 7

goroutine 26 [running]:
github.com/k1LoW/runn.(*operator).recordAsMapped(...)
        /Users/k2tzumi/go/pkg/mod/github.com/k1!lo!w/[email protected]/operator.go:374
github.com/k1LoW/runn.(*operator).recordNotRun(0x140aa154780, 0x103f8fee0?)
        /Users/k2tzumi/go/pkg/mod/github.com/k1!lo!w/[email protected]/operator.go:343 +0x370
github.com/k1LoW/runn.(*operator).runInternal(0x140aa154780, {0x103fb0778, 0x14002caa000})
        /Users/k2tzumi/go/pkg/mod/github.com/k1!lo!w/[email protected]/operator.go:962 +0x53c
github.com/k1LoW/runn.(*operator).run(0x140aa154780, {0x103fb0778?, 0x14002caa000})
        /Users/k2tzumi/go/pkg/mod/github.com/k1!lo!w/[email protected]/operator.go:808 +0x144
github.com/k1LoW/runn.(*operators).runN.func1()
        /Users/k2tzumi/go/pkg/mod/github.com/k1!lo!w/[email protected]/operator.go:1283 +0x138
github.com/k1LoW/concgroup.(*Group).Go.func1()
        /Users/k2tzumi/go/pkg/mod/github.com/k1!lo!w/[email protected]/concgroup.go:37 +0xc8
golang.org/x/sync/errgroup.(*Group).Go.func1()
        /Users/k2tzumi/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x5c
created by golang.org/x/sync/errgroup.(*Group).Go
        /Users/k2tzumi/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa4
@k1LoW k1LoW added the bug Something isn't working label May 17, 2023
@k1LoW
Copy link
Owner

k1LoW commented May 17, 2023

Thank you for your report!

@k1LoW
Copy link
Owner

k1LoW commented Jul 19, 2023

We are looking for reproduction codes.

@k2tzumi
Copy link
Collaborator Author

k2tzumi commented Jul 19, 2023

If we can reproduce it in past versions, we will try to verify it in the latest version.

@k2tzumi
Copy link
Collaborator Author

k2tzumi commented Jul 20, 2023

The following commands also caused errors in case of runn version 0.70.1

$ runn run --verbose --shard-n 4 --shard-index 0 tests/**/*.yml

.. snip..

panic: runtime error: index out of range [2] with length 2

goroutine 1245 [running]:
github.com/k1LoW/runn.(*operator).recordAsMapped(...)
	/Users/runner/work/runn/runn/operator.go:374
github.com/k1LoW/runn.(*operator).recordNotRun(0xc034f00d20, 0xc00047c7a0?)
	/Users/runner/work/runn/runn/operator.go:343 +0x325
github.com/k1LoW/runn.(*operator).runInternal(0xc034f00d20, {0x1db5e78, 0xc0352521e0})
	/Users/runner/work/runn/runn/operator.go:973 +0x74c
github.com/k1LoW/runn.(*operator).run(0xc034f00d20, {0x1db5e78?, 0xc0352521e0})
	/Users/runner/work/runn/runn/operator.go:808 +0x23e
github.com/k1LoW/runn.(*operators).runN.func1()
	/Users/runner/work/runn/runn/operator.go:1283 +0x26d
github.com/k1LoW/concgroup.(*Group).Go.func1()
	/Users/runner/go/pkg/mod/github.com/k1!lo!w/[email protected]/concgroup.go:37 +0x96
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/Users/runner/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
	/Users/runner/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
Error: Process completed with exit code 2.

@k2tzumi
Copy link
Collaborator Author

k2tzumi commented Jul 21, 2023

If an error occurs during the execution of the loop portion, it appears to be an Issue error, and the original error may be hidden?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pull request wanted
Projects
None yet
Development

No branches or pull requests

2 participants