Skip to content
Snippets Groups Projects
Commit feb5bea4 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

Merge branch 'gc-fix-resolver' into 'master'

fix ConcurrentModificationException in DS resolver(GONRG-8871)

See merge request !483
parents 758b0e20 d736f952
No related branches found
No related tags found
1 merge request!483fix ConcurrentModificationException in DS resolver(GONRG-8871)
Pipeline #226279 passed
......@@ -68,18 +68,17 @@ public class OsmDatastoreDestinationResolver implements DsDestinationResolver {
}
private Datastore getDatastoreFor(Destination destination, String key, String projectId) {
return datastoreCache.computeIfAbsent(key, k ->
DatastoreOptions.newBuilder()
return DatastoreOptions.newBuilder()
.setRetrySettings(RETRY_SETTINGS)
.setTransportOptions(TRANSPORT_OPTIONS)
.setProjectId(projectId)
.setNamespace(destination.getNamespace().getName())
.build()
.getService());
.getService();
}
@Override
public void close() throws IOException {
//Method stub
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment