-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Script with batched requests fails with "fatal error: concurrent map writes" #770
Comments
Thanks for reporting this, I managed to semi-consistently reproduce it, even with a much simpler script: export let options = {
vus: 5,
iterations: 10,
batchPerHost: 6
};
export default function () {
let reqs = [];
for (let i = 0; i < 30; i++) {
reqs.push({ method: "GET", url: `https://test.loadimpact.com/?req=${i}` });
}
let resps = http.batch(reqs);
sleep(2);
} The data race is in the limiter used for the
The actual issue was pretty obvious once I looked at the code, so I'll try to get it fixed today. The only potential problem is how much would a |
Fix, refactor, document and test the slot limiters and update the release notes This fixes #770
Thanks for the fix. It works for my use case as well. When will it be released? |
This will probably be part of the 1.0 release, sometime in the next several weeks. You can use the |
The create-icon-and-refresh.js.zip script fails with "fatal error: concurrent map writes" when executed with
--vus 5 --duration 60s
in batch: k6-log.txt.The issue can be consistently reproduced both on Mac OS 10.13.6 and on Ubuntu 18.04.
A version of the script modified so as to execute the request sequentially completes successfully: create-icon-and-refresh-non-batched.js.zip
The text was updated successfully, but these errors were encountered: