Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io 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 52D6B162CAA for ; Tue, 25 Jul 2017 18:28:34 +0200 (CEST) Received: (qmail 92095 invoked by uid 500); 25 Jul 2017 16:28:31 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 92070 invoked by uid 99); 25 Jul 2017 16:28:31 -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, 25 Jul 2017 16:28:31 +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 1A0FBC1857 for ; Tue, 25 Jul 2017 16:28:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.4 X-Spam-Level: X-Spam-Status: No, score=-2.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=visualsvn.com 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 vlUlrgexOyYj for ; Tue, 25 Jul 2017 16:28:25 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 16DB260D99 for ; Tue, 25 Jul 2017 16:28:25 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id u139so10071176qka.1 for ; Tue, 25 Jul 2017 09:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=visualsvn.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LnAl0Hs+BOw7FJYWQYaWiaGKSAkLCvjlJ2uzUSZmzII=; b=KETdguRiNpwpc0CgwQxcagtXWg98GJ6Ht3yLraZWqKW2PkR1cng6fTps1oAwreISXH ytDjv3ETRowO/2PY1B91znum6V9+OhX25kNob9lnz8lOTgZ3cltZQigm5qXtaiZV5xfT Y7VUkZbo4BSqtPLlC0QOHXWJEpF5DFttja14Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=LnAl0Hs+BOw7FJYWQYaWiaGKSAkLCvjlJ2uzUSZmzII=; b=Vs+2WzdtyNP7bMWDo96OnxOlu4EziPyFtGMaibpFh5pD3CXRJ0K6lvAM5T5K4e/6m0 14Oxz1Ao20jcJvYZbbpSNmLnEcuDtZ3HdxDi6KqWDeSxpI1W/PvtRuNcpk+mazSXl+N5 q1zsYm8Q0rl+wDZBGhy6n45cAk9uLOjJKqnLrz+Kppk653j6nvSXXGHIYzmcL18Q3JNd OmXERPzAG+pJeSbPkM51QYVeKJhfJVKJyGMeP8UObuydGq6K82Uz5laqz2ADhkxK5kKO qd50nXJUN/nbOhIeruQdEWN4PfU0weYPGBmnxQ+BhMP+mvwghs4yRLdEQLJFx0pnTrd+ 2jHQ== X-Gm-Message-State: AIVw112VXE5JVc1TBf6+7kOtqjy0KUbXjUtzxODIcGgIKDCovLMvBQpb QOjjU2t5i6IE7SZkpC7rfLbeUy89CJAmVUeXIA== X-Received: by 10.55.26.14 with SMTP id a14mr26821518qka.4.1501000104575; Tue, 25 Jul 2017 09:28:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.139.100 with HTTP; Tue, 25 Jul 2017 09:28:04 -0700 (PDT) In-Reply-To: <1500982743.1886944.1051840176.629897B4@webmail.messagingengine.com> References: <20170714111350.B07063A0F99@svn01-us-west.apache.org> <1500300013.520913.1043351984.67FF62A9@webmail.messagingengine.com> <1500982743.1886944.1051840176.629897B4@webmail.messagingengine.com> From: Evgeny Kotkov Date: Tue, 25 Jul 2017 19:28:04 +0300 Message-ID: Subject: Re: svn commit: r1801940 - in /subversion/trunk: ./ notes/ subversion/include/ subversion/include/private/ subversion/libsvn_delta/ subversion/libsvn_fs_fs/ subversion/libsvn_subr/ subversion/tests/libsvn_delta/ subversion/tests/libsvn_subr/ To: Daniel Shahaf Cc: Subversion Development , commits@subversion.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Daniel Shahaf writes: > - I don't see how the fact that =C2=ABSVNCompression "lz4, zlib"=C2=BB mi= ght be > considered too complex to add, affects my arguments about fsfs.conf. > As I said earlier, FSFS f8 does not need to support 1.9 and 1.10 > clients in parallel, so it has no need for a compression negotiation > configuration. Perhaps you could clarify the fsfs part of your > argument? [...] > Yes, there are further changes we could make if we find ourselves adding > more compression algorithms, but it is premature to consider them. At > this point, I simply suggest to add a fsfs.conf "compression" knob, with > the syntax you proposed, that overrides compression-level if both are set= . > We can make further changes as and when. With a bit more thought on this, I agree that providing an explicit knob (compression =3D ...) in fsfs.conf would be more appropriate than what we have now. I had an assumption that it would be nice to keep the configuration in fsfs.conf and in mod_dav_svn working in a similar way. But, as they have different scopes (and only the latter requires negotiation), there is no reason not to have the explicit configuration in fsfs.conf. After al= l, being explicit about what gets written on the disk is better. Let me see what I can come up with regarding the new "compression =3D ..." option. >> While such approach is explicit, it also has a couple of drawbacks, as i= t: >> - leaves a window for mistakes (say, if the user sets "SVNCompression = lz4" >> and inadvertently disables compression for older clients), >> - is not forward-compatible, as new compression algorithms require the >> server to be reconfigured, and >> - adds complexity. > > - We can detect the configuration "SVNCompression lz4" and error out on i= t. (A minor side note for future readers) I think that raising an error in this case might not be the right thing to = do, as this configuration could actually represent what a user wants. For instance, for 10 or 100 Mbps LAN, where the throughput is limited by the slow network, using fast compression can be better than disabling compression altogether. In this case, a user might want to avoid costly zlib compression, but make use of LZ4 with newer clients, and that could be done with "SVNCompression lz4". Regards, Evgeny Kotkov