Skip to content

Commit

Permalink
KSQL-12955 | Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbadani committed Jan 31, 2025
1 parent c039955 commit 84e811b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ public enum DeploymentType {
public static final String KSQL_ENABLE_FIPS = "enable.fips";
public static final String KSQL_ENABLE_FIPS_DEFAULT = "false";
public static final String KSQL_ENABLE_FIPS_DOC
= "Enable FIPS mode on the server. If FIPS mode is enabled, " +
"broker listener security protocols, TLS versions and cipher " +
"suites will be validated based on FIPS compliance requirement.";
= "Enable FIPS mode on the server. If FIPS mode is enabled, "
+ "broker listener security protocols, TLS versions and cipher "
+ "suites will be validated based on FIPS compliance requirement.";

private enum ConfigGeneration {
LEGACY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.Map;
import java.util.function.Supplier;
import javax.net.ssl.SSLContext;
import org.apache.kafka.common.config.internals.ConfluentConfigs;
import org.apache.kafka.common.security.auth.SslEngineFactory;
import org.apache.kafka.common.security.ssl.DefaultSslEngineFactory;
import org.apache.kafka.common.utils.SecurityUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class KsqlResourceContextImpl implements KsqlResourceContext {
private final KsqlConfig ksqlConfig;
private final KsqlRestConfig ksqlRestConfig;

@SuppressFBWarnings(value = "EI_EXPOSE_REP2")
public KsqlResourceContextImpl(
final KsqlConfig ksqlConfig,
final KsqlRestConfig restConfig) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,12 @@ public class KsqlRestConfig extends AbstractConfig {
KSQL_COMMAND_TOPIC_MIGRATION_MIGRATING
);

public static final String KSQL_RESOURCE_EXTENSION =
public static final String KSQL_RESOURCE_EXTENSIONS =
"ksql.resource.extension.class";
private static final String KSQL_RESOURCE_EXTENSION_DEFAULT = "";
private static final String KSQL_RESOURCE_EXTENSION_DOC =
"A list of KsqlResourceExtension implementations to register with ksqlDB server.";
"A list of KsqlResourceExtension implementations "
+ "to be registered with the ksqlDB server.";

private static final ConfigDef CONFIG_DEF;

Expand Down Expand Up @@ -625,7 +626,7 @@ public class KsqlRestConfig extends AbstractConfig {
Importance.HIGH,
INTERNAL_LISTENER_DOC
).define(
KSQL_RESOURCE_EXTENSION,
KSQL_RESOURCE_EXTENSIONS,
Type.LIST,
KSQL_RESOURCE_EXTENSION_DEFAULT,
Importance.MEDIUM,
Expand Down Expand Up @@ -1079,10 +1080,10 @@ public ClientAuth getClientAuthInternal() {
}

public List<KsqlResourceExtension> getKsqlResourceExtensions() {
if (getString(KSQL_RESOURCE_EXTENSION).isEmpty()) {
if (getString(KSQL_RESOURCE_EXTENSIONS).isEmpty()) {
return Collections.emptyList();
}
return getConfiguredInstances(KSQL_RESOURCE_EXTENSION, KsqlResourceExtension.class);
return getConfiguredInstances(KSQL_RESOURCE_EXTENSIONS, KsqlResourceExtension.class);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void shouldGetConfiguredKsqlResourceExtensions() {
.putAll(MIN_VALID_CONFIGS)
.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest")
.put(KsqlConfig.KSQL_SERVICE_ID_CONFIG, "test")
.put(KsqlRestConfig.KSQL_RESOURCE_EXTENSION,
.put(KsqlRestConfig.KSQL_RESOURCE_EXTENSIONS,
"io.confluent.ksql.rest.server.extensions.DummyResourceExtension")
.build()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import java.util.Map;
import java.util.concurrent.Executor;
import org.apache.kafka.clients.CommonClientConfigs;
import org.apache.kafka.common.config.internals.ConfluentConfigs;
import org.apache.kafka.common.security.auth.SecurityProtocol;
import org.easymock.Capture;
import org.easymock.EasyMockRunner;
Expand Down

0 comments on commit 84e811b

Please sign in to comment.