Fix race condition causing occasional build failures
This commit is contained in:
@@ -290,7 +290,7 @@ resources:
|
||||
########################################################################################
|
||||
jobs:
|
||||
- name: concourse-ls-tests
|
||||
max_in_flight: 4
|
||||
max_in_flight: 6
|
||||
plan:
|
||||
- get: every-minute
|
||||
trigger: true
|
||||
|
||||
@@ -373,12 +373,13 @@ public class YTypeFactory {
|
||||
|
||||
public Map<String, YTypedProperty> getPropertiesMap() {
|
||||
if (cachedPropertyMap==null) {
|
||||
cachedPropertyMap = new LinkedHashMap<>();
|
||||
ImmutableMap.Builder<String, YTypedProperty> builder = ImmutableMap.builder();
|
||||
for (YTypedProperty p : propertyList) {
|
||||
cachedPropertyMap.put(p.getName(), p);
|
||||
builder.put(p.getName(), p);
|
||||
}
|
||||
cachedPropertyMap = builder.build();
|
||||
}
|
||||
return Collections.unmodifiableMap(cachedPropertyMap);
|
||||
return cachedPropertyMap;
|
||||
}
|
||||
|
||||
public boolean isAtomic() {
|
||||
|
||||
Reference in New Issue
Block a user