Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 49D6C200D29 for ; Thu, 12 Oct 2017 07:11:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4862E160BE3; Thu, 12 Oct 2017 05:11:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8E31E1609E5 for ; Thu, 12 Oct 2017 07:11:05 +0200 (CEST) Received: (qmail 81061 invoked by uid 500); 12 Oct 2017 05:11:04 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 81034 invoked by uid 99); 12 Oct 2017 05:11:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2017 05:11:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 943A0184AE5 for ; Thu, 12 Oct 2017 05:11:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id lZYLM6rxy-Sl for ; Thu, 12 Oct 2017 05:11:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 62F3F5F366 for ; Thu, 12 Oct 2017 05:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5F6FDE04F4 for ; Thu, 12 Oct 2017 05:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 139D921EE3 for ; Thu, 12 Oct 2017 05:11:00 +0000 (UTC) Date: Thu, 12 Oct 2017 05:11:00 +0000 (UTC) From: "Jan Filipiak (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-6056) LogCleaner always cleaning into 1 Segment per sizegroup might exeed relativ offset range MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 Oct 2017 05:11:06 -0000 [ https://issues.apache.org/jira/browse/KAFKA-6056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16201451#comment-16201451 ] Jan Filipiak commented on KAFKA-6056: ------------------------------------- Besides not mentioned in the comment, the code actually checks this condition. since here https://issues.apache.org/jira/browse/KAFKA-4451 So it can only affect users upgrading from before 10.2 that do have a LogSegment where the range is already exeeded inside 1 segment > LogCleaner always cleaning into 1 Segment per sizegroup might exeed relativ offset range > ---------------------------------------------------------------------------------------- > > Key: KAFKA-6056 > URL: https://issues.apache.org/jira/browse/KAFKA-6056 > Project: Kafka > Issue Type: Bug > Components: core, log > Affects Versions: 0.11.0.0 > Reporter: Jan Filipiak > Priority: Minor > > After having an Issue with compaction stopping for some time. It can be an issue that the LogCleaner will always clean into 1 Segment per sizegroup. > Usually the Log enforces a maximum distance between min and max offset in a LogSegment. If that Distance would be exeeded in maybeRoll() a new logsegment would be rolled. I assume this is because relative offset might be stored as integer. The LogCleaner OTOH is not going to roll a new LogSegment as its only ever using 1 Segment to clean into. > A lenghty discussion about this can be found in the slack community: > https://confluentcommunity.slack.com/archives/C49R61XMM/p1506914441000005 > The observed stacktrace is as follows: > https://gist.github.com/brettrann/ce52343692696a45d5b9f4df723bcd14 > I could imagin also enfocing Integer.MAX_VALUE as offset distance in > groupSegmentsBySize in the LogCleaner to make sure a Segment doesnt exeed this limit. -- This message was sent by Atlassian JIRA (v6.4.14#64029)