Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By rewriting the getRestoreConsumerConfigs() function and adding the getGlobalConsumerConfigs() function, if one user uses restoreConsumerPrefix() or globalConsumerPrefix() when adding new configurations, the configs shall overwrite base consumer config. If not specified, restore consumer and global consumer shall share the same config with base consumer.

Example

: if one user writes:

Code Block
languagebash
titleConsumer Config
consumer.max.poll.record = 5
restore-consumer.max.poll.record = 50

During initialization, consumers would get:

consumer typemax.poll.recordReason
base consumer5Target assignment with general "consumer" prefix
restore consumer50Get override config 50 by prefixing "restore-consumer"
global consumer5Since no "global-consumer" prefix is used, share the same config with base.

 


Compatibility, Deprecation, and Migration Plan

...