Skip to content

Commit 073b1d6

Browse files
committed
Additional logging for compatability tests
1 parent 284bb4e commit 073b1d6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/compatibility-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
make compatibility-test COMPATIBLE_VERSION=${{ matrix.compatibilityVersion }} COMPATIBLE_SELECTOR=${{ matrix.compatibilitySelector }}
126126
127127
- uses: actions/upload-artifact@v1
128-
if: failure()
128+
# if: failure()
129129
with:
130130
name: test-output
131131
path: build/_output/test-logs

java/coherence-operator/src/main/java/com/oracle/coherence/k8s/OperatorRestServer.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
import javax.net.ssl.SSLParameters;
3535
import javax.net.ssl.TrustManagerFactory;
3636

37+
import com.oracle.coherence.common.base.Logger;
38+
3739
import com.tangosol.net.CacheFactory;
3840
import com.tangosol.net.Cluster;
3941
import com.tangosol.net.DefaultCacheServer;
@@ -963,7 +965,12 @@ private Optional<MBeanServerProxy> getMBeanServerProxy() {
963965
if (registry != null) {
964966
return Optional.ofNullable(registry.getMBeanServerProxy());
965967
}
968+
else {
969+
logDebug("CoherenceOperator: MBeanServerProxy not present - registry is null");
970+
}
966971
}
972+
logDebug("CoherenceOperator: MBeanServerProxy not present - %s",
973+
cluster == null ? "Cluster is null" : "Cluster not running");
967974
return Optional.empty();
968975
}
969976

@@ -989,6 +996,9 @@ private Set<String> getDistributedCacheServiceNames(int memberId) {
989996
.map(p -> p.queryNames(mBeanPattern, null))
990997
.orElse(Collections.emptySet());
991998

999+
logDebug("CoherenceOperator: MBeanServerProxy query '%s' found %d MBeans",
1000+
mBeanPattern, set.size());
1001+
9921002
for (String mBean : set) {
9931003
Map<String, Object> attributes = getMBeanAttributes(mBean, new String[] {"Type", "StorageEnabled"});
9941004
String type = (String) attributes.get("type");
@@ -1018,7 +1028,7 @@ private void logDebug(String message, Object... args) {
10181028

10191029
private void logDebug(String message) {
10201030
if (LOGGING_ENABLED) {
1021-
CacheFactory.log(message, CacheFactory.LOG_DEBUG);
1031+
CacheFactory.log(message, CacheFactory.LOG_INFO);
10221032
}
10231033
}
10241034

0 commit comments

Comments
 (0)