Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-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 F3C071867C for ; Wed, 9 Dec 2015 01:44:02 +0000 (UTC) Received: (qmail 16293 invoked by uid 500); 9 Dec 2015 01:44:02 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 16239 invoked by uid 500); 9 Dec 2015 01:44:02 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 16220 invoked by uid 99); 9 Dec 2015 01:44:02 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 01:44:02 +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 180451801DA for ; Wed, 9 Dec 2015 01:44:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.447 X-Spam-Level: X-Spam-Status: No, score=0.447 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id k5uenTUYvoI9 for ; Wed, 9 Dec 2015 01:43:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 9464742AA6 for ; Wed, 9 Dec 2015 01:43:47 +0000 (UTC) Received: (qmail 16100 invoked by uid 99); 9 Dec 2015 01:43:47 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 01:43:47 +0000 Received: from [10.17.1.105] (unknown [206.169.106.2]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id E75951A0149 for ; Wed, 9 Dec 2015 01:43:46 +0000 (UTC) From: "Till Westmann" To: dev@asterixdb.incubator.apache.org Subject: IFramewriter state transitions Date: Tue, 08 Dec 2015 17:43:45 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable X-Mailer: MailMate (1.9.3r5187) Hi, When improving test coverage we noticed, that there are some = inconsistencies wrt. state management and transitions in different = implementations of IFramewriter. These inconsistencies cause a number of = test failures - especially when testing error conditions. Ian has = written up a document [1] on the current contract (which is = unfortunately not consistently implemented) and on an alternate contract = that we have discussed. We currently believe that the alternate contract would be preferable as = there is more similarity in the approach to handling errors during = open() or nextFrame(). Our proposal is to 1) Adopt the alternate contract and document it in a) the IFramewriter javadoc and b) a design document. 2) Implement new operators according to the alternate contract. 3) Add mock-based unit tests (e.g. using Mockito [2]) for new operators = that verify that the contract is maintained. 4) Add mock-based using test for existing operators as bugs are found = and fixed. Please take a look at the document and tell us, what you think about the = contract and the approach. Thanks, Abdullah, Ian, Yingyi, and Till [1] = https://docs.google.com/document/d/1QJ8X7QFMMax5D5k9RVje6hoNr_SNZSW9Oshzv= 7DpcQw/edit?usp=3Dsharing [2] http://mockito.org/