On loginwiki the configdump may produce a plain string array instead of a map with namespace ids as keys: https://login.wikimedia.org/w/api.php?action=cirrus-config-dump&prop=replicagroup|namespacemap&format=json&formatversion=2
This is causing the search update to fail with:
java.lang.IllegalArgumentException: Cannot deserialize value of type `java.util.LinkedHashMap<java.lang.Long,java.lang.String>` from Array value (token `JsonToken.START_ARRAY`) at [Source: UNKNOWN; byte offset: #UNKNOWN] at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4544) at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4485) at org.wikimedia.discovery.cirrus.updater.producer.graph.CirrusNamespaceIndexMap.lambda$load$3(CirrusNamespaceIndexMap.java:144)
The reason we discover this issue just now is that loginwiki events got enabled just recently (T408701).
The pipeline has been unblocked by temporarily excluding loginwiki (https://gerrit.wikimedia.org/r/c/operations/deployment-charts/+/1200294).
AC:
- the cirrus config dump with namespacemap should produce a value map of namespace ids -> index_name