You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2014/02/25 21:24:20 UTC
[jira] [Resolved] (SAMZA-98) ReadableCollector uses both var and
mutable for envelopes
[ https://issues.apache.org/jira/browse/SAMZA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Riccomini resolved SAMZA-98.
----------------------------------
Resolution: Fixed
+1 merged and committed.
Thanks, Steve!
> ReadableCollector uses both var and mutable for envelopes
> ---------------------------------------------------------
>
> Key: SAMZA-98
> URL: https://issues.apache.org/jira/browse/SAMZA-98
> Project: Samza
> Issue Type: Bug
> Components: container
> Affects Versions: 0.6.0
> Reporter: Chris Riccomini
> Assignee: Steve Yates
> Labels: newbie
> Fix For: 0.7.0
>
> Attachments: SAMZA-98.diff
>
>
> The ReadableCollector collector class declares a variable called envelopes, which is both a var (not val), and also a mutable.ArrayBuffer. Typically, mutable array buffers should be vals. Conversely, var variables should be immutable.
> My vote is to make the envelopes variable a val, and keep it a mutable.ArrayBuffer. This variable is used a lot, and keeping a mutable array buffer should (theoretically) result in less garbage in the heap.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)