Allow breaking inheritance as long as it is not fully enforced.
@@ -20,7 +20,6 @@ import com.yahoo.vespa.model.AbstractService;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -101,6 +100,12 @@ public class RankProfileList extends Derived implements RankProfilesConfig.Produ
remaining.forEach((name, rank) -> {
if (areDependenciesReady(rank, rankProfileRegistry)) ready.add(rank);
});
+ if (ready.isEmpty() && ! deployProperties.featureFlags().enforceRankProfileInheritance()) {
+ // Dirty fallback to allow incorrect rankprofile inheritance to pass for now.
+ // We then handle one by one.
+ // TODO remove ASAP
+ ready.add(remaining.values().iterator().next());
+ }
processRankProfiles(ready, queryProfiles, importedModels, search, attributeFields, deployProperties, executor);
ready.forEach(rank -> remaining.remove(rank.getName()));
}
