Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ int getItemCount() {
List<Envelope> getItemsByType(String type) {
Objects.requireNonNull(type, "type");
synchronized (multimapLock) {
return type2envelope.get(type);
// need to make a copy to avoid ConcurrentModificationException
// if the caller iterates over it at the same time as another telemetry item arrives
return new ArrayList<>(type2envelope.get(type));
}
}

Expand Down
Loading