[
https://issues.apache.org/jira/browse/SAMZA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836967#comment-13836967
]
Chris Riccomini commented on SAMZA-90:
--------------------------------------
Looks like a good start. Some other useful stuff that's worth including in the
toString:
1. The name of the StreamTask class (task.getClass.getName).
2. Whether the task is windowable, and the last window time, if it is.
3. Last commit time.
4. Whether the task is closeable.
5. Number of envelopes in the collector.
I think if you add these, we should be good to go.
> Provide meaningful toString for task instances
> ----------------------------------------------
>
> Key: SAMZA-90
> URL: https://issues.apache.org/jira/browse/SAMZA-90
> Project: Samza
> Issue Type: Improvement
> Components: container
> Affects Versions: 0.6.0
> Reporter: Jakob Homan
> Assignee: Rekha Joshi
> Labels: newbie
> Fix For: 0.7.0
>
> Attachments: SAMZA-90.0.patch
>
>
> Right now if one logs from within a StreamTask, the toString looks a little
> something like this:
> {noformat}
> 2013-11-25 23:34:33 AssembleCallGraph [INFO] In window:
> com.linkedin.samsa.jobs.AssembleCallGraph@5782b9b5{noformat}
> This is less than useful when a container is responsible for more than one
> task instance.
> When creating the task instance we should override toString with the topics
> and partition it is reponsible for, to make it easier to grok during logging.
--
This message was sent by Atlassian JIRA
(v6.1#6144)