Skip to content

Commit

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

* SNOW-928802 Use concurrent hashmap to prevent ConcurrentModificationException

- 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

* Hello Google jfmt
  • Loading branch information
sfc-gh-japatel authored Oct 3, 2023
1 parent 6a171c1 commit 02d06c9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -174,7 +173,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 02d06c9

Please sign in to comment.