satishd commented on a change in pull request #11390:
URL: https://github.com/apache/kafka/pull/11390#discussion_r784750507
##########
File path: core/src/main/scala/kafka/log/UnifiedLog.scala
##########
@@ -288,13 +294,24 @@ class UnifiedLog(@volatile var logStartOffset: Long,
@volatile var partitionMetadataFile : PartitionMetadataFile = null
+ //todo-tier it needs to be updated.
+ private val localLogStartOffset: Long = logStartOffset
+
locally {
initializePartitionMetadata()
updateLogStartOffset(logStartOffset)
maybeIncrementFirstUnstableOffset()
initializeTopicId()
}
+ def remoteLogEnabled(): Boolean = {
+ // Remote logging is enabled only for non-compact and non-internal topics
+ remoteStorageSystemEnable &&
+ !(config.compact || Topic.isInternal(topicPartition.topic())
+ ||
TopicBasedRemoteLogMetadataManagerConfig.REMOTE_LOG_METADATA_TOPIC_NAME.eq(topicPartition.topic()))
&&
Review comment:
We have not yet made
`TopicBasedRemoteLogMetadataManagerConfig.REMOTE_LOG_METADATA_TOPIC_NAME` as
internal topic. I plan to make this change once it is created as an internal
topic.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]