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

agingade pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 7fc5d6e93c66f3a3b0bd4a4cfec5f9a5c20425d2
Author: Anil <aging...@pivotal.io>
AuthorDate: Thu Jan 18 14:26:41 2018 -0800

    GEODE-3554: Add javadoc warning about getAnyInstance in CacheCallback
---
 geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java 
b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
index 5857927..9de3168 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
@@ -307,6 +307,12 @@ public class CacheFactory {
    * Gets an arbitrary open instance of {@link Cache} produced by an earlier 
call to
    * {@link #create()}.
    *
+   * <p>
+   * WARNING: To avoid risk of deadlock, do not invoke getAnyInstance() from 
within any
+   * CacheCallback including CacheListener, CacheLoader, CacheWriter, 
TransactionListener,
+   * TransactionWriter.
+   * </p>
+   *
    * @throws CacheClosedException if a cache has not been created or the only 
created one is
    *         {@link Cache#isClosed closed}
    */

-- 
To stop receiving notification emails like this one, please contact
aging...@apache.org.

Reply via email to