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 DFAEB200C77 for ; Mon, 1 May 2017 19:28:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DE2AD160BB9; Mon, 1 May 2017 17:28:13 +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 31EAE160BA0 for ; Mon, 1 May 2017 19:28:13 +0200 (CEST) Received: (qmail 64245 invoked by uid 500); 1 May 2017 17:28:12 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 64224 invoked by uid 99); 1 May 2017 17:28:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2017 17:28:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0573DDFBC7; Mon, 1 May 2017 17:28:12 +0000 (UTC) From: upthewaterspout To: dev@geode.apache.org Reply-To: dev@geode.apache.org References: In-Reply-To: Subject: [GitHub] geode pull request #481: GEODE-2828: AEQ being created before the user regio... Content-Type: text/plain Message-Id: <20170501172812.0573DDFBC7@git1-us-west.apache.org> Date: Mon, 1 May 2017 17:28:12 +0000 (UTC) archived-at: Mon, 01 May 2017 17:28:14 -0000 Github user upthewaterspout commented on a diff in the pull request: https://github.com/apache/geode/pull/481#discussion_r114158872 --- Diff: geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneIndexForPartitionedRegion.java --- @@ -78,17 +87,9 @@ protected RepositoryManager createRepositoryManager() { // create PR fileAndChunkRegion, but not to create its buckets for now final String fileRegionName = createFileRegionName(); PartitionAttributes partitionAttributes = dataRegion.getPartitionAttributes(); - - - // create PR chunkRegion, but not to create its buckets for now - - // we will create RegionDirectories on the fly when data comes in - HeterogeneousLuceneSerializer mapper = new HeterogeneousLuceneSerializer(getFieldNames()); - PartitionedRepositoryManager partitionedRepositoryManager = - new PartitionedRepositoryManager(this, mapper); DM dm = this.cache.getInternalDistributedSystem().getDistributionManager(); LuceneBucketListener lucenePrimaryBucketListener = - new LuceneBucketListener(partitionedRepositoryManager, dm); + new LuceneBucketListener((PartitionedRepositoryManager) partitionedRepositoryManager, dm); --- End diff -- Having to cast is a bit of a bad smell here. It seems like either LuceneBucketListener should take an AbstractPartitionedRepositoryManager, or createLuceneListenersAndFileChunkRegions should have been passed in a PartitionRespositoryManager. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---