Skip to content

Commit 6f8729e

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

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,24 +168,14 @@ private static synchronized Map<String, String> loadScripts(String domainNamespa
168168
LOGGER.warning(MessageKeys.EXCEPTION, e);
169169
throw new RuntimeException(e);
170170
}
171-
LOGGER.warning("xyz- loadScripts() domainNamespace:" + domainNamespace + ", uri is " + uri + ", scheme=" + uri.getScheme());
172171
try {
173172
if ("jar".equals(uri.getScheme())) {
174173
try (FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap())) {
175-
LOGGER.warning("xyz- walkScriptsPath for domainNamespace=" + domainNamespace + ", fileSystem=" + fileSystem);
176174
return walkScriptsPath(fileSystem.getPath(SCRIPTS), domainNamespace);
177175
}
178176
} else {
179177
return walkScriptsPath(Paths.get(uri), domainNamespace);
180178
}
181-
// } catch (FileSystemAlreadyExistsException ale) {
182-
// LOGGER.warning(MessageKeys.EXCEPTION, new IOException("xyz-FileSystemAlreadyExistsException uri is " + uri));
183-
// try (FileSystem fileSystem = FileSystems.getFileSystem(uri)) {
184-
// LOGGER.warning(MessageKeys.EXCEPTION, new IOException("xyz-FileSystem " + fileSystem + ", isOpen()=" + fileSystem.isOpen()));
185-
// return walkScriptsPath(fileSystem.getPath(SCRIPTS));
186-
// } catch(IOException e) {
187-
// throw new RuntimeException(e);
188-
// }
189179
} catch (IOException e) {
190180
LOGGER.warning(MessageKeys.EXCEPTION, new FileAlreadyExistsException("xyz- uri," + uri));
191181
LOGGER.warning(MessageKeys.EXCEPTION, e);

0 commit comments

Comments
 (0)