[
https://issues.apache.org/jira/browse/SAMZA-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545485#comment-16545485
]
Jake Maes commented on SAMZA-1770:
----------------------------------
+1, thanks for reporting.
[~pmaheshwari] it looks like the Impl class already does that. Is there any
reason the interface shouldn't be updated for the next major release as well?
> TaskContext#getStore should return KeyValueStore not Object
> -----------------------------------------------------------
>
> Key: SAMZA-1770
> URL: https://issues.apache.org/jira/browse/SAMZA-1770
> Project: Samza
> Issue Type: Task
> Components: kv-store
> Affects Versions: 0.13.0, 0.14.0, 0.13.1, 0.14.1
> Reporter: Sardana Nazarova
> Priority: Minor
> Labels: easyfix, newbie
>
> When setting custom made store not implementing
> org.apache.samza.storage.kv.KeyValueStore interface, job fails with
> CastCastException at TaskContext#getStore. Since getStore actually returns
> KeyValueStore object, the method's signature must be changed to
> {noformat}
> KeyValueStore getStore(String name);{noformat}
> as in org.apache.samza.container.TaskContextImpl.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)