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

Reviewers: Greg Harris <greg.harris@aiven.io>
This commit is contained in:
Federico Valeri 2023-08-10 23:23:43 +02:00 committed by GitHub
parent f2ebd333e8
commit 8de3e0436a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 6 deletions

View File

@ -2763,6 +2763,7 @@ project(':connect:runtime') {
implementation libs.reflections implementation libs.reflections
implementation libs.mavenArtifact implementation libs.mavenArtifact
implementation libs.swaggerAnnotations 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 // 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 // or run time. So, we add it to a separate configuration, which we use later on during docs generation

View File

@ -22,7 +22,7 @@ import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.errors.ConnectException; import org.apache.kafka.connect.errors.ConnectException;
import org.apache.kafka.connect.source.SourceRecord; import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask; 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.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -20,7 +20,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.connect.data.SchemaBuilder; import org.apache.kafka.connect.data.SchemaBuilder;
import org.apache.kafka.connect.data.Struct; 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.clients.producer.RecordMetadata;
import org.apache.kafka.connect.data.Schema; import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.errors.ConnectException; import org.apache.kafka.connect.errors.ConnectException;

View File

@ -27,7 +27,7 @@ import org.apache.kafka.connect.source.ConnectorTransactionBoundaries;
import org.apache.kafka.connect.source.ExactlyOnceSupport; import org.apache.kafka.connect.source.ExactlyOnceSupport;
import org.apache.kafka.connect.source.SourceRecord; import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask; 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.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

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

View File

@ -42,7 +42,7 @@ import net.sourceforge.argparse4j.inf.ArgumentParser;
import net.sourceforge.argparse4j.inf.ArgumentParserException; import net.sourceforge.argparse4j.inf.ArgumentParserException;
import net.sourceforge.argparse4j.inf.Namespace; import net.sourceforge.argparse4j.inf.Namespace;
import org.apache.kafka.common.utils.Exit; 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; import org.apache.kafka.common.utils.Utils;
public class ProducerPerformance { public class ProducerPerformance {

View File

@ -34,7 +34,7 @@ import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.clients.producer.ProducerRecord; import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.RecordMetadata; import org.apache.kafka.clients.producer.RecordMetadata;
import org.apache.kafka.common.serialization.StringSerializer; 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.IOException;
import java.io.InputStream; import java.io.InputStream;