[
https://issues.apache.org/jira/browse/SAMZA-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169971#comment-14169971
]
bennett andrews commented on SAMZA-163:
---------------------------------------
This has been removed in scala 2.11 as it's been deprecated since 2.10. I was
unable to compile for 2.11 without changing.
incubator-samza/samza-kafka/src/main/scala/org/apache/samza/system/kafka/BrokerProxy.scala:68:
error: type ConcurrentMap is not a member of package scala.collection.mutable
[ant:scalac] val nextOffsets:mutable.ConcurrentMap[TopicAndPartition, Long] =
new ConcurrentHashMap[TopicAndPartition, Long]()
[ant:scalac] ^
> Remove mutable.ConcurrentMap when we stop supporting 2.9
> --------------------------------------------------------
>
> Key: SAMZA-163
> URL: https://issues.apache.org/jira/browse/SAMZA-163
> Project: Samza
> Issue Type: Improvement
> Components: kafka
> Reporter: Jakob Homan
>
> ./gradlew check throws up multiple warnings from the nextOffsets map in
> BrokerProxy:
> {noformat}
> .../BrokerProxy.scala:68: warning: trait ConcurrentMap in package mutable is
> deprecated: Use `scala.collection.concurrent.Map` instead.
> val nextOffsets:mutable.ConcurrentMap[TopicAndPartition, Long] = new
> ConcurrentHashMap[TopicAndPartition, Long]()
> {noformat}
> We can't do the suggested fix since scala.collect.concurrent.Map doesn't
> exist in 2.9, but once we're done with 2.9 we should take a look at this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)