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 4F05F200B88 for ; Thu, 22 Sep 2016 13:29:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4DAF4160AD0; Thu, 22 Sep 2016 11:29:58 +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 8CAFE160AAD for ; Thu, 22 Sep 2016 13:29:57 +0200 (CEST) Received: (qmail 77841 invoked by uid 500); 22 Sep 2016 11:29:56 -0000 Mailing-List: contact dev-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 dev@cassandra.apache.org Received: (qmail 77819 invoked by uid 99); 22 Sep 2016 11:29:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 11:29:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7AC5BC05C0 for ; Thu, 22 Sep 2016 11:29:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=datastax.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id OurJqXmKhycf for ; Thu, 22 Sep 2016 11:29:53 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id F0AD160D25 for ; Thu, 22 Sep 2016 11:29:52 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id r192so154228057ita.0 for ; Thu, 22 Sep 2016 04:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datastax.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RKrSdfYPiHY5GvmrGZw4sGZfeOwOZFIg0wfmJ3Hox50=; b=tiyn+nUDfKUoMaI/tIubKDgMFtta1IpFt7a4Sm/Z2DiN7n9tkfYf+Rkg5MXZm1i+JH /2ZoRRMT19t0mNNOh+um3puBdqEv6YjRvQJFO9vkezunh4q9Yvpwx16kPzUnNnwiSAW1 MHqSSUXXdsrS/SVv+LMRBIpu+GNK0C/WwubZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RKrSdfYPiHY5GvmrGZw4sGZfeOwOZFIg0wfmJ3Hox50=; b=IdYFxcK/qcSTpneQjRNNafGKDu+6bho5ab4HkoIJ/p2oHdXxGUMhdFtknNuclunqpc PuU+CKPAy/7qrK+d+CTpew5AnY0dpaZ+beM/grmwO/5KorbyVVoe3FwW0xiG5xOzPI9I wPMhwgSndJCsC/mRGD73lI6d8ABnOBNdSHYxVUf6BsvbXYKhsPMhb+70tYMF7lvNtF6v BS6B4wTwKKdLRruQcFgYVPx+7qD9ulEhnkTVkv6KJgufPsqmjXrIx1ZdbHrj0BvHN8/d euRFuNhV3imbS6gYF+if5oVqZUaa5X038AKZb6FgOMlUa1YhYu0wu/mKZLnAD0vp/Fxw 5I7Q== X-Gm-Message-State: AE9vXwM1n+r72qk2zSZxtEanxGGkc/fgvbTUHszrAvFWwLB9urwoDuzTfkbFPeo71FdSOhm/8Fo6XamAokSfMD9F X-Received: by 10.36.103.194 with SMTP id u185mr10533478itc.6.1474543791545; Thu, 22 Sep 2016 04:29:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.131.169 with HTTP; Thu, 22 Sep 2016 04:29:50 -0700 (PDT) In-Reply-To: References: <0BFC983D-518E-4CE2-B4EE-BD369068E1A5@internalcircle.com> <7968A06F-863D-4682-A838-B6654E46A208@internalcircle.com> From: Benjamin Lerer Date: Thu, 22 Sep 2016 13:29:50 +0200 Message-ID: Subject: Re: Question on assert To: dev@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114a966ee6b8b6053d16fa9b archived-at: Thu, 22 Sep 2016 11:29:58 -0000 --001a114a966ee6b8b6053d16fa9b Content-Type: text/plain; charset=UTF-8 I fully agree. On Thu, Sep 22, 2016 at 11:57 AM, Dave Brosius wrote: > As an aside, C* for some reason heavily uses asserts in unit tests, which > adds to the "can't see the forest for the trees" problem. I see no reason > for that. they should all be moved over to junit asserts. > > > > On 09/22/2016 03:52 AM, Benjamin Lerer wrote: > >> We can spend hours arguing about assert vs exceptions. I have seen it >> happen in every company I worked for. >> Overall, based on the patches I have reviewed, it seems to me that in >> general people are using them only has internal safety checks. >> Unfortunatly, the code change and we can miss things. >> If anybody think that some SPECIFIC assertions should be replaced by some >> real checks, I think the best way to do it is to open a JIRA ticket to >> raise the problem. >> >> > --001a114a966ee6b8b6053d16fa9b--