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 9C118200B38 for ; Fri, 24 Jun 2016 00:21:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9AA29160A69; Thu, 23 Jun 2016 22:21:21 +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 E05EE160A59 for ; Fri, 24 Jun 2016 00:21:20 +0200 (CEST) Received: (qmail 34458 invoked by uid 500); 23 Jun 2016 22:21:20 -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 34449 invoked by uid 99); 23 Jun 2016 22:21:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 22:21:20 +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 3ACD5181254 for ; Thu, 23 Jun 2016 22:21:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BwLLUsPPvzUY for ; Thu, 23 Jun 2016 22:21: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 6BF605FB08 for ; Thu, 23 Jun 2016 22:21:17 +0000 (UTC) Received: (qmail 34371 invoked by uid 99); 23 Jun 2016 22:21: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 22:21:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 602C92C1F60 for ; Thu, 23 Jun 2016 22:21:16 +0000 (UTC) Date: Thu, 23 Jun 2016 22:21:16 +0000 (UTC) From: "Luke Cwik (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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 archived-at: Thu, 23 Jun 2016 22:21:21 -0000 [ https://issues.apache.org/jira/browse/BEAM-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luke Cwik updated BEAM-372: --------------------------- Description: Add a test to CoderProperties that does the following: 1. Encode a value using the Coder in the nested context 2. Decode the value using the Coder in the nested context 3. Verify that the input stream wasn't requested to consume any extra bytes (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*. was: 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*. > 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 > Labels: beginner, newbie, starter > > Add a test to CoderProperties that does the following: > 1. Encode a value using the Coder in the nested context > 2. Decode the value using the Coder in the nested context > 3. Verify that the input stream wasn't requested to consume any extra bytes > (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)