You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "showuon (via GitHub)" <gi...@apache.org> on 2023/05/30 10:05:42 UTC

[GitHub] [kafka] showuon opened a new pull request, #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

showuon opened a new pull request, #13779:
URL: https://github.com/apache/kafka/pull/13779

   UnifiedLog relied on the `remoteStorageSystemEnable` to identify if the broker is enabling remote storage, but we never pass this value from the config into UnifiedLog. So it'll always be false.
   
   In this PR, I did:
   1. pass `remoteStorageSystemEnable` to `UnifiedLog`
   2. remove `remoteLogManager` from the class member of `UnifiedLog` since only `UnifiedLog#fetchOffsetByTimestamp` needs `remoteLogManager`, and this can be passed when called from `ReplicaManager`.
   
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] showuon commented on pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "showuon (via GitHub)" <gi...@apache.org>.
showuon commented on PR #13779:
URL: https://github.com/apache/kafka/pull/13779#issuecomment-1570162581

   > @showuon There are test failures in `UnifiedLogTest.testFetchOffsetByTimestampFromRemoteStorage` as remoteLogManager is not passed as an argument.
   
   Sorry, I should have checked the build status. Fixed now. Thanks.


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] showuon commented on a diff in pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "showuon (via GitHub)" <gi...@apache.org>.
showuon commented on code in PR #13779:
URL: https://github.com/apache/kafka/pull/13779#discussion_r1211408898


##########
core/src/main/scala/kafka/log/LogManager.scala:
##########
@@ -1398,7 +1402,8 @@ object LogManager {
       logDirFailureChannel = logDirFailureChannel,
       time = time,
       keepPartitionMetadataFile = keepPartitionMetadataFile,
-      interBrokerProtocolVersion = config.interBrokerProtocolVersion)
+      interBrokerProtocolVersion = config.interBrokerProtocolVersion,
+      remoteStorageSystemEnable = config.getBoolean(RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP))

Review Comment:
   Yes, it's better to use `onfig.remoteLogManagerConfig.enableRemoteStorageSystem()`. Updated.



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] satishd commented on a diff in pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "satishd (via GitHub)" <gi...@apache.org>.
satishd commented on code in PR #13779:
URL: https://github.com/apache/kafka/pull/13779#discussion_r1211206314


##########
core/src/main/scala/kafka/log/LogManager.scala:
##########
@@ -1398,7 +1402,8 @@ object LogManager {
       logDirFailureChannel = logDirFailureChannel,
       time = time,
       keepPartitionMetadataFile = keepPartitionMetadataFile,
-      interBrokerProtocolVersion = config.interBrokerProtocolVersion)
+      interBrokerProtocolVersion = config.interBrokerProtocolVersion,
+      remoteStorageSystemEnable = config.getBoolean(RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP))

Review Comment:
   Use `config.remoteLogManagerConfig.enableRemoteStorageSystem()` instead of checking the specific property in config as it is already built. 



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] showuon commented on a diff in pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "showuon (via GitHub)" <gi...@apache.org>.
showuon commented on code in PR #13779:
URL: https://github.com/apache/kafka/pull/13779#discussion_r1210048015


