diff --git a/CHANGELOG.md b/CHANGELOG.md index cb51363..5233f26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +## [0.1.83] - 2024-11-25 +Upgrading the emr label to fix some vulnerabilities. +### Changed +-api/src/main/java/com/homeaway/datapullclient/config/DataPullRequestProcessor.java + ## [0.1.82] - 2024-11-06 Upgrading the emr label to fix some vulnerabilities. ### Changed diff --git a/api/src/main/java/com/homeaway/datapullclient/process/DataPullRequestProcessor.java b/api/src/main/java/com/homeaway/datapullclient/process/DataPullRequestProcessor.java index 1c01192..944458f 100644 --- a/api/src/main/java/com/homeaway/datapullclient/process/DataPullRequestProcessor.java +++ b/api/src/main/java/com/homeaway/datapullclient/process/DataPullRequestProcessor.java @@ -257,15 +257,16 @@ private void runDataPull(String json, boolean isStart, boolean validateJson) thr log.debug("runDataPull <- return"); } - List rotateSubnets(){ - - if(subnets.isEmpty()){ - subnets= getSubnet(); - }else{ - List subnetIds_shuffled = new ArrayList<>(subnets); - Collections.rotate(subnetIds_shuffled, 1); - subnets.clear(); - subnets.addAll(subnetIds_shuffled); + List rotateSubnets() { + if (subnets == null) { + synchronized (subnets) { + if (subnets.isEmpty()) { + subnets = getSubnet(); + } else { + String first = subnets.remove(0); + subnets.add(first); + } + } } return subnets; }