Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testGetErrorResponse() {
}
}

for (short version = STOP_REPLICA.oldestVersion(); version < STOP_REPLICA.latestVersion(); version++) {
for (short version = STOP_REPLICA.oldestVersion(); version <= STOP_REPLICA.latestVersion(); version++) {
StopReplicaRequest.Builder builder = new StopReplicaRequest.Builder(version,
0, 0, 0L, false, topicStates);
StopReplicaRequest request = builder.build();
Expand All @@ -93,7 +93,7 @@ private void testBuilderNormalization(boolean deletePartitions) {
Map<TopicPartition, StopReplicaPartitionState> expectedPartitionStates =
StopReplicaRequestTest.partitionStates(topicStates);

for (short version = STOP_REPLICA.oldestVersion(); version < STOP_REPLICA.latestVersion(); version++) {
for (short version = STOP_REPLICA.oldestVersion(); version <= STOP_REPLICA.latestVersion(); version++) {
StopReplicaRequest request = new StopReplicaRequest.Builder(version, 0, 1, 0,
deletePartitions, topicStates).build(version);
StopReplicaRequestData data = request.data();
Expand Down Expand Up @@ -128,7 +128,7 @@ private void testBuilderNormalization(boolean deletePartitions) {
public void testTopicStatesNormalization() {
List<StopReplicaTopicState> topicStates = topicStates(true);

for (short version = STOP_REPLICA.oldestVersion(); version < STOP_REPLICA.latestVersion(); version++) {
for (short version = STOP_REPLICA.oldestVersion(); version <= STOP_REPLICA.latestVersion(); version++) {
// Create a request for version to get its serialized form
StopReplicaRequest baseRequest = new StopReplicaRequest.Builder(version, 0, 1, 0,
true, topicStates).build(version);
Expand Down Expand Up @@ -163,7 +163,7 @@ public void testTopicStatesNormalization() {
public void testPartitionStatesNormalization() {
List<StopReplicaTopicState> topicStates = topicStates(true);

for (short version = STOP_REPLICA.oldestVersion(); version < STOP_REPLICA.latestVersion(); version++) {
for (short version = STOP_REPLICA.oldestVersion(); version <= STOP_REPLICA.latestVersion(); version++) {
// Create a request for version to get its serialized form
StopReplicaRequest baseRequest = new StopReplicaRequest.Builder(version, 0, 1, 0,
true, topicStates).build(version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void testErrorCountsFromGetErrorResponse() {
new StopReplicaPartitionState().setPartitionIndex(0),
new StopReplicaPartitionState().setPartitionIndex(1))));

for (short version = STOP_REPLICA.oldestVersion(); version < STOP_REPLICA.latestVersion(); version++) {
for (short version = STOP_REPLICA.oldestVersion(); version <= STOP_REPLICA.latestVersion(); version++) {
StopReplicaRequest request = new StopReplicaRequest.Builder(version,
15, 20, 0, false, topicStates).build(version);
StopReplicaResponse response = request
Expand Down