Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-21 Thread via GitHub
mimaison merged PR #15516: URL: https://github.com/apache/kafka/pull/15516 -- 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:

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-21 Thread via GitHub
mimaison commented on PR #15516: URL: https://github.com/apache/kafka/pull/15516#issuecomment-2122934859 None of the test failures seem related, merging to trunk -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-21 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1608274764 ## storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java: ## @@ -331,12 +332,12 @@ public ValidationResult

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-21 Thread via GitHub
mimaison commented on PR #15516: URL: https://github.com/apache/kafka/pull/15516#issuecomment-2122361920 Thanks for the reviews! I had to rebase again so I'll wait for the CI to complete. -- This is an automated message from the Apache Git Service. To respond to the message, please log

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-21 Thread via GitHub
showuon commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1607924069 ## clients/src/main/java/org/apache/kafka/common/config/TopicConfig.java: ## @@ -173,6 +173,14 @@ public class TopicConfig { "accepts 'uncompressed' which is

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-21 Thread via GitHub
showuon commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1607919763 ## storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java: ## @@ -331,12 +332,12 @@ public ValidationResult assignOffsetsNonCompressed(LongRef

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-17 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1605420401 ## core/src/test/scala/unit/kafka/log/LogValidatorTest.scala: ## @@ -1538,7 +1563,80 @@ class LogValidatorTest { assertEquals(e.recordErrors.size, 3) } -

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-17 Thread via GitHub
junrao commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1605313096 ## core/src/test/scala/unit/kafka/log/LogValidatorTest.scala: ## @@ -1538,7 +1563,80 @@ class LogValidatorTest { assertEquals(e.recordErrors.size, 3) } -

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-16 Thread via GitHub
mimaison commented on PR #15516: URL: https://github.com/apache/kafka/pull/15516#issuecomment-2115225074 I also added a couple of new tests in LogValidatorTest to check recompression only happens if the compression codec is different between the records from the producer and the topic

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-16 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1603325731 ## server-common/src/test/java/org/apache/kafka/server/record/BrokerCompressionTypeTest.java: ## @@ -16,23 +16,38 @@ */ package org.apache.kafka.server.record;

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-15 Thread via GitHub
junrao commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1602012880 ## server-common/src/test/java/org/apache/kafka/server/record/BrokerCompressionTypeTest.java: ## @@ -16,23 +16,38 @@ */ package org.apache.kafka.server.record;

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-15 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1601337698 ## clients/src/test/java/org/apache/kafka/common/compress/GzipCompressionTest.java: ## @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-15 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1601283629 ## clients/src/test/java/org/apache/kafka/common/compress/GzipCompressionTest.java: ## @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-15 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1601240696 ## core/src/test/scala/unit/kafka/log/LogValidatorTest.scala: ## @@ -1587,7 +1612,7 @@ class LogValidatorTest { private def createTwoBatchedRecords(magicValue:

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-15 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1601222613 ## clients/src/test/java/org/apache/kafka/common/compress/NoCompressionTest.java: ## @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
junrao commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600483273 ## clients/src/test/java/org/apache/kafka/common/compress/GzipCompressionTest.java: ## @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600267022 ## clients/src/main/java/org/apache/kafka/common/compress/ZstdCompression.java: ## @@ -0,0 +1,143 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600263287 ## clients/src/main/java/org/apache/kafka/common/compress/Lz4Compression.java: ## @@ -0,0 +1,106 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600255317 ## clients/src/main/java/org/apache/kafka/common/compress/NoCompression.java: ## @@ -14,37 +14,48 @@ * See the License for the specific language governing

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600247977 ## clients/src/main/java/org/apache/kafka/common/config/TopicConfig.java: ## @@ -173,6 +173,14 @@ public class TopicConfig { "accepts 'uncompressed' which is

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600241274 ## clients/src/main/java/org/apache/kafka/common/compress/NoCompression.java: ## @@ -14,37 +14,48 @@ * See the License for the specific language governing

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-14 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1600235959 ## storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java: ## @@ -331,12 +332,12 @@ public ValidationResult

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-13 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1598619060 ## clients/src/test/java/org/apache/kafka/common/record/DefaultRecordBatchTest.java: ## @@ -500,27 +501,24 @@ private static Stream

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-13 Thread via GitHub
mimaison commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1598609324 ## clients/src/test/java/org/apache/kafka/common/compress/GzipCompressionTest.java: ## @@ -0,0 +1,82 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-05-02 Thread via GitHub
junrao commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1586920863 ## clients/src/main/java/org/apache/kafka/common/compress/NoCompression.java: ## @@ -14,37 +14,48 @@ * See the License for the specific language governing permissions

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-04-25 Thread via GitHub
showuon commented on code in PR #15516: URL: https://github.com/apache/kafka/pull/15516#discussion_r1579334152 ## clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java: ## @@ -189,7 +189,7 @@ public RecordAccumulator(LogContext logContext,

Re: [PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-04-10 Thread via GitHub
mimaison commented on PR #15516: URL: https://github.com/apache/kafka/pull/15516#issuecomment-2048128916 @divijvaidya It seems you've done a bit of work around compression in the past. Can you take a look? Thanks -- This is an automated message from the Apache Git Service. To respond to

[PR] KAFKA-7632: Support Compression Levels (KIP-390) [kafka]

2024-03-11 Thread via GitHub
mimaison opened a new pull request, #15516: URL: https://github.com/apache/kafka/pull/15516 Based on https://github.com/apache/kafka/pull/5927 ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build