Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBBB31758F for ; Fri, 20 Mar 2015 12:35:45 +0000 (UTC) Received: (qmail 63720 invoked by uid 500); 20 Mar 2015 12:35:11 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 63669 invoked by uid 500); 20 Mar 2015 12:35:11 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 63656 invoked by uid 99); 20 Mar 2015 12:35:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2015 12:35:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marc.strapetz@syntevo.com designates 80.67.29.23 as permitted sender) Received: from [80.67.29.23] (HELO smtprelay01.ispgateway.de) (80.67.29.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2015 12:34:44 +0000 Received: from [91.113.179.170] (helo=[192.168.92.23]) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YYw8P-0005lS-Hd; Fri, 20 Mar 2015 13:34:42 +0100 Message-ID: <550C13F3.20704@syntevo.com> Date: Fri, 20 Mar 2015 13:34:59 +0100 From: Marc Strapetz User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Bert Huijben , dev@subversion.apache.org Subject: Re: JavaHL: Exceptions in LogMessageCallback.singleMessage should abort the log immediately References: <550704F9.4090306@syntevo.com> <000c01d06009$cfeef2e0$6fccd8a0$@qqmail.nl> In-Reply-To: <000c01d06009$cfeef2e0$6fccd8a0$@qqmail.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Df-Sender: bWFyYy5zdHJhcGV0ekBzeW50ZXZvLmNvbQ== X-Virus-Checked: Checked by ClamAV on apache.org On 16.03.2015 17:54, Bert Huijben wrote: > > >> -----Original Message----- >> From: Marc Strapetz [mailto:marc.strapetz@syntevo.com] >> Sent: maandag 16 maart 2015 17:30 >> To: dev@subversion.apache.org >> Subject: JavaHL: Exceptions in LogMessageCallback.singleMessage should abort >> the log immediately >> >> If e.g. a RuntimeException is thrown in >> LogMessageCallback#singleMessage, it's not processed in >> LogMessageCallback::singleMessage and the log is continued nevertheless: >> >> (1) At line 77 in LogMessageCallback.cpp, there should be returned an >> appropriate error code. >> >> (2) After line 122, JNIUtil::isJavaExceptionThrown() should be called >> and there should be returned an appropriate error code. >> >> In both cases, the returned error code should result in stopping the >> low-level log; rethrowing the Exception in RemoteSession::getLog won't >> be necessary, as this can be established easily from within client code >> itself. > > This is a common problem that applies to almost all callbacks in JavaHL in <= 1.9. > > A fix for this generic problem has been applied to trunk in r1664938 (further tweaks/extensions in 1664939,1664940,1664978,1664984). > > This introduces some behavior changes (such as the one you noted), so backporting needs discussion here. Thanks for starting the discussion ;-) As JavaHL was reworked significantly for Subversion 1.9, is there a possibility to get this change backported? -Marc