[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16603673#comment-16603673 ] Jungtaek Lim commented on METRON-1588: -- [~nickwallen] Yeah thanks for explaining. I guess I haven't requested contributor role and that's why assigning to me doesn't work. Is it encouraged to request it from dev. mailing list, or someone can take forward in here? > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > Fix For: 0.6.0 > > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16603668#comment-16603668 ] Nick Allen commented on METRON-1588: I was just going through old JIRAs and getting them ready for the next release. I tried to assign this PR to you and you do not have the proper permissions for it to be assigned to you. Feel free to correct that. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Assignee: Nick Allen >Priority: Critical > Fix For: 0.6.0 > > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16603667#comment-16603667 ] Jungtaek Lim commented on METRON-1588: -- [~nickwallen] I'm sorry but could I see the reason why you've just assigned this to you (and the issue is not assigned to me)? I've been contributing various Apache TLP and haven't seen any of project which issue is assigned to neither PR author nor PR committer. A bit strange. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Assignee: Nick Allen >Priority: Critical > Fix For: 0.6.0 > > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16533669#comment-16533669 ] Casey Stella commented on METRON-1588: -- Yep, so marked. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16532848#comment-16532848 ] Jungtaek Lim commented on METRON-1588: -- [~cestella] Kindly reminder. Could we mark this as resolved? > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16513274#comment-16513274 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on the issue: https://github.com/apache/metron/pull/1039 @cestella Thanks for merging! Would you mind to mark Apache issue as resolved (with assigning issue to me) too? Thanks in advance! > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16512683#comment-16512683 ] ASF GitHub Bot commented on METRON-1588: Github user asfgit closed the pull request at: https://github.com/apache/metron/pull/1039 > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16512452#comment-16512452 ] ASF GitHub Bot commented on METRON-1588: Github user cestella commented on the issue: https://github.com/apache/metron/pull/1039 Ok, the 1.2.2 change was run through some performance tests and I'm +1 on this; thanks for the contribution! > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16508924#comment-16508924 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on the issue: https://github.com/apache/metron/pull/1039 Just updated the version. There's no change in pom.xml between 1.2.1 and 1.2.2, hence no change in transitive dependencies. Two files (KafkaSpoutRetryExponentialBackoff.java and Timer.java) are only referring Time.nanoTime() which require hack. So this is unchanged while bumping up the version. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16508835#comment-16508835 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on the issue: https://github.com/apache/metron/pull/1039 @anandsubbu Thanks for doing sanity & performance tests. @cestella Thanks for reviewing. STORM-2994: Before the patch, KafkaSpout cannot commit `null tuple`, which means it can still consume messages but doesn't commit offsets, and probably eventually stuck. I'll update the PR to include storm-kafka-client 1.2.2. Thanks again! > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16508136#comment-16508136 ] ASF GitHub Bot commented on METRON-1588: Github user cestella commented on the issue: https://github.com/apache/metron/pull/1039 I think I'm ready to +1 this. I wouldn't mind going to 1.2.2. Of those, I'm most concerned about STORM-2994. Can you characterize the risk of that happening? > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16506037#comment-16506037 ] ASF GitHub Bot commented on METRON-1588: Github user anandsubbu commented on the issue: https://github.com/apache/metron/pull/1039 I ran a few performance tests comparing ver 1.1.0 and 1.2.1 on the enrichment topology using the [load_tool](https://github.com/apache/metron/blob/master/metron-contrib/metron-performance/README.md). The EPS numbers for 1.2.1 are seen to be on-par or better than 1.1.0. However, I noticed that the Avg CPU usage is higher on 1.2.1 (about 70%) as compared to 1.1.0 (about 40%). > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16504051#comment-16504051 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on the issue: https://github.com/apache/metron/pull/1039 Would you mind if I propose upgrading storm-kafka-client version to 1.2.2? There's no feature addition on storm-kafka-client but three issues were fixed. * [STORM-2994](https://issues.apache.org/jira/browse/STORM-2994) - KafkaSpout consumes messages but doesn't commit offsets * [STORM-3043](https://issues.apache.org/jira/browse/STORM-3043) - NullPointerException thrown in SimpleRecordTranslator.apply() * [STORM-3059](https://issues.apache.org/jira/browse/STORM-3059) - KafkaSpout throws NPE when hitting a null tuple if the processing guarantee is not AT_LEAST_ONCE They're neither blocker nor critical, so the storm-kafka-client module is on the way to stabilize. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16501956#comment-16501956 ] ASF GitHub Bot commented on METRON-1588: Github user cestella commented on the issue: https://github.com/apache/metron/pull/1039 I'm holding a +1 on this until we've gotten a chance to performance test this to ensure there's no unexpected issues. I'll keep everyone informed here when that's done. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16499975#comment-16499975 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on a diff in the pull request: https://github.com/apache/metron/pull/1039#discussion_r192684452 --- Diff: metron-platform/metron-storm-kafka-override/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutRetryExponentialBackoff.java --- @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.storm.kafka.spout; + +import org.apache.kafka.common.TopicPartition; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.Serializable; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.TimeUnit; +import org.apache.commons.lang.Validate; +import org.apache.kafka.clients.consumer.ConsumerRecord; + +/** + * Implementation of {@link KafkaSpoutRetryService} using the exponential backoff formula. The time of the nextRetry is set as follows: + * nextRetry = failCount == 1 ? currentTime + initialDelay : currentTime + delayPeriod*2^(failCount-1)where failCount = 1, 2, 3, ... + * nextRetry = Min(nextRetry, currentTime + maxDelay) + */ +public class KafkaSpoutRetryExponentialBackoff implements KafkaSpoutRetryService { --- End diff -- @ottobackwards Got it. Thanks for referring. Just updated the PR. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497959#comment-16497959 ] ASF GitHub Bot commented on METRON-1588: Github user ottobackwards commented on a diff in the pull request: https://github.com/apache/metron/pull/1039#discussion_r192388917 --- Diff: metron-platform/metron-storm-kafka-override/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutRetryExponentialBackoff.java --- @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.storm.kafka.spout; + +import org.apache.kafka.common.TopicPartition; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.Serializable; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.TimeUnit; +import org.apache.commons.lang.Validate; +import org.apache.kafka.clients.consumer.ConsumerRecord; + +/** + * Implementation of {@link KafkaSpoutRetryService} using the exponential backoff formula. The time of the nextRetry is set as follows: + * nextRetry = failCount == 1 ? currentTime + initialDelay : currentTime + delayPeriod*2^(failCount-1)where failCount = 1, 2, 3, ... + * nextRetry = Min(nextRetry, currentTime + maxDelay) + */ +public class KafkaSpoutRetryExponentialBackoff implements KafkaSpoutRetryService { --- End diff -- https://github.com/apache/nifi/blob/master/NOTICE See references to code from other projects like hadoop > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497404#comment-16497404 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on a diff in the pull request: https://github.com/apache/metron/pull/1039#discussion_r192274429 --- Diff: metron-platform/metron-storm-kafka-override/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutRetryExponentialBackoff.java --- @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.storm.kafka.spout; + +import org.apache.kafka.common.TopicPartition; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.Serializable; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.TimeUnit; +import org.apache.commons.lang.Validate; +import org.apache.kafka.clients.consumer.ConsumerRecord; + +/** + * Implementation of {@link KafkaSpoutRetryService} using the exponential backoff formula. The time of the nextRetry is set as follows: + * nextRetry = failCount == 1 ? currentTime + initialDelay : currentTime + delayPeriod*2^(failCount-1)where failCount = 1, 2, 3, ... + * nextRetry = Min(nextRetry, currentTime + maxDelay) + */ +public class KafkaSpoutRetryExponentialBackoff implements KafkaSpoutRetryService { --- End diff -- Added comment. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497398#comment-16497398 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on a diff in the pull request: https://github.com/apache/metron/pull/1039#discussion_r192273701 --- Diff: metron-platform/metron-storm-kafka-override/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutRetryExponentialBackoff.java --- @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.storm.kafka.spout; + +import org.apache.kafka.common.TopicPartition; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.Serializable; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.TimeUnit; +import org.apache.commons.lang.Validate; +import org.apache.kafka.clients.consumer.ConsumerRecord; + +/** + * Implementation of {@link KafkaSpoutRetryService} using the exponential backoff formula. The time of the nextRetry is set as follows: + * nextRetry = failCount == 1 ? currentTime + initialDelay : currentTime + delayPeriod*2^(failCount-1)where failCount = 1, 2, 3, ... + * nextRetry = Min(nextRetry, currentTime + maxDelay) + */ +public class KafkaSpoutRetryExponentialBackoff implements KafkaSpoutRetryService { --- End diff -- I guess we don't strictly need to describe it to the NOTICE file, since it is pretty common for ASF project to pull file from another project, and modify it. Sometimes this brings complain in back channel, but if my understanding is right, it is just allowed from the ASLv2 license definition. In many cases people add the comment "the class is inspired by blabla..." if the file is modified. In other cases people don't describe the fact that the file is pulled from another project. I believe former would be nicer and it's the way to respect original author and project. So I'll add the comment in the class for now. @ottobackwards Please suggest which sentence is proper to add to NOTICE file. I'll follow your suggestion. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497262#comment-16497262 ] ASF GitHub Bot commented on METRON-1588: Github user cestella commented on the issue: https://github.com/apache/metron/pull/1039 I ran this up in full-dev and data flowed through just fine with no errors in the storm logs for any of the topologies. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497118#comment-16497118 ] ASF GitHub Bot commented on METRON-1588: Github user ottobackwards commented on a diff in the pull request: https://github.com/apache/metron/pull/1039#discussion_r192225526 --- Diff: metron-platform/metron-storm-kafka-override/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutRetryExponentialBackoff.java --- @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.storm.kafka.spout; + +import org.apache.kafka.common.TopicPartition; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.Serializable; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.TimeUnit; +import org.apache.commons.lang.Validate; +import org.apache.kafka.clients.consumer.ConsumerRecord; + +/** + * Implementation of {@link KafkaSpoutRetryService} using the exponential backoff formula. The time of the nextRetry is set as follows: + * nextRetry = failCount == 1 ? currentTime + initialDelay : currentTime + delayPeriod*2^(failCount-1)where failCount = 1, 2, 3, ... + * nextRetry = Min(nextRetry, currentTime + maxDelay) + */ +public class KafkaSpoutRetryExponentialBackoff implements KafkaSpoutRetryService { --- End diff -- There should also be something in the NOTICE file > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497117#comment-16497117 ] ASF GitHub Bot commented on METRON-1588: Github user cestella commented on a diff in the pull request: https://github.com/apache/metron/pull/1039#discussion_r192225407 --- Diff: metron-platform/metron-storm-kafka-override/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutRetryExponentialBackoff.java --- @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.storm.kafka.spout; + +import org.apache.kafka.common.TopicPartition; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.Serializable; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.TimeUnit; +import org.apache.commons.lang.Validate; +import org.apache.kafka.clients.consumer.ConsumerRecord; + +/** + * Implementation of {@link KafkaSpoutRetryService} using the exponential backoff formula. The time of the nextRetry is set as follows: + * nextRetry = failCount == 1 ? currentTime + initialDelay : currentTime + delayPeriod*2^(failCount-1)where failCount = 1, 2, 3, ... + * nextRetry = Min(nextRetry, currentTime + maxDelay) + */ +public class KafkaSpoutRetryExponentialBackoff implements KafkaSpoutRetryService { --- End diff -- Can you put a comment in this class about why this is pulled from Storm and placed here? Just for posterity. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497106#comment-16497106 ] ASF GitHub Bot commented on METRON-1588: Github user cestella commented on the issue: https://github.com/apache/metron/pull/1039 So, this is awesome! I'll spin it up in full-dev and test it out for you today. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16495877#comment-16495877 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on the issue: https://github.com/apache/metron/pull/1039 I've rebased to change commit titles slightly, so the build is re-triggered. The build was succeed before rebasing. Travis build in my folk: https://travis-ci.org/HeartSaVioR/metron/builds/385935022 > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16495871#comment-16495871 ] ASF GitHub Bot commented on METRON-1588: Github user HeartSaVioR commented on the issue: https://github.com/apache/metron/pull/1039 I've seen Travis CI succeeded in my fork, but unfortunately I don't know how to do manual test with full dev. Much appreciated if reviewers could do the manual validation phase. > Migrate storm-kafka-client to 1.2.1 > --- > > Key: METRON-1588 > URL: https://issues.apache.org/jira/browse/METRON-1588 > Project: Metron > Issue Type: Improvement >Reporter: Jungtaek Lim >Priority: Critical > > Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says > 1.2.0 to be stabled one, because Storm community resolved 40 issues including > critical and blocker from 1.2.0. > There're still couple of issues after 1.2.0 so better to sync up the version > to the latest, so I suggest Metron to upgrade the version to the latest, > 1.2.1. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (METRON-1588) Migrate storm-kafka-client to 1.2.1
[ https://issues.apache.org/jira/browse/METRON-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16495838#comment-16495838 ] ASF GitHub Bot commented on METRON-1588: GitHub user HeartSaVioR opened a pull request: https://github.com/apache/metron/pull/1039 METRON-1588 Migrate storm-kafka-client to 1.2.1 ## Contributor Comments Storm community defines storm-kafka-client 1.1.0 to be "unstable" and says 1.2.0 to be stabled one, because Storm community resolved 40 issues including critical and blocker from 1.2.0. There're still couple of issues after 1.2.0 so better to sync up the version to the latest, so I suggest Metron to upgrade the version to the latest, 1.2.1. ## Pull Request Checklist Thank you for submitting a contribution to Apache Metron. Please refer to our [Development Guidelines](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61332235) for the complete guide to follow for contributions. Please refer also to our [Build Verification Guidelines](https://cwiki.apache.org/confluence/display/METRON/Verifying+Builds?show-miniview) for complete smoke testing guides. In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following: ### For all changes: - [ ] Is there a JIRA ticket associated with this PR? If not one needs to be created at [Metron Jira](https://issues.apache.org/jira/browse/METRON/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel). - [ ] Does your PR title start with METRON- where is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character. - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)? ### For code changes: - [ ] Have you included steps to reproduce the behavior or problem that is being changed or addressed? - [ ] Have you included steps or a guide to how the change may be verified and tested manually? - [ ] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via: ``` mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh ``` - [ ] Have you written or updated unit tests and or integration tests to verify your changes? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent? ### For documentation related changes: - [ ] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via `site-book/target/site/index.html`: ``` cd site-book mvn site ``` Note: Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible. It is also recommended that [travis-ci](https://travis-ci.org) is set up for your personal repository such that your branches are built there before submitting a pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/HeartSaVioR/metron METRON-1588-with-relocation Alternatively you can review and apply these changes as the patch at: https://github.com/apache/metron/pull/1039.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1039 commit 0382fcc71bdfe29588a2913680f9f9a87e68db16 Author: Jungtaek Lim Date: 2018-05-29T01:01:54Z Upgrade storm-kafka-client to 1.2.1 * this incurs additional transitive dependencies * com.fasterxml.jackson.core:jackson-databind:jar:2.6.3:compile * com.google.guava:guava:jar:16.0.1:compile * commons-lang:commons-lang:jar:2.5:compile commit 056dcabdb634bc6756b52ea4e96fbda1bf0e2e5f Author: Jungtaek Lim Date: 2018-05-29T04:14:35Z Relocate new transitive dependencies from storm-kafka-client commit a586c47f86a1354bc6d8764e44af8750f7de010d Author: Jungtaek Lim Date: 2018-05-29T05:58:09Z Remove unnecessary version properties / conflicted dependency commit 4c43cf0ea39e0ebedefb5c2e31f4940bbec7a696 Author: Jungtaek Lim Date: 2018-05-29T06:45:31Z Fix dependency to avoid adding unnecessary dependency commit baf76f3cb5478ee56ddfc3a5cc301743e317044f Author: Jungtaek Lim Date: 2018-05-29T07:36:01Z Update dependencies > Migrate storm-kafka-client