Skip to content

Commit 8c9c322

Browse files
committed
fix concurrent reading of config map scripts
1 parent 6f8729e commit 8c9c322

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/ConfigMapHelper.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import java.net.URI;
88
import java.net.URISyntaxException;
99
import java.nio.charset.StandardCharsets;
10-
import java.nio.file.FileAlreadyExistsException;
1110
import java.nio.file.FileSystem;
12-
import java.nio.file.FileSystemAlreadyExistsException;
1311
import java.nio.file.FileSystems;
1412
import java.nio.file.Files;
1513
import java.nio.file.Path;
@@ -153,9 +151,7 @@ protected V1ConfigMap computeDomainConfigMap() {
153151
metadata.setLabels(labels);
154152

155153
cm.setMetadata(metadata);
156-
LOGGER.warning("xyz- computeDomainConfigMap called for domainNamespace:" + domainNamespace + ", cm.getData() is " + cm.getData());
157154
cm.setData(loadScripts(domainNamespace));
158-
LOGGER.warning("xyz- computeDomainConfigMap called for domainNamespace:" + domainNamespace + ", cm.getData() after setData().size() is " + cm.getData().size());
159155

160156
return cm;
161157
}
@@ -177,7 +173,6 @@ private static synchronized Map<String, String> loadScripts(String domainNamespa
177173
return walkScriptsPath(Paths.get(uri), domainNamespace);
178174
}
179175
} catch (IOException e) {
180-
LOGGER.warning(MessageKeys.EXCEPTION, new FileAlreadyExistsException("xyz- uri," + uri));
181176
LOGGER.warning(MessageKeys.EXCEPTION, e);
182177
throw new RuntimeException(e);
183178
}

0 commit comments

Comments
 (0)