@@ -52,7 +52,7 @@ protected void run(GrpcTransport transport) {
5252 .build ())
5353 .setPartitioningSettings (PartitioningSettings .newBuilder ()
5454 .setMinActivePartitions (4 )
55- .setPartitionCountLimit (10 )
55+ .setMaxActivePartitions (10 )
5656 .build ())
5757 .setPartitionWriteSpeedBytesPerSecond (2 * 1024 * 1024 ) // 2 MB
5858 .setPartitionWriteBurstBytes (4 * 1024 * 1024 ) // 4 MB
@@ -76,8 +76,7 @@ protected void run(GrpcTransport transport) {
7676 TopicDescription description = describeTopic (TOPIC_NAME , topicClient );
7777
7878 assert description .getPartitioningSettings ().getMinActivePartitions () == 4 ;
79- // getPartitionCountLimit is temporally ignored by server
80- assert description .getPartitioningSettings ().getPartitionCountLimit () == 0 ;
79+ assert description .getPartitioningSettings ().getMaxActivePartitions () == 10 ;
8180 assert description .getPartitionWriteSpeedBytesPerSecond () == 2 * 1024 * 1024 ;
8281 assert description .getPartitionWriteBurstBytes () == 4 * 1024 * 1024 ;
8382 assert description .getConsumers ().size () == 2 ;
@@ -94,6 +93,7 @@ protected void run(GrpcTransport transport) {
9493 .build ())
9594 .setAlterPartitioningSettings (AlterPartitioningSettings .newBuilder ()
9695 .setMinActivePartitions (6 )
96+ .setMaxActivePartitions (6 )
9797 .build ())
9898 .setPartitionWriteSpeedBytesPerSecond (4 * 1024 * 1024 )
9999 .build ())
@@ -106,8 +106,7 @@ protected void run(GrpcTransport transport) {
106106 TopicDescription description = describeTopic (TOPIC_NAME , topicClient );
107107
108108 assert description .getPartitioningSettings ().getMinActivePartitions () == 6 ;
109- // getPartitionCountLimit is temporally ignored by server
110- assert description .getPartitioningSettings ().getPartitionCountLimit () == 0 ;
109+ assert description .getPartitioningSettings ().getMaxActivePartitions () == 6 ;
111110 assert description .getPartitionWriteSpeedBytesPerSecond () == 4 * 1024 * 1024 ;
112111 assert description .getPartitionWriteBurstBytes () == 4 * 1024 * 1024 ;
113112 assert description .getConsumers ().size () == 2 ;
@@ -123,7 +122,7 @@ protected void run(GrpcTransport transport) {
123122
124123 topicClient .alterTopic (TOPIC_NAME , AlterTopicSettings .newBuilder ()
125124 .setAlterPartitioningSettings (AlterPartitioningSettings .newBuilder ()
126- .setPartitionCountLimit (8 )
125+ .setMaxActivePartitions (8 )
127126 .build ())
128127 .setRetentionPeriod (Duration .ofHours (13 ))
129128 .setRetentionStorageMb (512 )
@@ -159,8 +158,7 @@ protected void run(GrpcTransport transport) {
159158 TopicDescription description = describeTopic (TOPIC_NAME , topicClient );
160159
161160 assert description .getPartitioningSettings ().getMinActivePartitions () == 6 ;
162- // getPartitionCountLimit is temporally ignored by server
163- assert description .getPartitioningSettings ().getPartitionCountLimit () == 0 ;
161+ assert description .getPartitioningSettings ().getMaxActivePartitions () == 8 ;
164162 assert Objects .equals (description .getRetentionPeriod (), Duration .ofHours (13 ));
165163 assert description .getRetentionStorageMb () == 512 ;
166164 assert description .getPartitionWriteSpeedBytesPerSecond () == 4 * 1024 * 1024 ;
@@ -216,7 +214,7 @@ public TopicDescription describeTopic(String topicPath, TopicClient topicClient)
216214 .append (" ActivePartitions: " ).append (description .getPartitioningSettings ().getMinActivePartitions ())
217215 .append ("\n " )
218216 .append (" PartitionCountLimit: " ).append (description .getPartitioningSettings ()
219- .getPartitionCountLimit ()).append ("\n " )
217+ .getMaxActivePartitions ()).append ("\n " )
220218 .append ("getPartitionWriteSpeedBytesPerSecond: " )
221219 .append (description .getPartitionWriteSpeedBytesPerSecond ()).append ("\n " )
222220 .append ("getPartitionWriteBurstBytes: " ).append (description .getPartitionWriteBurstBytes ())
0 commit comments