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 47DDB200CFD for ; Wed, 6 Sep 2017 16:45:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 46A6C161C20; Wed, 6 Sep 2017 14:45:14 +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 96CC716171A for ; Wed, 6 Sep 2017 16:45:13 +0200 (CEST) Received: (qmail 42345 invoked by uid 500); 6 Sep 2017 14:45:10 -0000 Mailing-List: contact commits-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 commits@ignite.apache.org Received: (qmail 42335 invoked by uid 99); 6 Sep 2017 14:45:10 -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; Wed, 06 Sep 2017 14:45:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F1F59F5601; Wed, 6 Sep 2017 14:45:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ptupitsyn@apache.org To: commits@ignite.apache.org Date: Wed, 06 Sep 2017 14:45:10 -0000 Message-Id: <6b25b7c14a934079a3b7ad12ec96684e@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] ignite git commit: Fix protocol version in tests archived-at: Wed, 06 Sep 2017 14:45:14 -0000 Fix protocol version in tests Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6aeed1f1 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6aeed1f1 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6aeed1f1 Branch: refs/heads/ignite-5896 Commit: 6aeed1f1e2840eeec9739d25b604b490f43e38d6 Parents: b70f058 Author: Pavel Tupitsyn Authored: Wed Sep 6 17:44:56 2017 +0300 Committer: Pavel Tupitsyn Committed: Wed Sep 6 17:44:56 2017 +0300 ---------------------------------------------------------------------- .../dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs | 2 +- .../dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs | 2 +- .../dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/6aeed1f1/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs index c6743b1..04da95d 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs @@ -113,7 +113,7 @@ namespace Apache.Ignite.Core.Tests.Client new ClientProtocolVersion(-1, -1, -1))); Assert.AreEqual("Client handhsake failed: 'Unsupported version.'. " + - "Client version: -1.-1.-1. Server version: 2.1.5", ex.Message); + "Client version: -1.-1.-1. Server version: 1.0.0", ex.Message); } } } http://git-wip-us.apache.org/repos/asf/ignite/blob/6aeed1f1/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs index e3f163c..06abae8 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs @@ -99,9 +99,9 @@ namespace Apache.Ignite.Core.Tests.Client stream.WriteByte(1); // Protocol version. - stream.WriteShort(2); stream.WriteShort(1); stream.WriteShort(0); + stream.WriteShort(0); // Client type: platform. stream.WriteByte(2); http://git-wip-us.apache.org/repos/asf/ignite/blob/6aeed1f1/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs index b9cfb04..786a7c4 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs @@ -35,7 +35,7 @@ namespace Apache.Ignite.Core.Impl.Client internal class ClientSocket : IDisposable { /** Current version. */ - private static readonly ClientProtocolVersion CurrentProtocolVersion = new ClientProtocolVersion(2, 1, 5); + private static readonly ClientProtocolVersion CurrentProtocolVersion = new ClientProtocolVersion(1, 0, 0); /** Handshake opcode. */ private const byte OpHandshake = 1;