GeezerVison is showing github.com — MINOR: Remove redundant `@Timeout` from ClusterTest classes (#24048) · coderbruis/kafka@c40d0c9
File treeExpand file treeCollapse file tree Open diff view settings clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer server/src/test/java/org/apache/kafka/server
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/PlaintextConsumerAssignorsTest.java -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 28 | 28 | import org.apache.kafka.test.NoRetryException; | 29 | 29 | import org.apache.kafka.test.TestUtils; | 30 | 30 |
| 31 | | -import org.junit.jupiter.api.Timeout; | 32 | | - | 33 | 31 | import java.time.Duration; | 34 | 32 | import java.util.ArrayList; | 35 | 33 | import java.util.Collection; | | 48 | 46 | /** | 49 | 47 | * Integration tests for client-side and server-side consumer assignors. | 50 | 48 | */ | 51 | | -@Timeout(600) | 52 | 49 | @ClusterTestDefaults( | 53 | 50 | types = {Type.KRAFT}, | 54 | 51 | brokers = 3, | |
Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerCallbackTest.java -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 31 | 31 | import org.apache.kafka.test.NoRetryException; | 32 | 32 | import org.apache.kafka.test.TestUtils; | 33 | 33 |
| 34 | | -import org.junit.jupiter.api.Timeout; | 35 | | - | 36 | 34 | import java.time.Duration; | 37 | 35 | import java.util.HashMap; | 38 | 36 | import java.util.Map; | | 47 | 45 | import static org.junit.jupiter.api.Assertions.assertThrows; | 48 | 46 | import static org.junit.jupiter.api.Assertions.assertTrue; | 49 | 47 |
| 50 | | -@Timeout(1200) | 51 | 48 | @ClusterTestDefaults( | 52 | 49 | types = {Type.KRAFT}, | 53 | 50 | serverProperties = { | |
Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerDeliveryTest.java -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 | import org.apache.kafka.coordinator.group.GroupConfig; | 36 | 36 | import org.apache.kafka.test.TestUtils; | 37 | 37 |
| 38 | | -import org.junit.jupiter.api.Timeout; | 39 | | - | 40 | 38 | import java.time.Duration; | 41 | 39 | import java.util.ArrayList; | 42 | 40 | import java.util.Collection; | | 59 | 57 | import static org.junit.jupiter.api.Assertions.assertThrows; | 60 | 58 | import static org.junit.jupiter.api.Assertions.assertTrue; | 61 | 59 |
| 62 | | -@Timeout(1200) | 63 | 60 | @ClusterTestDefaults( | 64 | 61 | types = {Type.KRAFT}, | 65 | 62 | serverProperties = { | |
Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerFairnessTest.java -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 | import org.apache.kafka.common.test.api.ClusterTestDefaults; | 28 | 28 | import org.apache.kafka.common.test.api.Type; | 29 | 29 |
| 30 | | -import org.junit.jupiter.api.Timeout; | 31 | | - | 32 | 30 | import java.time.Duration; | 33 | 31 | import java.util.ArrayList; | 34 | 32 | import java.util.List; | | 43 | 41 | * Verifies that a share fetch spreads its record budget across all the partitions with data and does not | 44 | 42 | * keep serving the same partition while the others are starved. | 45 | 43 | */ | 46 | | -@Timeout(600) | 47 | 44 | @ClusterTestDefaults( | 48 | 45 | types = {Type.KRAFT}, | 49 | 46 | serverProperties = { | |
Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerLagTest.java -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 30 | 30 | import org.apache.kafka.common.test.api.Type; | 31 | 31 | import org.apache.kafka.test.TestUtils; | 32 | 32 |
| 33 | | -import org.junit.jupiter.api.Timeout; | 34 | | - | 35 | 33 | import java.util.List; | 36 | 34 | import java.util.Map; | 37 | 35 | import java.util.Objects; | | 42 | 40 | import static org.junit.jupiter.api.Assertions.assertEquals; | 43 | 41 | import static org.junit.jupiter.api.Assertions.fail; | 44 | 42 |
| 45 | | -@Timeout(1200) | 46 | 43 | @ClusterTestDefaults( | 47 | 44 | types = {Type.KRAFT}, | 48 | 45 | serverProperties = { | |
Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerRenewTest.java -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 30 | 30 |
| 31 | 31 | import com.yammer.metrics.core.Meter; | 32 | 32 |
| 33 | | -import org.junit.jupiter.api.Timeout; | 34 | | - | 35 | 33 | import java.util.List; | 36 | 34 | import java.util.Map; | 37 | 35 | import java.util.Optional; | | 42 | 40 | import static org.junit.jupiter.api.Assertions.assertThrows; | 43 | 41 | import static org.junit.jupiter.api.Assertions.assertTrue; | 44 | 42 |
| 45 | | -@Timeout(1200) | 46 | 43 | @ClusterTestDefaults( | 47 | 44 | types = {Type.KRAFT}, | 48 | 45 | serverProperties = { | |
Collapse file Copy file name to clipboardExpand all lines: clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 95 | 95 | import static org.junit.jupiter.api.Assertions.assertTrue; | 96 | 96 | import static org.junit.jupiter.api.Assertions.fail; | 97 | 97 |
| 98 | | -@Timeout(1200) | 99 | 98 | @ClusterTestDefaults( | 100 | 99 | types = {Type.KRAFT}, | 101 | 100 | serverProperties = { | |
Collapse file Copy file name to clipboardExpand all lines: core/src/test/scala/integration/kafka/api/GroupCoordinatorIntegrationTest.scala -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,15 +32,13 @@ import org.apache.kafka.streams.{KafkaStreams, StreamsBuilder, StreamsConfig} | 32 | 32 | import org.apache.kafka.streams.{GroupProtocol => StreamsGroupProtocol} | 33 | 33 | import org.apache.kafka.storage.internals.log.UnifiedLog | 34 | 34 | import org.apache.kafka.test.{TestUtils => JTestUtils} | 35 | | -import org.junit.jupiter.api.Timeout | 36 | 35 |
| 37 | 36 | import java.time.Duration | 38 | 37 | import java.util.Properties | 39 | 38 | import java.util.concurrent.TimeUnit | 40 | 39 | import scala.concurrent.ExecutionException | 41 | 40 | import scala.jdk.OptionConverters.RichOptional | 42 | 41 |
| 43 | | -@Timeout(120) | 44 | 42 | class GroupCoordinatorIntegrationTest(cluster: ClusterInstance) { | 45 | 43 |
| 46 | 44 | @ClusterTest( | |
Collapse file Copy file name to clipboardExpand all lines: core/src/test/scala/unit/kafka/server/ConsumerProtocolMigrationTest.scala -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,6 @@ import org.apache.kafka.coordinator.group.{Group, GroupCoordinatorConfig} | 27 | 27 | import org.apache.kafka.coordinator.group.classic.ClassicGroupState | 28 | 28 | import org.apache.kafka.coordinator.group.modern.consumer.ConsumerGroup.ConsumerGroupState | 29 | 29 | import org.junit.jupiter.api.Assertions.{assertEquals, assertTrue} | 30 | | -import org.junit.jupiter.api.Timeout | 31 | 30 |
| 32 | 31 | import java.nio.ByteBuffer | 33 | 32 | import java.util.Collections | @@ -47,7 +46,6 @@ object ConsumerProtocolMigrationTest { | 47 | 46 | } | 48 | 47 | } | 49 | 48 |
| 50 | | -@Timeout(120) | 51 | 49 | @ClusterTestDefaults( | 52 | 50 | types = Array(Type.KRAFT), | 53 | 51 | serverProperties = Array( | |
Collapse file Copy file name to clipboardExpand all lines: core/src/test/scala/unit/kafka/server/ShareFetchAcknowledgeRequestTest.scala +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,12 +29,11 @@ import org.apache.kafka.common.test.ClusterInstance | 29 | 29 | import org.apache.kafka.server.common.Feature | 30 | 30 | import org.apache.kafka.server.IntegrationTestUtils | 31 | 31 | import org.junit.jupiter.api.Assertions.{assertEquals, assertTrue} | 32 | | -import org.junit.jupiter.api.{AfterEach, Timeout} | | 32 | +import org.junit.jupiter.api.AfterEach | 33 | 33 |
| 34 | 34 | import java.net.Socket | 35 | 35 | import java.util | 36 | 36 |
| 37 | | -@Timeout(1200) | 38 | 37 | @ClusterTestDefaults(types = Array(Type.KRAFT), brokers = 1, serverProperties = Array( | 39 | 38 | new ClusterConfigProperty(key = "group.share.persister.class.name", value = "") | 40 | 39 | )) | |
|