Browse Source

KAFKA-15239: Fix system tests using producer performance service (#14092)

Reviewers: Greg Harris <greg.harris@aiven.io>
pull/14095/head
Federico Valeri 1 year ago committed by GitHub
parent
commit
8de3e0436a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      build.gradle
  2. 2
      connect/runtime/src/main/java/org/apache/kafka/connect/tools/SchemaSourceTask.java
  3. 2
      connect/runtime/src/main/java/org/apache/kafka/connect/tools/VerifiableSourceTask.java
  4. 2
      connect/runtime/src/test/java/org/apache/kafka/connect/integration/MonitorableSourceConnector.java
  5. 2
      server-common/src/main/java/org/apache/kafka/server/util/ThroughputThrottler.java
  6. 2
      tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java
  7. 2
      tools/src/main/java/org/apache/kafka/tools/VerifiableProducer.java

1
build.gradle

@ -2763,6 +2763,7 @@ project(':connect:runtime') { @@ -2763,6 +2763,7 @@ project(':connect:runtime') {
implementation libs.reflections
implementation libs.mavenArtifact
implementation libs.swaggerAnnotations
implementation project(':server-common')
// We use this library to generate OpenAPI docs for the REST API, but we don't want or need it at compile
// or run time. So, we add it to a separate configuration, which we use later on during docs generation

2
connect/runtime/src/main/java/org/apache/kafka/connect/tools/SchemaSourceTask.java

@ -22,7 +22,7 @@ import org.apache.kafka.connect.data.Struct; @@ -22,7 +22,7 @@ import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.errors.ConnectException;
import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask;
import org.apache.kafka.common.utils.ThroughputThrottler;
import org.apache.kafka.server.util.ThroughputThrottler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

2
connect/runtime/src/main/java/org/apache/kafka/connect/tools/VerifiableSourceTask.java

@ -20,7 +20,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; @@ -20,7 +20,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.connect.data.SchemaBuilder;
import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.common.utils.ThroughputThrottler;
import org.apache.kafka.server.util.ThroughputThrottler;
import org.apache.kafka.clients.producer.RecordMetadata;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.errors.ConnectException;

2
connect/runtime/src/test/java/org/apache/kafka/connect/integration/MonitorableSourceConnector.java

@ -27,7 +27,7 @@ import org.apache.kafka.connect.source.ConnectorTransactionBoundaries; @@ -27,7 +27,7 @@ import org.apache.kafka.connect.source.ConnectorTransactionBoundaries;
import org.apache.kafka.connect.source.ExactlyOnceSupport;
import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask;
import org.apache.kafka.common.utils.ThroughputThrottler;
import org.apache.kafka.server.util.ThroughputThrottler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

2
clients/src/main/java/org/apache/kafka/common/utils/ThroughputThrottler.java → server-common/src/main/java/org/apache/kafka/server/util/ThroughputThrottler.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.common.utils;
package org.apache.kafka.server.util;
/**

2
tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java

@ -42,7 +42,7 @@ import net.sourceforge.argparse4j.inf.ArgumentParser; @@ -42,7 +42,7 @@ import net.sourceforge.argparse4j.inf.ArgumentParser;
import net.sourceforge.argparse4j.inf.ArgumentParserException;
import net.sourceforge.argparse4j.inf.Namespace;
import org.apache.kafka.common.utils.Exit;
import org.apache.kafka.common.utils.ThroughputThrottler;
import org.apache.kafka.server.util.ThroughputThrottler;
import org.apache.kafka.common.utils.Utils;
public class ProducerPerformance {

2
tools/src/main/java/org/apache/kafka/tools/VerifiableProducer.java

@ -34,7 +34,7 @@ import org.apache.kafka.clients.producer.ProducerConfig; @@ -34,7 +34,7 @@ import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.RecordMetadata;
import org.apache.kafka.common.serialization.StringSerializer;
import org.apache.kafka.common.utils.ThroughputThrottler;
import org.apache.kafka.server.util.ThroughputThrottler;
import java.io.IOException;
import java.io.InputStream;

Loading…
Cancel
Save