ui.management.partitionCountChange.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="clusterInfo" type="com.infobip.kafkistry.kafka.ClusterInfo" -->
<#-- @ftlvariable name="topicName" type="java.lang.String" -->
<#-- @ftlvariable name="partitionCountChange" type="com.infobip.kafkistry.service.topic.PartitionPropertyChange" -->
<#-- @ftlvariable name="assignmentStatus" type="com.infobip.kafkistry.service.topic.PartitionsAssignmentsStatus" -->
<#-- @ftlvariable name="topicReplicas" type="com.infobip.kafkistry.kafkastate.TopicReplicaInfos" -->
<#include "../commonResources.ftl"/>
Kafkistry: Topic partitions change
<#include "../commonMenu.ftl">
Topic partition count change on kafka
You are about to change topic partition count on kafka cluster
Cluster
${clusterInfo.identifier}
Topic
${topicName}
Partition count before
${partitionCountChange.currentAssignments?size}
Partition count after
${(partitionCountChange.change.newAssignments?size)!"---"}
<#if partitionCountChange.dataMigration??>
<#assign dataMigration = partitionCountChange.dataMigration>
<#include "assignmentChangeStats.ftl">
#if>
<#assign partitionsAssignments = partitionCountChange.currentAssignments>
<#assign partitionChange = partitionCountChange>
<#include "../topics/partitionReplicaAssignments.ftl">
<#switch partitionCountChange.type>
<#case "IMPOSSIBLE">
WARNING: Partition change is not possible, reason: ${partitionCountChange.impossibleReason}
<#assign url = appUrl.topicsManagement().showDeleteTopicOnCluster(topicName, clusterInfo.identifier)>
<#break>
<#case "NOTHING">
NOTE: Partition change is not needed because expected and actual values are the same
<#break>
<#case "CHANGE">
<#assign assignments = partitionCountChange.change.addedPartitionReplicas>
<#include "assignmentData.ftl">
<#assign numNewPartitions = partitionCountChange.change.addedPartitionReplicas?size>
<#break>
#switch>
<#include "../common/cancelBtn.ftl">
<#include "../common/serverOpStatus.ftl">
<#include "../common/pageBottom.ftl">