You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/03/29 10:45:21 UTC

[ignite] branch ignite-2.7.5 updated (1dea387 -> 540dea6)

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a change to branch ignite-2.7.5
in repository https://gitbox.apache.org/repos/asf/ignite.git.


    from 1dea387  IGNITE-11299 Avoid busy wait on processWrite during SSL handshake - Fixes #6093.
     new 9570338  IGNITE-11299 Write Fully method added for SSL fix
     new 540dea6  IGNITE-11366: Python thin client: add python examples in release build

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 assembly/release-apache-ignite-base.xml            |  5 +++++
 .../apache/ignite/internal/util/IgniteUtils.java   | 25 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)


[ignite] 01/02: IGNITE-11299 Write Fully method added for SSL fix

Posted by dp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch ignite-2.7.5
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 9570338cea76c0aed8e3f9fb207b375bc2ebc378
Author: Pavel Voronkin <pv...@gridgain.com>
AuthorDate: Fri Mar 29 13:39:59 2019 +0300

    IGNITE-11299 Write Fully method added for SSL fix
---
 .../apache/ignite/internal/util/IgniteUtils.java   | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
index aa106f8..846d46b 100755
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
@@ -75,6 +75,7 @@ import java.nio.ByteBuffer;
 import java.nio.channels.FileLock;
 import java.nio.channels.SelectionKey;
 import java.nio.channels.Selector;
+import java.nio.channels.SocketChannel;
 import java.nio.charset.Charset;
 import java.nio.file.DirectoryStream;
 import java.nio.file.FileVisitResult;
@@ -10920,4 +10921,28 @@ public abstract class IgniteUtils {
             return cnt.get();
         }
     }
+
+    /**
+     *  Safely write buffer fully to blocking socket channel.
+     *  Will throw assert if non blocking channel passed.
+     *
+     * @param sockCh WritableByteChannel.
+     * @param buf Buffer.
+     * @throws IOException IOException.
+     */
+    public static void writeFully(SocketChannel sockCh, ByteBuffer buf) throws IOException {
+        int totalWritten = 0;
+
+        assert sockCh.isBlocking() : "SocketChannel should be in blocking mode " + sockCh;
+
+        while (buf.hasRemaining()) {
+            int written = sockCh.write(buf);
+
+            if (written < 0)
+                throw new IOException("Error writing buffer to channel " +
+                    "[written = " + written + ", buf " + buf + ", totalWritten = " + totalWritten + "]");
+
+            totalWritten += written;
+        }
+    }
 }


[ignite] 02/02: IGNITE-11366: Python thin client: add python examples in release build

Posted by dp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch ignite-2.7.5
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 540dea67c33c05fe76cc9c5f53af3ba9ceb6c9ed
Author: Peter Ivanov <mr...@gmail.com>
AuthorDate: Mon Feb 25 15:02:38 2019 +0300

    IGNITE-11366: Python thin client: add python examples in release build
    
    This closes #6155
    
    (cherry picked from commit e26fd51a8ecbd6df17705e36071e0722cebc9381)
---
 assembly/release-apache-ignite-base.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/assembly/release-apache-ignite-base.xml b/assembly/release-apache-ignite-base.xml
index 91baf73..4cd3f7c 100644
--- a/assembly/release-apache-ignite-base.xml
+++ b/assembly/release-apache-ignite-base.xml
@@ -263,6 +263,11 @@
             <outputDirectory>/platforms/python/requirements</outputDirectory>
         </fileSet>
 
+        <fileSet>
+            <directory>modules/platforms/python/examples</directory>
+            <outputDirectory>/platforms/python/examples</outputDirectory>
+        </fileSet>
+
         <!-- Other files. -->
         <fileSet>
             <directory>bin</directory>