You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Jayapriya Surendran (JIRA)" <ji...@apache.org> on 2015/11/16 00:39:11 UTC
[jira] [Resolved] (STORM-679) Enforce JDK 1.7 for storm-kafka
[ https://issues.apache.org/jira/browse/STORM-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jayapriya Surendran resolved STORM-679.
---------------------------------------
Resolution: Duplicate
Fixed by STORM-670 and STORM-842
> Enforce JDK 1.7 for storm-kafka
> -------------------------------
>
> Key: STORM-679
> URL: https://issues.apache.org/jira/browse/STORM-679
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-kafka
> Affects Versions: 0.10.0
> Reporter: Jayapriya Surendran
> Assignee: Jayapriya Surendran
> Priority: Minor
>
> ExponentialBackoffMsgRetryManager.java uses Long.compare(long1, long2) method which is specific to JDK 7.
> {code}
> public int compare(MessageRetryRecord record1, MessageRetryRecord record2) {
> return Long.compare(record1.retryTimeUTC, record2.retryTimeUTC);
> }
> {code}
> As per the comment in this commit https://github.com/apache/storm/commit/fd066985a74c3140f61a465cfc49c83a6ddfa713
> we should enforce JDK 1.7 as the minimum requirement for storm-kafka.
> Alternate fix is to change Long.compare() method to Long.compareTo() which is compatible with JDK 1.6.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)