##########
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/ConsumerTask.java:
##########
@@ -159,7 +159,7 @@ public void run() {
             while (!closing) {
                 maybeWaitForPartitionsAssignment();
 
-                log.info("Polling consumer to receive remote log metadata topic records");
+                log.trace("Polling consumer to receive remote log metadata topic records");

Review Comment:
   Logging this line on each consumer poll will flood the log. Change to trace level



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] showuon commented on pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "showuon (via GitHub)" <gi...@apache.org>.
showuon commented on PR #13779:
URL: https://github.com/apache/kafka/pull/13779#issuecomment-1568352508

   @satishd , please take a look. Thanks.


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] showuon commented on pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "showuon (via GitHub)" <gi...@apache.org>.
showuon commented on PR #13779:
URL: https://github.com/apache/kafka/pull/13779#issuecomment-1576153534

   Failed tests are unrelated (with one infra's issue):
   ```
       Build / JDK 17 and Scala 2.13 / org.apache.kafka.connect.runtime.isolation.DelegatingClassLoaderTest.testLoadingMixOfValidAndInvalidPlugins
       Build / JDK 17 and Scala 2.13 / org.apache.kafka.controller.QuorumControllerTest.testFenceMultipleBrokers()
       Build / JDK 11 and Scala 2.13 / org.apache.kafka.connect.mirror.integration.IdentityReplicationIntegrationTest.testRestartReplication()
       Build / JDK 11 and Scala 2.13 / org.apache.kafka.connect.mirror.integration.MirrorConnectorsIntegrationExactlyOnceTest.testReplication()
       Build / JDK 11 and Scala 2.13 / kafka.admin.DeleteTopicTest.executionError
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft-Isolated, Name=testAllTopicPartition, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[2] Type=Raft-Combined, Name=testAllTopicPartition, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[3] Type=ZK, Name=testAllTopicPartition, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft-Isolated, Name=testPathToJsonFile, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[2] Type=Raft-Combined, Name=testPathToJsonFile, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[3] Type=ZK, Name=testPathToJsonFile, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft-Isolated, Name=testTopicDoesNotExist, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[2] Type=Raft-Combined, Name=testTopicDoesNotExist, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[3] Type=ZK, Name=testTopicDoesNotExist, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft-Isolated, Name=testPreferredReplicaElection, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[2] Type=Raft-Combined, Name=testPreferredReplicaElection, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[3] Type=ZK, Name=testPreferredReplicaElection, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft-Isolated, Name=testElectionResultOutput, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[2] Type=Raft-Combined, Name=testElectionResultOutput, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[3] Type=ZK, Name=testElectionResultOutput, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft-Isolated, Name=testTopicPartition, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[2] Type=Raft-Combined, Name=testTopicPartition, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[3] Type=ZK, Name=testTopicPartition, MetadataVersion=3.5-IV2, Security=PLAINTEXT
       Build / JDK 11 and Scala 2.13 / kafka.admin.ListOffsetsIntegrationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.admin.ReassignPartitionsIntegrationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.admin.ResetConsumerGroupOffsetTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.AdminClientWithPoliciesIntegrationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.ClientIdQuotaTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.ConsumerBounceTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.ConsumerWithLegacyMessageFormatIntegrationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.DelegationTokenEndToEndAuthorizationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.EndToEndClusterIdTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.GroupCoordinatorIntegrationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.LogAppendTimeTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.PlaintextConsumerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.PlaintextEndToEndAuthorizationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.ProducerFailureHandlingTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.ProducerSendWhileDeletionTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SaslClientsWithInvalidCredentialsTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SaslGssapiSslEndToEndAuthorizationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SaslOAuthBearerSslEndToEndAuthorizationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SaslPlaintextConsumerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SaslSslConsumerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SslConsumerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.SslProducerSendTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.TransactionsBounceTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.TransactionsTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.UserClientIdQuotaTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.api.test.ProducerCompressionTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.integration.MinIsrConfigTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.network.DynamicConnectionQuotaTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.security.authorizer.AclAuthorizerWithZkSaslTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.AdvertiseBrokerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.AlterReplicaLogDirsRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.AlterUserScramCredentialsRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.ControllerMutationQuotaTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.CreateTopicsRequestWithPolicyTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DelegationTokenRequestsOnPlainTextTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DelegationTokenRequestsWithDisableTokenFeatureTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DeleteTopicsRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DescribeClusterRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DescribeLogDirsRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DescribeUserScramCredentialsRequestNotAuthorizedTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.DynamicBrokerReconfigurationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.EdgeCaseRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.FetchRequestDownConversionConfigTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.FetchRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.FetchRequestWithLegacyMessageFormatTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.FinalizedFeatureChangeListenerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.GssapiAuthenticationTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.KafkaMetricReporterClusterIdTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.KafkaMetricReporterExceptionHandlingTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.KafkaMetricsReporterTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.KafkaServerTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.ListOffsetsRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.LogDirFailureTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.LogRecoveryTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.MetadataRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.MultipleListenersWithAdditionalJaasContextTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.OffsetFetchRequestTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.ServerGenerateClusterIdTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.ServerShutdownTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.UpdateFeaturesTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.server.epoch.EpochDrivenReplicationProtocolAcceptanceWithIbp26Test.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.zk.KafkaZkClientTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.zk.migration.ZkAclMigrationClientTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.zk.migration.ZkMigrationClientTest.initializationError
       Build / JDK 11 and Scala 2.13 / kafka.zookeeper.ZooKeeperClientTest.initializationError
       Build / JDK 8 and Scala 2.12 / org.apache.kafka.connect.mirror.integration.DedicatedMirrorIntegrationTest.testMultiNodeCluster()
       Build / JDK 8 and Scala 2.12 / org.apache.kafka.connect.mirror.integration.DedicatedMirrorIntegrationTest.testMultiNodeCluster()
       Build / JDK 11 and Scala 2.13 / org.apache.kafka.controller.QuorumControllerTest.testBalancePartitionLeaders()
       Build / JDK 8 and Scala 2.12 / org.apache.kafka.controller.QuorumControllerTest.testBalancePartitionLeaders()
   ```
   
   In previous build (I've rebuilt it), the failed tests are:
   ```
       Build / JDK 17 and Scala 2.13 / org.apache.kafka.connect.mirror.integration.MirrorConnectorsIntegrationBaseTest.testOffsetTranslationBehindReplicationFlow()
       Build / JDK 17 and Scala 2.13 / org.apache.kafka.controller.QuorumControllerTest.testBalancePartitionLeaders()
       Build / JDK 17 and Scala 2.13 / org.apache.kafka.controller.QuorumControllerTest.testBalancePartitionLeaders()
       Build / JDK 11 and Scala 2.13 / org.apache.kafka.clients.consumer.internals.CooperativeConsumerCoordinatorTest.testOutdatedCoordinatorAssignment()
       Build / JDK 11 and Scala 2.13 / org.apache.kafka.connect.mirror.integration.MirrorConnectorsIntegrationTransactionsTest.testSyncTopicConfigs()
       Build / JDK 11 and Scala 2.13 / kafka.api.TransactionsBounceTest.testWithGroupId()
       Build / JDK 11 and Scala 2.13 / kafka.api.TransactionsTest.testBumpTransactionalEpoch(String).quorum=kraft
       Build / JDK 11 and Scala 2.13 / kafka.log.LogCleanerParameterizedIntegrationTest.[3] codec=snappy
       Build / JDK 11 and Scala 2.13 / org.apache.kafka.controller.QuorumControllerTest.testBalancePartitionLeaders()
   ```


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] showuon merged pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "showuon (via GitHub)" <gi...@apache.org>.
showuon merged PR #13779:
URL: https://github.com/apache/kafka/pull/13779


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] satishd commented on pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "satishd (via GitHub)" <gi...@apache.org>.
satishd commented on PR #13779:
URL: https://github.com/apache/kafka/pull/13779#issuecomment-1569647176

   > For point 2, I think @satishd has some refactoring in mind to add more logic to UnifiedLog as per [#13561 (comment)](https://github.com/apache/kafka/pull/13561#discussion_r1181520975)
   > 
   > > all this logic will go to UnifiedLog in future.
   > 
   > Perhaps, we can perform all the refactoring in one go together later on prior to 3.6 release.
   
   +1 to have (2) for now. It does not need to wait for other refactorings. 


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] divijvaidya commented on pull request #13779: KAFKA-15037: pass remoteLogEnabled to unifiedLog

Posted by "divijvaidya (via GitHub)" <gi...@apache.org>.
divijvaidya commented on PR #13779:
URL: https://github.com/apache/kafka/pull/13779#issuecomment-1568472012

   For point 2, I think @satishd has some refactoring in mind to add more logic to UnifiedLog as per https://github.com/apache/kafka/pull/13561#discussion_r1181520975 
   
   > all this logic will go to UnifiedLog in future.
   
   Perhaps, we can perform all the refactoring in one go together later on prior to 3.6 release.
   
   


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org