消费详情,未消费的消费组报错,菜单路由换成hash
This commit is contained in:
@@ -92,10 +92,15 @@ class ConsumerConsole(config: KafkaConfig) extends KafkaConsole(config: KafkaCon
|
||||
|
||||
consumerGroup.members().asScala.filter(!_.assignment().topicPartitions().isEmpty).foreach(m => {
|
||||
m.assignment().topicPartitions().asScala.foreach(topicPartition => {
|
||||
val t = topicPartitionConsumeInfoMap.get(topicPartition).get
|
||||
t.clientId = m.clientId()
|
||||
t.consumerId = m.consumerId()
|
||||
t.host = m.host()
|
||||
topicPartitionConsumeInfoMap.get(topicPartition) match {
|
||||
case None =>
|
||||
case Some(t) => {
|
||||
t.clientId = m.clientId()
|
||||
t.consumerId = m.consumerId()
|
||||
t.host = m.host()
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ const routes = [
|
||||
];
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: "history",
|
||||
// mode: "hash",
|
||||
// mode: "history",
|
||||
mode: "hash",
|
||||
base: process.env.BASE_URL,
|
||||
routes,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user