From commits-return-5488-apmail-beam-commits-archive=beam.apache.org@beam.incubator.apache.org Thu Jun 23 17:14:19 2016 Return-Path: X-Original-To: apmail-beam-commits-archive@minotaur.apache.org Delivered-To: apmail-beam-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A28E619457 for ; Thu, 23 Jun 2016 17:14:19 +0000 (UTC) Received: (qmail 84604 invoked by uid 500); 23 Jun 2016 17:14:19 -0000 Delivered-To: apmail-beam-commits-archive@beam.apache.org Received: (qmail 84550 invoked by uid 500); 23 Jun 2016 17:14:19 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 84541 invoked by uid 99); 23 Jun 2016 17:14:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 17:14:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 240C61A059F for ; Thu, 23 Jun 2016 17:14:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TH6z1S2ClBHI for ; Thu, 23 Jun 2016 17:14:18 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 7E8B75FB08 for ; Thu, 23 Jun 2016 17:14:17 +0000 (UTC) Received: (qmail 83949 invoked by uid 99); 23 Jun 2016 17:14:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 17:14:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5C6292C1F74 for ; Thu, 23 Jun 2016 17:14:16 +0000 (UTC) Date: Thu, 23 Jun 2016 17:14:16 +0000 (UTC) From: "Ben Chambers (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (BEAM-372) CoderProperties: Test that the coder doesn't consume more bytes than it produces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ben Chambers created BEAM-372: --------------------------------- Summary: CoderProperties: Test that the coder doesn't consume more bytes than it produces Key: BEAM-372 URL: https://issues.apache.org/jira/browse/BEAM-372 Project: Beam Issue Type: Bug Components: sdk-java-core Reporter: Ben Chambers Assignee: Davor Bonaci Priority: Minor Add a test to CoderProperties that does the following: 1. Encode a value using the Coder 2. Add a byte at the end of the encoded array 3. Decode the value using the Coder 4. Verify the extra byte was not consumed (This could possibly just be an enhancement to the existing round-trip encode/decode test) When this fails it can lead to very difficult to debug situations in a coder wrapped around the problematic coder. This would be an easy test that would clearly fail *for the coder which was problematic*. -- This message was sent by Atlassian JIRA (v6.3.4#6332)