ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dma...@apache.org
Subject [1/2] ignite git commit: Updated cache write synchronization mode documentation that wrongly said that the default mode is FULL_ASYNC
Date Thu, 05 May 2016 09:10:58 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 65183c32f -> a3566b87b


Updated cache write synchronization mode documentation that wrongly said that the default
mode is FULL_ASYNC


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/12d1d4f3
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/12d1d4f3
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/12d1d4f3

Branch: refs/heads/master
Commit: 12d1d4f344023bf6d4e7b9db3e78768b8970aa14
Parents: 0f2b753
Author: Denis Magda <dmagda@gridgain.com>
Authored: Thu May 5 11:50:56 2016 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Thu May 5 11:50:56 2016 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/cache/CacheWriteSynchronizationMode.java  | 5 ++---
 .../org/apache/ignite/configuration/CacheConfiguration.java     | 2 ++
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/12d1d4f3/modules/core/src/main/java/org/apache/ignite/cache/CacheWriteSynchronizationMode.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/CacheWriteSynchronizationMode.java
b/modules/core/src/main/java/org/apache/ignite/cache/CacheWriteSynchronizationMode.java
index cdb12c3..6a5176b 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/CacheWriteSynchronizationMode.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/CacheWriteSynchronizationMode.java
@@ -22,9 +22,8 @@ import org.jetbrains.annotations.Nullable;
 
 /**
  * Mode indicating how Ignite should wait for write replies from other nodes. Default
- * value is {@link #FULL_ASYNC}}, which means that Ignite will not wait for responses from
- * participating nodes. This means that by default remote nodes may get their state updated
slightly after
- * any of the cache write methods complete, or after {@link Transaction#commit()} method
completes.
+ * value is {@link #PRIMARY_SYNC}}, which means that Ignite will wait for write or commit
to complete on
+ * {@code primary} node, but will not wait for backups to be updated.
  * <p>
  * Note that regardless of write synchronization mode, cache data will always remain fully
  * consistent across all participating nodes.

http://git-wip-us.apache.org/repos/asf/ignite/blob/12d1d4f3/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
index ed392c2..5a234de 100644
--- a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
+++ b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java
@@ -567,6 +567,8 @@ public class CacheConfiguration<K, V> extends MutableConfiguration<K,
V> {
 
     /**
      * Sets write synchronization mode.
+     * <p>
+     * Default synchronization mode is {@link CacheWriteSynchronizationMode#PRIMARY_SYNC}.
      *
      * @param writeSync Write synchronization mode.
      * @return {@code this} for chaining.


Mime
View raw message