Skip to content

Commit 8c80b5f

Browse files
committed
Update annotation and comments
1 parent 9ef2179 commit 8c80b5f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import org.apache.logging.log4j.LogManager;
1212
import org.apache.logging.log4j.Logger;
1313
import org.elasticsearch.cluster.metadata.ProjectId;
14-
import org.elasticsearch.core.FixForMultiProject;
1514
import org.elasticsearch.core.NotMultiProjectCapable;
1615
import org.elasticsearch.env.Environment;
1716
import org.elasticsearch.watcher.FileChangesListener;
@@ -35,7 +34,9 @@
3534
* Keeps track of user provided databases in the ES_HOME/config/ingest-geoip directory.
3635
* This directory is monitored and files updates are picked up and may cause databases being loaded or removed at runtime.
3736
*/
38-
@NotMultiProjectCapable(description = "Custom databases not available in serverless")
37+
@NotMultiProjectCapable(
38+
description = "Custom databases not available in serverless, we should review this class for MP again after serverless is enabled"
39+
)
3940
final class ConfigDatabases implements Closeable {
4041

4142
private static final Logger logger = LogManager.getLogger(ConfigDatabases.class);
@@ -73,7 +74,7 @@ Map<String, DatabaseReaderLazyLoader> getConfigDatabases() {
7374
return configDatabases;
7475
}
7576

76-
@FixForMultiProject(description = "Replace DEFAULT project")
77+
@NotMultiProjectCapable(description = "Replace DEFAULT project after serverless is enabled")
7778
void updateDatabase(Path file, boolean update) {
7879
String databaseFileName = file.getFileName().toString();
7980
try {
@@ -95,7 +96,7 @@ void updateDatabase(Path file, boolean update) {
9596
}
9697
}
9798

98-
@FixForMultiProject(description = "Replace DEFAULT project")
99+
@NotMultiProjectCapable(description = "Replace DEFAULT project after serverless is enabled")
99100
Map<String, DatabaseReaderLazyLoader> initConfigDatabases() throws IOException {
100101
Map<String, DatabaseReaderLazyLoader> databases = new HashMap<>();
101102

0 commit comments

Comments
 (0)