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 2D74B200BA8 for ; Mon, 24 Oct 2016 14:23:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2C140160AEB; Mon, 24 Oct 2016 12:23:30 +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 4C31E160AE1 for ; Mon, 24 Oct 2016 14:23:29 +0200 (CEST) Received: (qmail 91093 invoked by uid 500); 24 Oct 2016 12:23:28 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 91075 invoked by uid 99); 24 Oct 2016 12:23:28 -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; Mon, 24 Oct 2016 12:23:28 +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 BED86C0251 for ; Mon, 24 Oct 2016 12:23:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.98 X-Spam-Level: * X-Spam-Status: No, score=1.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id p2h9Qfl7f4XX for ; Mon, 24 Oct 2016 12:23:24 +0000 (UTC) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.161.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DF8465FCEC for ; Mon, 24 Oct 2016 12:23:23 +0000 (UTC) Received: by mail-yw0-f181.google.com with SMTP id t193so185558035ywc.2 for ; Mon, 24 Oct 2016 05:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=pmZZ4OYGsuyU5Shy/pw93scVyZf9SjtxQ62p8w1quc4=; b=GeJG6ZEFqwsJ0BzaDbEKF0fQcgBcjJF7+NwDegH749g/PhXW+mq2gAmquJYgTX2OW3 fWyaJfMufFyXdT4digCfpL6afQ8RHlaiGxCC+VD3p3KHqOj7j3bZjq8OJD3PmKPDpHaC UCMKbpi0qyHdvq7V2TbGqJAinaROdFhWEd3T4TjoB2kBdIVyHj5g1W/AjzhvaVn6tAYk OoS22lqJcJx0k06pmEG56fmV7gqVkH9UMpK5u5GapteNk59fiwUfVPpn04wM3o9cmEc3 Xtkp+EMrK7vZhbQt1qwx1+IfYpdnvVHpa5bfRwUxP+eKcfnLDT9pFSLMs3Lxj9Y6w8rK r98w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=pmZZ4OYGsuyU5Shy/pw93scVyZf9SjtxQ62p8w1quc4=; b=b9CxicXRQWer4AMS+jkXyDONKF6IJ2KBvm4fwlG0Q2efrnw3g2MsYo0jpA4kWuotJp KPV2tIkXBmhm/gKnDaPq9V2ji6y77yH+endWhY/Kbwplmwy9uGSbOp7wt/uhEjlGPfcc lTA18J07rj6HltrTjh7aE+idgtjhEPPaa1O0nQ2qFAPdRbZkt0XyuO70G8Gg+TVAut3/ blo8M4y+UFFFK120pHKz4KWRt4RVdWJCWoBVuFyG2REwGGlPAubu8vqOOEvnONHLOPOC 2oqsALe+H9Udp7PWREmkCm+jKqrlTD8eO/dA+1Wa84fRifHls3fsp5Ih/zJRtO/EA6wr ARpA== X-Gm-Message-State: ABUngvezz8HekDteFK1fyKBlJACm/jTkowJhEAV/XNexX/FrHSl2mBB9dHLkWiw8GAUa4Q9OWO9FeRyNMegmVg== X-Received: by 10.157.40.151 with SMTP id s23mr1137798ota.68.1477311803364; Mon, 24 Oct 2016 05:23:23 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.202.170.78 with HTTP; Mon, 24 Oct 2016 05:23:02 -0700 (PDT) In-Reply-To: References: <580DD473.8030501@nosphere.org> <580DF49F.30506@nosphere.org> From: Niclas Hedhman Date: Mon, 24 Oct 2016 20:23:02 +0800 X-Google-Sender-Auth: yVLmAL3SwqgjgzQzI2plKnjNm2g Message-ID: Subject: Re: [WARNING] Unstable 'develop' branch To: dev Content-Type: multipart/alternative; boundary=001a11c1494a431c6a053f9b756f archived-at: Mon, 24 Oct 2016 12:23:30 -0000 --001a11c1494a431c6a053f9b756f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Caused by: org.postgresql.util.PSQLException: ERROR: type "ltree" does not exist Position: 55 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryEx= ecutorImpl.java:2453) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutor= Impl.java:2153) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.ja= va:286) Is there an easy way to test ltree presence with the psql command line? On Mon, Oct 24, 2016 at 8:20 PM, Niclas Hedhman wrote: > Ah, I see... > > stmt.execute( this._vendor.toString( d > .createTableDefinitionBuilder() > .setTableScope( TableScope.LOCAL_TEMPORARY ) > .setTableName( t.tableName( "ltree_test" ) ) > .setCommitAction( PgSQLTableCommitAction.DROP ) > .setTableContentsSource( > d.createTableElementListBuilder() > .addTableElement( > d.createColumnDefinition( "test_column", dt.userDefined( "ltr= ee" ) ) ) > .createExpression() ).createExpression() ) ); > > > is the code executed and ANY SQLException will cause my InternalError, an= d > SQLException is not shown. Adding the root cause and running again. > > > > On Mon, Oct 24, 2016 at 8:16 PM, Stanislav Muhametsin < > stanislav.muhametsin@zest.mail.kapsi.fi> wrote: > >> On 24.10.2016 15:05, Niclas Hedhman wrote: >> >>> I managed to install postgres locally and set up according to your >>> instructions. I even needed to figure out that postgresql-contrib packa= ge >>> was needed for the "ltree" to work (accepted inside psql command line). >>> >>> >>> However, I now get an error in the testcases; >>> >>> >> doesn't have ltree as type. It is needed to store collections. Please >>> refer to hopefully supplied instructions on how to add ltree type >>> (hint: run <pg_install_dir>/share/contrib/ltree.sql script or >>> command 'CREATE EXTENSION ltree;')." >>> type=3D"java.lang.InternalError">java.lang.InternalError: It seems that >>> your database doesn't have ltree as type. It is needed to store >>> collections. Please refer to hopefully supplied instructions on how to >>> add ltree type (hint: run >>> <pg_install_dir>/share/contrib/ltree.sql script or command >>> 'CREATE EXTENSION ltree;'). >>> >>> >>> root@devdesk:~# su postgres >>> postgres@devdesk:/root$ psql >>> could not change directory to "/root": Permission denied >>> psql (9.4.9) >>> Type "help" for help. >>> >>> postgres=3D# CREATE EXTENSION ltree; >>> CREATE EXTENSION >>> postgres=3D# \q >>> >>> >>> Any ideas?? >>> >> >> Indexing-SQL uses some SQL command to test whether ltree extension is >> installed. >> I totally forgot what is the command, and I can not access Zest codebase >> right now. >> >> Can you see the root cause via debugger, the first exception that is >> thrown, most likely causes this. >> It *might* be that the exception is something else, but the Indexing-SQL >> *thinks* it is because of failing ltree-test. >> >> >> >> >> >>> >>> >>> On Mon, Oct 24, 2016 at 7:46 PM, Paul Merlin wrote: >>> >>> So, I ran integration tests and everything is stable except indexing-sq= l. >>>> >>>> A lot of the query tests fail. >>>> Something about mapping Identity to String is incomplete. >>>> >>>> I've attached the tests result report to ZEST-180 and pointed to the >>>> test setup instruction there. >>>> >>>> >>>> Paul Merlin a =C3=A9crit : >>>> >>>>> Niclas, >>>>> >>>>> The Identity change is quite massive, and affects many tests, >>>>>> >>>>> especially in >>>> >>>>> the Entity Stores and Indexing/Query subsystems. >>>>>> >>>>>> The changes builds on my local Linux system, but I notice that Redis >>>>>> and >>>>>> Riak (others?) test suites are disabled, and I have not look into >>>>>> making >>>>>> them run locally. So there may still be issues, and I am not at all >>>>>> surprised if the CI will fail. >>>>>> >>>>>> And I need to go to sleep now, so it may take a couple of days for >>>>>> this >>>>>> >>>>> to >>>> >>>>> stabilize. >>>>>> >>>>>> Cheers >>>>>> >>>>> All integration tests that depend on external services are skipped if >>>>> they can't reach the corresponding external service. >>>>> >>>>> For most of them, simply running the service with the default >>>>> configuration is enough (Memcached, Redis, Riak, MongoDB). >>>>> >>>>> The SQL EntityStore is always tested against embedded databases (Derb= y, >>>>> H2, SQLite). If a MySQL or PostgreSQL service is available it will be >>>>> tested against them too. The SQL Index/Query is only tested against >>>>> PostgreSQL if available. PostgreSQL needs some special setup (user/pa= ss >>>>> and some extension for indexing, documented in the corresponding >>>>> >>>> extension). >>>> >>>>> The CI do not run any of these external services. >>>>> >>>>> Three years ago I did start creating a Docker image with almost all o= f >>>>> these services (https://github.com/eskatos/zest-docker-testbed). It's >>>>> completely outdated now. I do have a very limited connection these da= ys >>>>> so I won't be able to update it soon. But I have all the services >>>>> locally so I'll try and run the integration tests to see if something >>>>> >>>> broke. >>>> >>>>> Ideally we should build such a Docker image during the build and run >>>>> the >>>>> test suite into it on CI. >>>>> >>>>> >>>>> >>>>> >>> >>> >> > > > -- > Niclas Hedhman, Software Developer > http://zest.apache.org - New Energy for Java > --=20 Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --001a11c1494a431c6a053f9b756f--