Skip to content

Commit

Permalink
SNOW-928802 Use concurrent hashmap to prevent ConcurrentModificationE…
Browse files Browse the repository at this point in the history
…xception

- We did make a change to use ConcurrentHashMap but that was in test
  code, we still used HashMap! This will hopefully not result into
  ConcurrentModificationException
  • Loading branch information
sfc-gh-japatel committed Oct 2, 2023
1 parent 6a171c1 commit 43ff3f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ List<List<ChannelData<T>>> getData() {
this.isNeedFlush = false;
this.lastFlushTime = System.currentTimeMillis();
this.isTestMode = isTestMode;
this.latencyTimerContextMap = new HashMap<>();
this.latencyTimerContextMap = new ConcurrentHashMap<>();
this.bdecVersion = this.owningClient.getParameterProvider().getBlobFormatVersion();
createWorkers();
}
Expand Down

0 comments on commit 43ff3f3

Please sign in to comment.