Graylog2 / Graylog2/graylog2-server
Unable to process message <c3920140-70a2-11ea-a449-9e2895143dd6>: java.util.ConcurrentModificationException
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
#7389
##description
I added this file, Geolite2-City.mmdb, and configured the "Geo-Location Processor". But it says "Unable to process message <9fcbd510-70a2-11ea-a449-9e2895143dd6>: java. util. ConcurrentModificationException" in the code. Maybe the problem is from this part of code.
```
for (Map.Entry field : message.getFields().entrySet()) {
final String key = field.getKey();
if (!key.startsWith(Message.INTERNAL_FIELD_PREFIX)) {
final Optional geoLocationInformation = extractGeoLocationInformation(field.getValue());
geoLocationInformation.ifPresent(locationInformation -> {
// We will store the coordinates as a "lat,long" string
message.addField(key + "_geolocation", locationInformation.latitude() + "," + locationInformation.longitude());
message.addField(key + "_country_code", locationInformation.countryIsoCode());
message.addField(key + "_city_name", locationInformation.cityName());
});
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.