-
Notifications
You must be signed in to change notification settings - Fork 14.6k
MINOR: Followup KAFKA-19112 document updated #20492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
6fd7862
8a8a0d6
795f1cd
83ca9ba
10a89bf
00b4029
9a76f9f
2e92ab5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1658,7 +1658,7 @@ class Partition(val topicPartition: TopicPartition, | |
def deleteRecordsOnLeader(offset: Long): LogDeleteRecordsResult = inReadLock(leaderIsrUpdateLock) { | ||
leaderLogIfLocal match { | ||
case Some(leaderLog) => | ||
if (!leaderLog.config.delete) | ||
if (!leaderLog.config.delete && leaderLog.config.compact) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @junrao WDYT? We have not discussed the support of |
||
throw new PolicyViolationException(s"Records of partition $topicPartition can not be deleted due to the configured policy") | ||
|
||
val convertedOffset = if (offset == DeleteRecordsRequest.HIGH_WATERMARK) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,9 +136,12 @@ <h5><a id="upgrade_420_notable" href="#upgrade_420_notable">Notable changes in 4 | |
settings. | ||
</li> | ||
<li> | ||
The <code>cleanup.policy</code> is empty and <code>remote.storage.enable</code> is set to true, the | ||
If <code>cleanup.policy</code> is empty and <code>remote.storage.enable</code> is set to true, the | ||
local log segments will be cleaned based on the values of <code>log.local.retention.bytes</code> and | ||
<code>log.local.retention.ms</code>. | ||
<br> | ||
Note that <code>cleanup.policy</code> supports empty values, which means infinite retention. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could remind users that this use case is equivalent to setting |
||
This is equivalent to setting <code>retention.ms=-1</code> and <code>retention.bytes=-1</code>. | ||
</li> | ||
</ul> | ||
</li> | ||
|
Uh oh!
There was an error while loading. Please reload this page.