kafka/checkstyle
dengziming 150fd5b0b1
KAFKA-13914: Add command line tool kafka-metadata-quorum.sh (#12469)
Add `MetadataQuorumCommand` to describe quorum status, I'm trying to use arg4j style command format, currently, we only support one sub-command which is "describe" and we can specify 2 arguments which are --status and --replication.

```
# describe quorum status
kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe --replication

ReplicaId	LogEndOffset	Lag	LastFetchTimeMs	LastCaughtUpTimeMs	Status  	
0        	10          	        0  	-1             	        -1                	                 Leader  	
1        	10          	        0  	-1             	        -1                	                 Follower	
2        	10          	        0  	-1             	        -1                	                 Follower	

kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe --status
ClusterId:                             fMCL8kv1SWm87L_Md-I2hg
LeaderId:                             3002
LeaderEpoch:                      2
HighWatermark:                  10
MaxFollowerLag:                 0
MaxFollowerLagTimeMs:   -1
CurrentVoters:                    [3000,3001,3002]
CurrentObservers:              [0,1,2]

# specify AdminClient properties
kafka-metadata-quorum.sh --bootstrap-server localhost:9092 --command-config config.properties describe --status
```

Reviewers: Jason Gustafson <jason@confluent.io>
2022-08-20 08:37:26 -07:00
..
.scalafmt.conf Add license header in suppressions.xml (#11753) 2022-02-17 14:35:36 +08:00
checkstyle.xml Add license header in suppressions.xml (#11753) 2022-02-17 14:35:36 +08:00
import-control-core.xml KAFKA-14124: improve quorum controller fault handling (#12447) 2022-08-04 22:49:45 -07:00
import-control-jmh-benchmarks.xml Add license header in suppressions.xml (#11753) 2022-02-17 14:35:36 +08:00
import-control.xml KAFKA-13914: Add command line tool kafka-metadata-quorum.sh (#12469) 2022-08-20 08:37:26 -07:00
java.header MINOR: improve license header check by providing head file instead of (prefix) header regex 2017-02-28 12:35:04 -08:00
suppressions.xml KAFKA-14124: improve quorum controller fault handling (#12447) 2022-08-04 22:49:45 -07:00