gearpump-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEARPUMP-122) KafkaSource Stuck
Date Fri, 27 May 2016 07:17:12 GMT

    [ https://issues.apache.org/jira/browse/GEARPUMP-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15303691#comment-15303691
] 

ASF GitHub Bot commented on GEARPUMP-122:
-----------------------------------------

Github user huafengw commented on a diff in the pull request:

    https://github.com/apache/incubator-gearpump/pull/25#discussion_r64866016
  
    --- Diff: external/kafka/src/main/java/org/apache/gearpump/streaming/kafka/KafkaSource.java
---
    @@ -0,0 +1,54 @@
    +/*
    + * 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.gearpump.streaming.kafka;
    +
    +import kafka.common.TopicAndPartition;
    +import org.apache.gearpump.streaming.kafka.lib.source.AbstractKafkaSource;
    +import org.apache.gearpump.streaming.kafka.lib.util.KafkaClient;
    +import org.apache.gearpump.streaming.kafka.lib.source.consumer.FetchThread;
    +import org.apache.gearpump.streaming.kafka.util.KafkaConfig;
    +import org.apache.gearpump.streaming.transaction.api.CheckpointStore;
    +import org.apache.gearpump.streaming.transaction.api.TimeReplayableSource;
    +
    +import java.util.Properties;
    +
    +/**
    + * USER API for kafka source connector.
    + * Please refer to {@link AbstractKafkaSource} for detailed descriptions and implementations.
    + */
    +public class KafkaSource extends AbstractKafkaSource implements TimeReplayableSource
{
    +
    +  public KafkaSource(String topic, Properties properties) {
    +    super(topic, properties);
    +  }
    +
    +  // constructor for tests
    +  KafkaSource(String topic, Properties properties,
    +      KafkaConfig.KafkaConfigFactory configFactory,
    +      KafkaClient.KafkaClientFactory clientFactory,
    +      FetchThread.FetchThreadFactory threadFactory) {
    +    super(topic, properties, configFactory, clientFactory, threadFactory);
    +  }
    +
    +  /**
    +   * for tests only
    +   */
    +  void addPartitionAndStore(TopicAndPartition tp, CheckpointStore store) {
    --- End diff --
    
    ```protected```?


> KafkaSource Stuck
> -----------------
>
>                 Key: GEARPUMP-122
>                 URL: https://issues.apache.org/jira/browse/GEARPUMP-122
>             Project: Apache Gearpump
>          Issue Type: Bug
>          Components: kafka
>    Affects Versions: 0.8.0
>            Reporter: Qi Shu
>            Assignee: Manu Zhang
>             Fix For: 0.8.1
>
>         Attachments: 2.png, screenshot-1.png
>
>
> Kafka's version is 2.10-0.8.2.0 and deployed on a cluster of 3 machines. Gearpump's version
is 2.11-0.8.0 and deployed on local mode.
> The app running on gearpump is a java example Kafka2Kafka.
> The topic has millions of messages in It。
> After app started for a while, there were no messages received from kafka, but kafka
console can recevie messages from that topic.
> And if I use the kafka source without offset checkpoint, then messages begin to flow.
> "screenshot-1.png" means app started for 7 minutes  and no messages received from kafka
source.
> "2.png" was a screen shot of JProfiler, I use JProfiler to watch the thread of Gearpump,
and it seems the kafka source stucked when doing offset checkpoint.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message