mumrah opened a new pull request, #12036:
URL: https://github.com/apache/kafka/pull/12036

   This PR includes the changes to feature flags that were outlined in KIP-778.
   
   ## Single finalized version level
   
   The UpdateFeatures RPC and the FeatureLevelRecord were updated to remove the 
max version level. Other changes to the RPC from KIP-778 include:
   
   * Adding dry-run to the RPC so the controller can actually attempt the 
upgrade (rather than the client)
   * Introduce a upgrade type enum instead of "allowDowngrade" boolean
   
   ## kafka-features.sh changes
   
   This tool was overhauled in KIP-778 and now includes sub-commands.
   
   ```
   $ ./bin/kafka-features.sh --help
   usage: kafka-features [-h] --bootstrap-server BOOTSTRAP_SERVER 
[--command-config COMMAND_CONFIG] {describe,upgrade,downgrade,disable} ...
   
   This tool manages feature flags in Kafka.
   
   positional arguments:
     {describe,upgrade,downgrade,disable}
       describe             Describe one or more feature flags.
       upgrade              Upgrade one or more feature flags.
       downgrade            Upgrade one or more feature flags.
       disable              Disable one or more feature flags. This is the same 
as downgrading the version to zero.
   
   optional arguments:
     -h, --help             show this help message and exit
     --bootstrap-server BOOTSTRAP_SERVER
                            A comma-separated list of host:port pairs to use 
for establishing the connection to the Kafka cluster.
     --command-config COMMAND_CONFIG
                            Property file containing configs to be passed to 
Admin Client.
   ```
   
   Help output from the "upgrades" sub-command:
   
   ```
   $ ./bin/kafka-features.sh upgrade --help
   usage: kafka-features --bootstrap-server BOOTSTRAP_SERVER upgrade [-h] 
[--feature FEATURE] [--version VERSION] [--release RELEASE] [--dry-run]
   
   optional arguments:
     -h, --help             show this help message and exit
     --dry-run              Perform a dry-run of this upgrade operation.
   
   Upgrade specific features:
     --feature FEATURE      A feature flag to upgrade. This option may be 
repeated for upgrading multiple feature flags.
     --version VERSION      The version to upgrade to.
   
   Upgrade to feature level defined for a given release:
     --release RELEASE
   ```
   
   Refer to 
[KIP-778](https://cwiki.apache.org/confluence/display/KAFKA/KIP-778%3A+KRaft+Upgrades)
 for more details on the new command structure.


-- 
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]

Reply via email to