smjn commented on PR #24383: URL: https://github.com/apache/kafka/pull/24383#issuecomment-7162826753
> Thanks for the PR. One upgrade concern, since `errors.deadletterqueue.topic.name` already shipped in 4.4.0. > > On 4.4.x, `GroupConfig.validate` only rejects DLQ names that start with `__`. The `Topic.validate` check isn't on the 4.4 branch, so a 4.4 cluster can already have a name stored that this validator rejects, e.g. `my dlq`, `dlq/orders`, `.` or anything over 249 characters. The DLQ never worked for such a group, since no topic can have that name, but the rest of the group's config did. > > Because the check now lives in the ConfigDef, it runs whenever a `GroupConfig` is built, not just on alter. After upgrading a cluster that has one of these names: > > 1. **Brokers stop applying the group's config.** `DynamicConfigPublisher` → `GroupConfigHandler` → `GroupConfigManager.updateGroupConfig` → `new GroupConfig(...)` throws `ConfigException`. The non-fatal publishing fault handler logs it and the update is dropped. After the rolling restart nothing has been loaded for the group, so it quietly falls back to broker defaults for every override: `share.record.lock.duration.ms`, `share.delivery.count.limit`, `share.auto.offset.reset`, `share.isolation.level`, `share.session.timeout.ms` and so on. > 2. **DescribeConfigs fails for the group.** `ConfigHelper` builds the config with `GroupConfig.fromProps`, and `ConfigException` isn't mapped in `Errors`, so the client gets `UNKNOWN_SERVER_ERROR` and can't see the value it needs to fix. > 3. **Every alter of the group is rejected** with `INVALID_CONFIG` unless the same request deletes or replaces the DLQ name, because the controller validates the merged config. > > If we keep this PR's behaviour, I think it needs an upgrade note telling 4.4 users to fix or delete such names before upgrading. Valid concerns - can be mentioned in 4.4.1 release -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
