Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions core/src/main/scala/kafka/raft/RaftManager.scala
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ class KafkaRaftManager[T](

private def buildMetadataLog(): KafkaMetadataLog = {
val defaultProps = LogConfig.extractLogConfigMap(config)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we are no longer calling this, but rather explicitly populating the log properties. Are there other log configs we might want to expose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed best for now to not allow overrides since this is a new usage of Log and we haven't had time to understand the impact of all of the configurations for this usage. Most of them are probably safe, but others do not even make sense (e.g. the retention settings). Let me open a JIRA so that we can consider which configs we want to expose for the metadata log and how we want to expose them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaultProps.put(LogConfig.MaxMessageBytesProp, KafkaRaftClient.MAX_BATCH_SIZE: java.lang.Integer)

LogConfig.validateValues(defaultProps)
val defaultLogConfig = LogConfig(defaultProps)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
public class KafkaRaftClient<T> implements RaftClient<T> {
private static final int RETRY_BACKOFF_BASE_MS = 100;
private static final int FETCH_MAX_WAIT_MS = 500;
static final int MAX_BATCH_SIZE = 8 * 1024 * 1024;
public static final int MAX_BATCH_SIZE = 8 * 1024 * 1024;

private final AtomicReference<GracefulShutdown> shutdown = new AtomicReference<>();
private final Logger logger;
Expand Down