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 A1E2C200BBD for ; Tue, 8 Nov 2016 16:00:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A068B160B0A; Tue, 8 Nov 2016 15:00:15 +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 E98C1160AFA for ; Tue, 8 Nov 2016 16:00:14 +0100 (CET) Received: (qmail 95920 invoked by uid 500); 8 Nov 2016 15:00:13 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 95902 invoked by uid 99); 8 Nov 2016 15:00:13 -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; Tue, 08 Nov 2016 15:00:13 +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 E01E1CA11B for ; Tue, 8 Nov 2016 15:00:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.148 X-Spam-Level: X-Spam-Status: No, score=0.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-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 Xy6jeOFN7KH8 for ; Tue, 8 Nov 2016 15:00:11 +0000 (UTC) Received: from mail-ua0-f172.google.com (mail-ua0-f172.google.com [209.85.217.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 881F95F47A for ; Tue, 8 Nov 2016 15:00:10 +0000 (UTC) Received: by mail-ua0-f172.google.com with SMTP id 12so148955596uas.2 for ; Tue, 08 Nov 2016 07:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=z/Lz6h/9oxaG/UePuJR9taboDQAyptvnPEqH9+t0N2A=; b=fZBb5JlM+ecPDaYS5qAI9gePEGvsoEHjr2ie4XDkE3FwnHL/1qhKN2GB5XNdF03r+m kH/7ieTGOqsP5t2IbNnHm+fPS6THtu2wcIY3YvSJmgHj96S0lwHaZe69CgsVVNT96S5Z ukkfuEsc9atMu35Ex8vF1OB0kc9og6or0KjY8cMVWPYWajkPZmWcOoINqsNBMatgpe3B tQWiawDHnl8/W6WvRvgcxC/DJijo+T7aOBJxvtAM05VxdTwshQKGIk+ISugmtLWLi6z5 YAxJKuZZut2OxMk9wAHNh+6zcPWRca/hD6QvvW1hJ9chBsk+fIX71PB40B9Cd5fKsmyA vjjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z/Lz6h/9oxaG/UePuJR9taboDQAyptvnPEqH9+t0N2A=; b=HuYlw4KfT/p047Go9ijkX1F0o9hpYHfGmlSZh61qOajDcim5bLqWo0qg037R2j9pYk kfn01SNGU49wJUxd6ATluaQHbe/5/vfoMLK7gbRUqvm6bBC9pBnXo/OvfXPdybVKpVf6 zPhMxpIGKtSy97IILGAPxUHro7hhl23oJovgB0GIDGUtp4PvwVh735ew+H+qbO6/IfKL GfWh9tzj2m0p41SCJCZGjKSxU2BBMUzbb6edxl6hj06m6kOopBKvhJ1Ujc2HtqyUrmbu sByKDLmwzTXeBjdilEGKtKo1jE+oEhPy75fMZ11APWTHtp3FEHxMWwxRSk5i1iEK+egt +u3A== X-Gm-Message-State: ABUngvesEuwZ9clJH8RVbi4OwkWUOTHZ49Vb7xiX+snBnRxOYBAHP/mAHDxC4eULBnpBzLk5uoOOhCjfoI0rYQ== X-Received: by 10.176.84.150 with SMTP id p22mr8446338uaa.50.1478617209225; Tue, 08 Nov 2016 07:00:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.218.7 with HTTP; Tue, 8 Nov 2016 07:00:08 -0800 (PST) From: nelson rivera Date: Tue, 8 Nov 2016 10:00:08 -0500 Message-ID: Subject: Free instance of agreggate with cas multiplier in MultiprocessingAnalysisEngine To: user@uima.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 08 Nov 2016 15:00:15 -0000 I have a aggregate analysis engine that contains a casmultiplier annotator. I instantiate this aggregate with the interface UIMAFramework.produceAnalysisEngine(specifier, 1, 0) for multithreaded processing. The casmultiplier generate more than one cas for each input CAS. The issue is that after first cas child, that i get with JCasIterator casIterator = analysisEngine.processAndOutputNewCASes(jcas); while (casIterator.hasNext()) { JCas outCas = casIterator.next(); ... outCas.release(); } after this first cas child, the MultiprocessingAnalysisEngine_impl assumes that the instance of AggregateAnalysisEngine that processes the request has ended, Y entonces esta instancia es libre para procesar otra solicitud de otro hilo, and it is not true, because missing child cas, producing concurrency errors. What is the condition of a instance of MultiprocessingAnalysisEngine that contains cas multiplier that generate many cas child for each input Cas, for determine that it finish and is free?