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 BFD5A200D34 for ; Fri, 3 Nov 2017 16:15:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BE62B160BFB; Fri, 3 Nov 2017 15:15:06 +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 DE43E160BE9 for ; Fri, 3 Nov 2017 16:15:05 +0100 (CET) Received: (qmail 43680 invoked by uid 500); 3 Nov 2017 15:15:05 -0000 Mailing-List: contact issues-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 issues@geode.apache.org Received: (qmail 43664 invoked by uid 99); 3 Nov 2017 15:15:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2017 15:15:04 +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 1C08D180582 for ; Fri, 3 Nov 2017 15:15:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Y4hjEdm51fe5 for ; Fri, 3 Nov 2017 15:15:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 44BA160F62 for ; Fri, 3 Nov 2017 15:15:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A89BE065C for ; Fri, 3 Nov 2017 15:15:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3C05E24147 for ; Fri, 3 Nov 2017 15:15:00 +0000 (UTC) Date: Fri, 3 Nov 2017 15:15:00 +0000 (UTC) From: "Wes Williams (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GEODE-3949) gfsh> put fails immediately after server startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Nov 2017 15:15:06 -0000 [ https://issues.apache.org/jira/browse/GEODE-3949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wes Williams updated GEODE-3949: -------------------------------- Affects Version/s: 1.3.0 Priority: Major (was: Trivial) Description: A bug was introduced since GemFire 8.2 where regions are not available immediately after server startup. *GIVEN* a server that just started with a region that is defined in cache.xml, *THEN* following "put" fails when run from a linux bash script: gfsh < not found in any of the members gfsh>list regions; List of regions --------------- departments exit; ! However, inserting a 1-second pause after server startup, the put succeeds: {{gfsh <list regions; List of regions --------------- departments a gfsh> put executing inside of a script yields the erroneous message about the region not existing: 2. Executing - put --key='20' --value=('deptno':'20','name':'RESEARCH') --value-class=io.pivotal.app.domain.Department --region=departments Result : false Message : Region not found in any of the members Key Class : java.lang.String Key : 20 Value Class : io.pivotal.app.domain.Department deptno | name ------ | -------- 20 | RESEARCH Yet outside the script and entering it straight into gfsh. Note that the error message is different: gfsh>put --key='20' --value=('deptno':'20','name':'RESEARCH') --value-class=io.pivotal.app.domain.Department --region=departments Message : Couldn't convert JSON to Object of type class io.pivotal.app.domain.Department Result : false Summary: gfsh> put fails immediately after server startup (was: gfsh> put returns wrong error message when cannot convert JSON to Object) > gfsh> put fails immediately after server startup > ------------------------------------------------ > > Key: GEODE-3949 > URL: https://issues.apache.org/jira/browse/GEODE-3949 > Project: Geode > Issue Type: Bug > Components: core > Affects Versions: 1.3.0 > Reporter: Wes Williams > Priority: Major > Fix For: 1.4.0 > > > A bug was introduced since GemFire 8.2 where regions are not available immediately after server startup. > *GIVEN* a server that just started with a region that is defined in cache.xml, > *THEN* following "put" fails when run from a linux bash script: > gfsh < start locator --name=locator --properties-file=config/locator.properties --port=10334 --J=-Xms256m --J=-Xmx256m > start server --name=server1 --locators=localhost[10334] --J=-Xms512m --J=-Xmx512m --cache-xml-file=config/cache.xml --properties-file=config/gemfire.properties > put --key='1' --value='A' --region=departments; *{color:red}<== FAIL {color}* > Result : false > Message : Region not found in any of the members > gfsh>list regions; > List of regions > --------------- > departments > exit; > ! > However, inserting a 1-second pause after server startup, the put succeeds: > {{gfsh < start locator --name=locator --properties-file=config/locator.properties --port=$LOCATOR_PORT --J=-Xms256m --J=-Xmx256m > configure pdx --portable-auto-serializable-classes=".*" > start server --name=server1 --locators=localhost[10334] --J=-Xms512m --J=-Xmx512m --cache-xml-file=config/cache.xml --properties-file=config/gemfire.properties > exit; > ! > sleep 1 > gfsh < connect > put --key='1' --value='A' --region=departments; > }} -- This message was sent by Atlassian JIRA (v6.4.14#64029)