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 09211200D09 for ; Tue, 12 Sep 2017 16:36:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 076C01609C6; Tue, 12 Sep 2017 14:36: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 548991609C7 for ; Tue, 12 Sep 2017 16:36:05 +0200 (CEST) Received: (qmail 40944 invoked by uid 500); 12 Sep 2017 14:36:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 40933 invoked by uid 99); 12 Sep 2017 14:36:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2017 14:36:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6CFA5D33ED for ; Tue, 12 Sep 2017 14:36:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BZo1GnpqnV_H for ; Tue, 12 Sep 2017 14:36:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 514FB5FDCE for ; Tue, 12 Sep 2017 14:36:02 +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 81367E0EFC for ; Tue, 12 Sep 2017 14:36:01 +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 B61B824167 for ; Tue, 12 Sep 2017 14:36:00 +0000 (UTC) Date: Tue, 12 Sep 2017 14:36:00 +0000 (UTC) From: =?utf-8?Q?Andr=C3=A9s_de_la_Pe=C3=B1a_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-13622) Better config validation/documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 12 Sep 2017 14:36:06 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13622?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andr=C3=A9s de la Pe=C3=B1a updated CASSANDRA-13622: ------------------------------------------ Resolution: Fixed Fix Version/s: (was: 4.0) 4.x 3.11.x 3.0.x Status: Resolved (was: Ready to Commit) > Better config validation/documentation > -------------------------------------- > > Key: CASSANDRA-13622 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1362= 2 > Project: Cassandra > Issue Type: Bug > Components: Configuration > Reporter: Kurt Greaves > Assignee: ZhaoYang > Priority: Minor > Labels: lhf > Fix For: 3.0.x, 3.11.x, 4.x > > > There are a number of properties in the yaml that are "in_mb", however re= solve to bytes when calculated in {{DatabaseDescriptor.java}}, but are stor= ed in int's. This means that their maximum values are 2047, as any higher w= hen converted to bytes overflows the int. > Where possible/reasonable we should convert these to be long's, and store= d as long's. If there is no reason for the value to ever be >2047 we should= at least document that as the max value, or better yet make it error if se= t higher than that. Noting that although it's bad practice to increase a lo= t of them to such high values, there may be cases where it is necessary and= in which case we should handle it appropriately rather than overflowing an= d surprising the user. That is, causing it to break but not in the way the = user expected it to :) > Following are functions that currently could be at risk of the above: > {code:java|title=3DDatabaseDescriptor.java} > getThriftFramedTransportSize() > getMaxValueSize() > getCompactionLargePartitionWarningThreshold() > getCommitLogSegmentSize() > getNativeTransportMaxFrameSize() > # These are in KB so max value of 2096128 > getBatchSizeWarnThreshold() > getColumnIndexSize() > getColumnIndexCacheSize() > getMaxMutationSize() > {code} > Note we may not actually need to fix all of these, and there may be more.= This was just from a rough scan over the code. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org