1111import org .apache .logging .log4j .LogManager ;
1212import org .apache .logging .log4j .Logger ;
1313import org .elasticsearch .cluster .metadata .ProjectId ;
14- import org .elasticsearch .core .FixForMultiProject ;
1514import org .elasticsearch .core .NotMultiProjectCapable ;
1615import org .elasticsearch .env .Environment ;
1716import org .elasticsearch .watcher .FileChangesListener ;
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+ )
3940final 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