You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2017/08/18 00:42:03 UTC

[jira] [Created] (BEAM-2777) InMemoryStateInternals MapState / SetState should use StructuralValue for membership / key comparison checks

Luke Cwik created BEAM-2777:
-------------------------------

             Summary: InMemoryStateInternals MapState / SetState should use StructuralValue for membership / key comparison checks
                 Key: BEAM-2777
                 URL: https://issues.apache.org/jira/browse/BEAM-2777
             Project: Beam
          Issue Type: Bug
          Components: runner-core, runner-direct
            Reporter: Luke Cwik


InMemoryStateInternals SetState incorrectly compares set membership by using object equality instead of the structural value.

InMemoryStateInternals MapState incorrectly compares key membership based upon key equality instead of structural value of the key equality.

This impacts DirectRunner.

Adding tests which uses byte arrays as the object within the set state and also byte arrays as the keys within a map state would exercise this failure condition.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)