There are several prefixes not defined in isValidZooPropertyKey, which I'm not sure is by design. For example, should isValidZooPropertyKey include any of RPC_PREFIX, INSTANCE_PREFIX, MONITOR_PREFIX, COMPACTOR_PREFIX, etc? It seems like FIXED_PROPERTIES is meant to be a subset of those that are isValidZooPropertyKey (see descriptions for isFixedZooPropertyKey and isValidZooPropertyKey). However, there are several cases of a fixed property which would not be isValidZooPropertyKey (e.g., COMPACTOR_PORTSEARCH is in FIXED_PROPERTIES but would return false for isValidZooPropertyKey). Either
- At least one description is incorrect and should be updated
isValidZooPropertyKey is missing some prefixes and should be updated
2 seems most likely
Originally posted by @kevinrr888 in #5632 (review)
There are several prefixes not defined in
isValidZooPropertyKey, which I'm not sure is by design. For example, shouldisValidZooPropertyKeyinclude any ofRPC_PREFIX,INSTANCE_PREFIX,MONITOR_PREFIX,COMPACTOR_PREFIX, etc? It seems likeFIXED_PROPERTIESis meant to be a subset of those that areisValidZooPropertyKey(see descriptions forisFixedZooPropertyKeyandisValidZooPropertyKey). However, there are several cases of a fixed property which would not beisValidZooPropertyKey(e.g.,COMPACTOR_PORTSEARCHis inFIXED_PROPERTIESbut would return false forisValidZooPropertyKey). EitherisValidZooPropertyKeyis missing some prefixes and should be updated2 seems most likely
Originally posted by @kevinrr888 in #5632 (review)