You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/core/src/main/java/org/apache/ignite/internal/processors/platform/client/ClientConnectionContext.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ public class ClientConnectionContext extends ClientListenerAbstractConnectionCon
Copy file name to clipboardExpand all lines: modules/core/src/main/java/org/apache/ignite/internal/processors/platform/client/ClientResourceRegistry.java
+29-2Lines changed: 29 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
importjava.util.Map;
21
21
importjava.util.concurrent.ConcurrentHashMap;
22
22
importjava.util.concurrent.atomic.AtomicLong;
23
+
importorg.apache.ignite.IgniteLogger;
23
24
24
25
/**
25
26
* Per-connection resource registry.
@@ -31,6 +32,17 @@ public class ClientResourceRegistry {
31
32
/** ID generator. */
32
33
privatefinalAtomicLongidGen = newAtomicLong();
33
34
35
+
/** Logger. */
36
+
privatefinalIgniteLoggerlog;
37
+
38
+
/**
39
+
* Logger for cleanup errors logging.
40
+
* @param log Logger.
41
+
*/
42
+
publicClientResourceRegistry(IgniteLoggerlog) {
43
+
this.log = log;
44
+
}
45
+
34
46
/**
35
47
* Allocates server handle for an object.
36
48
*
@@ -85,8 +97,23 @@ public void release(long hnd) {
85
97
* Cleans all handles and closes all ClientCloseableResources.
86
98
*/
87
99
publicvoidclean() {
88
-
for (Map.Entrye : res.entrySet())
89
-
closeIfNeeded(e.getValue());
100
+
for (Map.Entry<Long, Object> e : res.entrySet()) {
101
+
Longid = e.getKey();
102
+
Objectobj = e.getValue();
103
+
104
+
try {
105
+
closeIfNeeded(obj);
106
+
}
107
+
catch (Exceptionex) {
108
+
if (log != null && log.isDebugEnabled())
109
+
log.debug("Failed to close client resource on disconnect [id=" + id +
Copy file name to clipboardExpand all lines: modules/core/src/main/java/org/apache/ignite/internal/processors/platform/client/cache/ClientCacheQueryContinuousHandle.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,9 +86,12 @@ public void startNotifications(long id) {
0 commit comments