-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Nightly Dotty workflow of 2024-03-05 failed #19879
Comments
|
Reverting #19860 does not fix the issue. Any idea what else could have caused this? |
Duplicate of #18344 details in #19524 (comment) cc @Florian3k |
Huh. It's been quite consistent in the past few builds, though. |
Yeah, it's a not-too-often flaky failure. But there's a whole bunch of backreferences to the various duplicates |
I think it's a race-condition: if (headerBaseIds.containsKey(baseRefId)) {
int index = headerBaseIds.get(baseRefId);
index++;
headerBaseIds.put(baseRefId, index);
baseRefId += "-" + index;
} else {
headerBaseIds.put(baseRefId, 0);
} The get is being called concurrently while one of those puts caused the hashmap to rehash its internal table. I'm not sure, though, how we fix that in |
We may put this as a temporary fix in val id = idGenerator.synchronized:
idGenerator.getId(headerText + ifSuffixStr) Not sure how much this will affect performance, but I guess it's better than nothing for now. |
Yes, let's do that. Can you send a PR? |
See https://github.com/lampepfl/dotty/actions/runs/8150374165
The text was updated successfully, but these errors were encountered: