mirror of https://github.com/apache/kafka.git
MINOR: Fix incorrect return value from upgradeFeatures #18958
Reviewers: Colin P. McCabe <cmccabe@apache.org>
This commit is contained in:
parent
3603c8fe35
commit
f85c7d4696
|
@ -677,7 +677,7 @@ public class ConfigurationControlManager {
|
|||
log.info("{}", logMessage);
|
||||
}
|
||||
records.addAll(result.records());
|
||||
return ControllerResult.atomicOf(records, null);
|
||||
return ControllerResult.atomicOf(records, ApiError.NONE);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ import static org.apache.kafka.common.config.ConfigResource.Type.TOPIC;
|
|||
import static org.apache.kafka.common.metadata.MetadataRecordType.CONFIG_RECORD;
|
||||
import static org.apache.kafka.server.config.ConfigSynonym.HOURS_TO_MILLISECONDS;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
|
||||
@Timeout(value = 40)
|
||||
|
@ -472,7 +472,8 @@ public class ConfigurationControlManagerTest {
|
|||
Collections.singletonMap(EligibleLeaderReplicasVersion.FEATURE_NAME,
|
||||
FeatureUpdate.UpgradeType.UPGRADE),
|
||||
false);
|
||||
assertNull(result.response());
|
||||
assertNotNull(result.response());
|
||||
assertEquals(Errors.NONE, result.response().error());
|
||||
RecordTestUtils.replayAll(manager, result.records());
|
||||
RecordTestUtils.replayAll(featureManager, result.records());
|
||||
|
||||
|
|
Loading…
Reference in New Issue