Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1DFD7200B5B for ; Fri, 5 Aug 2016 17:29:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1C8CC160A8E; Fri, 5 Aug 2016 15:29:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3B85D160A64 for ; Fri, 5 Aug 2016 17:29:28 +0200 (CEST) Received: (qmail 8992 invoked by uid 500); 5 Aug 2016 15:29:27 -0000 Mailing-List: contact notifications-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list notifications@asterixdb.apache.org Received: (qmail 8983 invoked by uid 99); 5 Aug 2016 15:29:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 15:29:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E6278C0A8F for ; Fri, 5 Aug 2016 15:29:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.467 X-Spam-Level: X-Spam-Status: No, score=-4.467 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8XqpV-APZn4T for ; Fri, 5 Aug 2016 15:29:26 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 0DB3C5F2EE for ; Fri, 5 Aug 2016 15:29:24 +0000 (UTC) Received: (qmail 5026 invoked by uid 99); 5 Aug 2016 15:29:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 15:29:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7F57A2C0033 for ; Fri, 5 Aug 2016 15:29:20 +0000 (UTC) Date: Fri, 5 Aug 2016 15:29:20 +0000 (UTC) From: "Wail Alkowaileet (JIRA)" To: notifications@asterixdb.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ASTERIXDB-1565) Twitter Feed not working properly after feed update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 05 Aug 2016 15:29:29 -0000 [ https://issues.apache.org/jira/browse/ASTERIXDB-1565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409583#comment-15409583 ] Wail Alkowaileet edited comment on ASTERIXDB-1565 at 8/5/16 3:28 PM: --------------------------------------------------------------------- I found this bug as well. It seems that there are some "race condition". I solved the problem by making the method start() synchronized in: {noformat} org.apache.asterix.external.dataflow.FeedRecordDataFlowController {noformat} It's probably not the best way to do it. But I needed to do a demo and that's the quickest solution. was (Author: wyk): I found this bug as well. It seems that there are some "race condition". I solved the problem by making the method start() synchronized in: {nofromat} org.apache.asterix.external.dataflow.FeedRecordDataFlowController {noformat} It's probably not the best way to do it. But I needed to do a demo and that's the quickest solution. > Twitter Feed not working properly after feed update > --------------------------------------------------- > > Key: ASTERIXDB-1565 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1565 > Project: Apache AsterixDB > Issue Type: Bug > Components: Feeds > Reporter: Xikui Wang > > I found the Twitter Feed is not working properly after the recent modifications to the feed part. Following exceptions is captured using the twitter feed example on our website. > > 2016-08-05 22:02:07,424 WARN [pool-21-thread-1] dataflow.FeedRecordDataFlowController (FeedRecordDataFlowController.java:start(101)) - Failure while operating a feed source > java.lang.IllegalMonitorStateException > at java.lang.Object.wait(Native Method) > at org.apache.asterix.external.dataflow.FeedRecordDataFlowController.start(FeedRecordDataFlowController.java:87) > at org.apache.asterix.external.dataset.adapter.FeedAdapter.start(FeedAdapter.java:36) > at org.apache.asterix.external.feed.runtime.AdapterExecutor.run(AdapterExecutor.java:57) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > 2016-08-05 22:02:07,425 ERROR [pool-21-thread-1] runtime.AdapterExecutor (AdapterExecutor.java:run(61)) - Exception during feed ingestion > org.apache.hyracks.api.exceptions.HyracksDataException: null > at org.apache.asterix.external.dataflow.FeedRecordDataFlowController.start(FeedRecordDataFlowController.java:102) > at org.apache.asterix.external.dataset.adapter.FeedAdapter.start(FeedAdapter.java:36) > at org.apache.asterix.external.feed.runtime.AdapterExecutor.run(AdapterExecutor.java:57) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.IllegalMonitorStateException > at java.lang.Object.wait(Native Method) > at org.apache.asterix.external.dataflow.FeedRecordDataFlowController.start(FeedRecordDataFlowController.java:87) > ... 5 more > org.apache.hyracks.api.exceptions.HyracksDataException: java.util.ConcurrentModificationException > at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.runInParallel(SuperActivityOperatorNodePushable.java:218) > at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.initialize(SuperActivityOperatorNodePushable.java:83) > at org.apache.hyracks.control.nc.Task.run(Task.java:263) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.util.concurrent.ExecutionException: java.util.ConcurrentModificationException > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:192) > at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.runInParallel(SuperActivityOperatorNodePushable.java:212) > ... 5 more > Caused by: java.util.ConcurrentModificationException > at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) > at java.util.ArrayList$Itr.next(ArrayList.java:851) > at org.apache.asterix.external.feed.runtime.IngestionRuntime.terminate(IngestionRuntime.java:78) > at org.apache.asterix.external.operators.FeedIntakeOperatorNodePushable.initialize(FeedIntakeOperatorNodePushable.java:107) > at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.lambda$initialize$0(SuperActivityOperatorNodePushable.java:83) > at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable$1.call(SuperActivityOperatorNodePushable.java:205) > at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable$1.call(SuperActivityOperatorNodePushable.java:202) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > ... 3 more > 2016-08-05 22:02:07,438 INFO [ActiveJobNotificationHandler] management.FeedEventsListener (FeedEventsListener.java:handleJobFinishEvent(132)) - Intake Job finished for feed intake JID:23 > 2016-08-05 22:02:07,439 INFO [ActiveJobNotificationHandler] management.FeedEventsListener (FeedEventsListener.java:deregisterFeedIntakeJob(191)) - Deregistered feed intake job [JID:23] > Aug 05, 2016 10:02:07 PM org.apache.hyracks.control.nc.Joblet close > WARNING: Freeing leaked 16384 bytes > 2016-08-05 22:02:07,445 INFO [ActiveJobNotificationHandler] management.FeedEventsListener (FeedEventsListener.java:handleJobFinishEvent(126)) - Collect Job finished for JID:24 [FEED_CONNECT] > 2016-08-05 22:02:07,446 INFO [ActiveJobNotificationHandler] management.FeedEventsListener (FeedEventsListener.java:handleFeedCollectJobFinishMessage(384)) - Subscription feeds.TwitterFeed(Feed)-->Tweets completed successfully. Removed subscription > -- This message was sent by Atlassian JIRA (v6.3.4#6332)