Skip to content

Commit bc93c9e

Browse files
nielsbaumanszybia
andauthored
Mention thread safety in comments
Co-authored-by: Szymon Bialkowski <[email protected]>
1 parent fda20c1 commit bc93c9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/AbstractGeoIpDownloader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.util.function.Supplier;
2323

2424
/**
25-
* Abstract base class for GeoIP downloaders that download GeoIP databases.
25+
* Abstract thread-safe base class for GeoIP downloaders that download GeoIP databases.
2626
*/
2727
public abstract class AbstractGeoIpDownloader extends AllocatedPersistentTask {
2828

@@ -151,6 +151,7 @@ private void runOnDemand() {
151151

152152
/**
153153
* Download, update, and clean up GeoIP databases as required by the GeoIP processors in the cluster.
154+
* Guaranteed to not be called concurrently.
154155
*/
155156
abstract void runDownloader();
156157

0 commit comments

Comments
 (0)