From dev-return-38894-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Sep 11 00:31:37 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4A8AD180656 for ; Tue, 11 Sep 2018 00:31:37 +0200 (CEST) Received: (qmail 74152 invoked by uid 500); 10 Sep 2018 22:31:36 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 74134 invoked by uid 99); 10 Sep 2018 22:31:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2018 22:31:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id F401BC05D2 for ; Mon, 10 Sep 2018 22:31:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.801 X-Spam-Level: X-Spam-Status: No, score=-0.801 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=nobitlost.com header.b=Y7ihdOr+; dkim=pass (1024-bit key) header.d=nobitlost.com header.b=cOYa0eKM Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5KYbD1UrHpNC for ; Mon, 10 Sep 2018 22:31:31 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 557B55F1E7 for ; Mon, 10 Sep 2018 22:31:31 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward102j.mail.yandex.net (Yandex) with ESMTP id B15195605AF2; Tue, 11 Sep 2018 01:31:23 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 74A7DeTDAM-VNpKceXq; Tue, 11 Sep 2018 01:31:23 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nobitlost.com; s=mail; t=1536618683; bh=ZAw2+TNuJkK/vWUjTs2KjyCyA+x8ntw1XP+zE/XnqYU=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=Y7ihdOr+t3KY0NOXVV7+UztKqlsibfyfZ65O/LCmyPA4gbs6EWMRf/hipfrFMDShJ SJHInUO0qdPed7yCIE2k2Agk2xX0cq/hTjIXvAtUX0n+oZyGAu1dQILHnYTf4UagVH 0A2QGIOVHVVclNKAZdR3e38cGeuBGS9E26Uubxck= Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4YP5HXecV6-VMwekddQ; Tue, 11 Sep 2018 01:31:22 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nobitlost.com; s=mail; t=1536618682; bh=ZAw2+TNuJkK/vWUjTs2KjyCyA+x8ntw1XP+zE/XnqYU=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=cOYa0eKM4ZMVviKDo3HFXXkAYmTt0sisvA9m6SjbpPlleYhFlYtkvN4x+JJH4XLXV 5MeTOWHWq/qvZS33cWU6p1Ff/OYL+zPg5SYVy3O/dJkarxYLCmmGoQFPz1Jg0sPK45 BKXlEU92BJ4GsaUC+65C2fe8LJN8Lji6K3fLmMg0= Authentication-Results: smtp4p.mail.yandex.net; dkim=pass header.i=@nobitlost.com Subject: Re: PHP thin client To: dev@ignite.apache.org, Igor Sapego References: From: Alexey Kosenchuk Message-ID: Date: Tue, 11 Sep 2018 01:31:22 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Hi Igor, thanks for the review. Pls see below... >> 1. Main page for documentation is empty. What is the main page for documentation? As wrote, the auto-generated API spec is here: https://rawgit.com/nobitlost/ignite/ignite-7783-docs/modules/platforms/php/api_docs/html/index.html All other docs are here: https://github.com/nobitlost/ignite/blob/ignite-7783-docs/modules/platforms/php/README.md Going to be placed on readme.io by Prachi (thanks!) https://issues.apache.org/jira/browse/IGNITE-9523 >> 2. More output for Auth example is needed. This is not a test, after all, but example. Will add a log when a connection happens with the details of the connection. Nothing else to output in this trivial example. In fact, the real profit for a user here is the source code with an example of TLS/auth cfg for the client. >> 3. If I try run test with APACHE_IGNITE_CLIENT_ENDPOINTS=127.0.0.1, they fail Do you mean 10800 should be the default port when not specified by a user? Will add. >> 4. If I try run test with APACHE_IGNITE_CLIENT_ENDPOINTS=127.0.0.1:10800, they fail Double checked exactly in the same environment you have. It works. Please try again. Do you use a server with all default settings? Did not you try with the server after the Auth example? Do other examples work with the same server? If you still see the problem with the tests, please send the server's log to us. And/or switch the client's debug on - call setDebug(true) - and share the client's output. >> 5. When "maven package" command is executed on Ignite, no php directory appears Need a help from experts / release engineer. Thanks, -Alexey 10.09.2018 15:34, Igor Sapego пишет: > By the way, I used Ubuntu 18.04, PHP 7.2.7 and what seems > to be PhpUnit 7.3 (not sure here). > > Best Regards, > Igor > > > On Mon, Sep 10, 2018 at 3:28 PM Igor Sapego wrote: > >> Guys, I've reviewed the API (which looks good), run tests and examples and >> here are my commments: >> >> 1. Main page for documentation is empty. >> >> 2. More output for Auth example is needed. This is not a test, after all, >> but example. >> >> 3. If I try run test with APACHE_IGNITE_CLIENT_ENDPOINTS=127.0.0.1, they >> fail with the following message: >> Apache\Ignite\Exception\NoConnectionException: [127.0.0.1] Failed to parse >> address "127.0.0.1" in >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientFailoverSocket.php:107 >> Stack trace: >> #0 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientFailoverSocket.php(54): >> Apache\Ignite\Internal\Connection\ClientFailoverSocket->failoverConnect() >> #1 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Client.php(61): >> Apache\Ignite\Internal\Connection\ClientFailoverSocket->connect(Object(Apache\Ignite\ClientConfiguration)) >> #2 >> /home/isapego/work/ignite/modules/platforms/php/tests/TestingHelper.php(52): >> Apache\Ignite\Client->connect(Object(Apache\Ignite\ClientConfiguration)) >> #3 >> /home/isapego/work/ignite/modules/platforms/php/tests/SqlQueryTest.php(49): >> Apache\Ignite\Tests\TestingHelper::init() >> #4 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): >> Apache\Ignite\Tests\SqlQueryTestCase::setUpBeforeClass() >> #5 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/Framework/TestSuite.php(750): >> PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult)) >> #6 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(587): >> PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult)) >> #7 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/TextUI/Command.php(203): >> PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), >> Array, true) >> #8 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/TextUI/Command.php(159): >> PHPUnit\TextUI\Command->run(Array, true) >> #9 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/phpunit(53): >> PHPUnit\TextUI\Command::main() >> #10 {main} >> >> 4. If I try run test with APACHE_IGNITE_CLIENT_ENDPOINTS=127.0.0.1:10800, >> they fail with the following message: >> Apache\Ignite\Exception\OperationStatusUnknownException: Error while >> reading data from the server in >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientSocket.php:168 >> Stack trace: >> #0 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientSocket.php(178): >> Apache\Ignite\Internal\Connection\ClientSocket->receive(Object(Apache\Ignite\Internal\Binary\MessageBuffer), >> 4) >> #1 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientSocket.php(159): >> Apache\Ignite\Internal\Connection\ClientSocket->processResponse(Object(Apache\Ignite\Internal\Binary\Request)) >> #2 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientSocket.php(107): >> Apache\Ignite\Internal\Connection\ClientSocket->processRequest(Object(Apache\Ignite\Internal\Binary\Request)) >> #3 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientFailoverSocket.php(96): >> Apache\Ignite\Internal\Connection\ClientSocket->connect() >> #4 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Internal/Connection/ClientFailoverSocket.php(54): >> Apache\Ignite\Internal\Connection\ClientFailoverSocket->failoverConnect() >> #5 >> /home/isapego/work/ignite/modules/platforms/php/src/Apache/Ignite/Client.php(61): >> Apache\Ignite\Internal\Connection\ClientFailoverSocket->connect(Object(Apache\Ignite\ClientConfiguration)) >> #6 >> /home/isapego/work/ignite/modules/platforms/php/tests/TestingHelper.php(52): >> Apache\Ignite\Client->connect(Object(Apache\Ignite\ClientConfiguration)) >> #7 >> /home/isapego/work/ignite/modules/platforms/php/tests/SqlQueryTest.php(49): >> Apache\Ignite\Tests\TestingHelper::init() >> #8 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): >> Apache\Ignite\Tests\SqlQueryTestCase::setUpBeforeClass() >> #9 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/Framework/TestSuite.php(750): >> PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult)) >> #10 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(587): >> PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult)) >> #11 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/TextUI/Command.php(203): >> PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), >> Array, true) >> #12 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/src/TextUI/Command.php(159): >> PHPUnit\TextUI\Command->run(Array, true) >> #13 >> /home/isapego/work/ignite/modules/platforms/php/vendor/phpunit/phpunit/phpunit(53): >> PHPUnit\TextUI\Command::main() >> #14 {main} >> Am I doing something wrong? >> >> 5. When "maven package" command is executed on Ignite, no php directory >> appears >> in target/release-package-fabric/platforms directory. You need to edit >> ignite/assembly/release-fabric-base.xml file and add appropriate >> "copy" commands. >> Search "cpp" or "dotnet" for example. >> >> Best Regards, >> Igor >> >> >> On Tue, Sep 4, 2018 at 3:21 PM Igor Sapego wrote: >> >>> Great, >>> >>> I'll take a look >>> >>> Best Regards, >>> Igor >>> >>> >>> On Wed, Aug 29, 2018 at 10:37 PM Alexey Kosenchuk < >>> alexey.kosenchuk@nobitlost.com> wrote: >>> >>>> Hi folks, >>>> >>>> PHP thin client is ready for review. >>>> >>>> Jira with the scope of work - [1]. >>>> >>>> Implementation, examples, tests: >>>> PR - [2], >>>> repository - [3]. >>>> >>>> API spec - [4]. >>>> >>>> Readme (how to for the client, instructions for the examples and tests, >>>> etc.) - [5]. >>>> >>>> Regards, >>>> -Alexey >>>> >>>> [1] https://issues.apache.org/jira/browse/IGNITE-7783 >>>> [2] https://github.com/apache/ignite/pull/4649 >>>> [3] >>>> >>>> https://github.com/nobitlost/ignite/tree/ignite-7783/modules/platforms/php >>>> [4] >>>> >>>> https://rawgit.com/nobitlost/ignite/ignite-7783-docs/modules/platforms/php/api_docs/html/index.html >>>> [5] >>>> >>>> https://github.com/nobitlost/ignite/blob/ignite-7783-docs/modules/platforms/php/README.md >>>> >>> >