mirror of https://github.com/apache/kafka.git
				
				
				
			MINOR: Fix flaky `DescribeClusterRequestTest.testDescribeClusterRequestIncludingClusterAuthorizedOperations` (#14890)
Test startup does not assure that all brokers are registered. In flaky failures, the `DescribeCluster` API does not return a complete list of brokers. To fix the issue, we add a call to `ensureConsistentKRaftMetadata()` to ensure that all brokers are registered and have caught up to current metadata. Reviewers: David Jacot <djacot@confluent.io>
This commit is contained in:
		
							parent
							
								
									ba49006561
								
							
						
					
					
						commit
						a701c0e04f
					
				| 
						 | 
				
			
			@ -83,6 +83,8 @@ class DescribeClusterRequestTest extends BaseRequestTest {
 | 
			
		|||
      Int.MinValue
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    ensureConsistentKRaftMetadata()
 | 
			
		||||
 | 
			
		||||
    for (version <- ApiKeys.DESCRIBE_CLUSTER.oldestVersion to ApiKeys.DESCRIBE_CLUSTER.latestVersion) {
 | 
			
		||||
      val describeClusterRequest = new DescribeClusterRequest.Builder(new DescribeClusterRequestData()
 | 
			
		||||
        .setIncludeClusterAuthorizedOperations(includeClusterAuthorizedOperations))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue