Return-Path: X-Original-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97CAB1855B for ; Tue, 1 Dec 2015 02:12:13 +0000 (UTC) Received: (qmail 63008 invoked by uid 500); 1 Dec 2015 02:12:13 -0000 Delivered-To: apmail-asterixdb-notifications-archive@asterixdb.apache.org Received: (qmail 62975 invoked by uid 500); 1 Dec 2015 02:12:13 -0000 Mailing-List: contact notifications-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list notifications@asterixdb.incubator.apache.org Received: (qmail 62966 invoked by uid 99); 1 Dec 2015 02:12:13 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 02:12:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CC6F5180A99 for ; Tue, 1 Dec 2015 02:12:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.426 X-Spam-Level: X-Spam-Status: No, score=0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id uXlkBkUWWkAh for ; Tue, 1 Dec 2015 02:12:12 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id B865F20FF5 for ; Tue, 1 Dec 2015 02:12:11 +0000 (UTC) Received: (qmail 62308 invoked by uid 99); 1 Dec 2015 02:12:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 02:12:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EC04A2C1F61 for ; Tue, 1 Dec 2015 02:12:10 +0000 (UTC) Date: Tue, 1 Dec 2015 02:12:10 +0000 (UTC) From: "Yingyi Bu (JIRA)" To: notifications@asterixdb.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ASTERIXDB-1206) Hyracks level job rewriting results in single-thread-per-partition for binary input operators MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Yingyi Bu created ASTERIXDB-1206: ------------------------------------ Summary: Hyracks level job rewriting results in single-thread-per-partition for binary input operators Key: ASTERIXDB-1206 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1206 Project: Apache AsterixDB Issue Type: Bug Components: Hyracks Core Reporter: Yingyi Bu Assignee: Yingyi Bu The following job will be run in a single thread for one partition. But the two initializer -- one for each input source operator should be run in two parallel threads. @Test public void testScanUnion() throws Exception { JobSpecification spec = new JobSpecification(); IFileSplitProvider splitProvider1 = new ConstantFileSplitProvider(new FileSplit[] { new FileSplit(NC1_ID, new FileReference(new File("data/words.txt"))) }); IFileSplitProvider splitProvider2 = new ConstantFileSplitProvider(new FileSplit[] { new FileSplit(NC2_ID, new FileReference(new File("data/words.txt"))) }); RecordDescriptor desc = new RecordDescriptor( new ISerializerDeserializer[] { new UTF8StringSerializerDeserializer() }); FileScanOperatorDescriptor csvScanner1 = new FileScanOperatorDescriptor( spec, splitProvider1, new DelimitedDataTupleParserFactory(new IValueParserFactory[] { UTF8StringParserFactory.INSTANCE }, ','), desc); PartitionConstraintHelper.addAbsoluteLocationConstraint(spec, csvScanner1, NC1_ID); FileScanOperatorDescriptor csvScanner2 = new FileScanOperatorDescriptor( spec, splitProvider2, new DelimitedDataTupleParserFactory(new IValueParserFactory[] { UTF8StringParserFactory.INSTANCE }, ','), desc); PartitionConstraintHelper.addAbsoluteLocationConstraint(spec, csvScanner2, NC2_ID); UnionAllOperatorDescriptor union = new UnionAllOperatorDescriptor(spec, 2, desc); PartitionConstraintHelper.addAbsoluteLocationConstraint(spec, union, NC1_ID); IConnectorDescriptor connScan1ToUnion = new OneToOneConnectorDescriptor(spec); IConnectorDescriptor connScan2ToUnion = new OneToOneConnectorDescriptor(spec); spec.connect(connScan1ToUnion, csvScanner1, 0, union, 0); spec.connect(connScan2ToUnion, csvScanner2, 0, union, 1); IOperatorDescriptor printer = new PrinterOperatorDescriptor(spec); PartitionConstraintHelper.addAbsoluteLocationConstraint(spec, printer, NC1_ID); IConnectorDescriptor conn = new OneToOneConnectorDescriptor(spec); spec.connect(conn, union, 0, printer, 0); spec.addRoot(printer); runTest(spec); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)