beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Chambers (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-372) CoderProperties: Test that the coder doesn't consume more bytes than it produces
Date Thu, 23 Jun 2016 17:14:16 GMT
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)

Mime
View raw message