Skip to content

Commit 639b41e

Browse files
NITs
1 parent b4c2a91 commit 639b41e

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

sdk/cosmos/azure-cosmos-encryption/src/test/java/com/azure/cosmos/encryption/CosmosEncryptionAsyncClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void afterClassSetupLeakDetection() {
9797
}
9898

9999
if (sb.length() > 0) {
100-
String msg = "\"COSMOS CLIENT LEAKS detected in test class: "
100+
String msg = "COSMOS CLIENT LEAKS detected in test class: "
101101
+ this.getClass().getCanonicalName()
102102
+ "\n\n"
103103
+ sb;

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/CosmosAsyncClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void afterClassSetupLeakDetection() {
9797
}
9898

9999
if (sb.length() > 0) {
100-
String msg = "\"COSMOS CLIENT LEAKS detected in test class: "
100+
String msg = "COSMOS CLIENT LEAKS detected in test class: "
101101
+ this.getClass().getCanonicalName()
102102
+ "\n\n"
103103
+ sb;
@@ -113,7 +113,7 @@ public void afterClassSetupLeakDetection() {
113113
sb.append(leak).append("\n");
114114
}
115115

116-
String msg = "\"NETTY LEAKS detected in test class: "
116+
String msg = "NETTY LEAKS detected in test class: "
117117
+ this.getClass().getCanonicalName()
118118
+ sb;
119119

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/DocumentClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void afterClassSetupLeakDetection() {
9191
}
9292

9393
if (sb.length() > 0) {
94-
String msg = "\"COSMOS CLIENT LEAKS detected in test class: "
94+
String msg = "COSMOS CLIENT LEAKS detected in test class: "
9595
+ this.getClass().getCanonicalName()
9696
+ "\n\n"
9797
+ sb;
@@ -107,7 +107,7 @@ public void afterClassSetupLeakDetection() {
107107
sb.append(leak).append("\n");
108108
}
109109

110-
String msg = "\"NETTY LEAKS detected in test class: "
110+
String msg = "NETTY LEAKS detected in test class: "
111111
+ this.getClass().getCanonicalName()
112112
+ sb;
113113

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Configs.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ public class Configs {
374374

375375
public static final String DEFAULT_OTEL_SPAN_ATTRIBUTE_NAMING_SCHEME = "All";
376376

377-
private static final boolean DEFAULT_CLIENT_LEAK_DETECTION_ENABLED = true; // TODO @fabianm - revert before merging - just cheaper to enable than making test config changes
377+
// TODO @fabianm - Make test changes to enable leak detection from CI pipeline tests
378+
private static final boolean DEFAULT_CLIENT_LEAK_DETECTION_ENABLED = false;
378379
private static final String CLIENT_LEAK_DETECTION_ENABLED = "COSMOS.CLIENT_LEAK_DETECTION_ENABLED";
379380

380381
public static int getCPUCnt() {

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public class RxDocumentClientImpl implements AsyncDocumentClient, IAuthorization
203203

204204
private static final Object staticLock = new Object();
205205

206-
// A map containing the clientId with the callstack form where the Client was initialized.
206+
// A map containing the clientId with the callstack from where the Client was initialized.
207207
// this can help to identify where clients leak.
208208
// The leak detection via System property "COSMOS.CLIENT_LEAK_DETECTION_ENABLED" is disabled by
209209
// default - CI pipeline tests will enable it.

0 commit comments

Comments
 (0)