Skip to content

Commit 8583681

Browse files
author
Tim Middleton
committed
Update with new 2 step build for main
1 parent 9538aa5 commit 8583681

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

.github/workflows/test-against-snapshot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -91,8 +91,12 @@ jobs:
9191
cd $CLONE_DIR
9292
if [ $COH_BRANCH != "main" ] ; then
9393
git checkout $COH_BRANCH
94+
mvn --file prj/pom.xml --batch-mode -e -DskipTests clean install
95+
else
96+
# main requires updated 2 step build for coherence.jar and everything else
97+
mvn --file prj/pom.xml --batch-mode -e -DskipTests clean install
98+
mvn --file prj/pom.xml --batch-mode -e -P-coherence,modules -nsu -DskipTests clean install
9499
fi
95-
mvn --file prj/pom.xml --batch-mode -e -DskipTests clean install
96100
cd $DIR
97101
98102
- name: Build Plugin

coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/VisualVMModel.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public List<Entry<Object, Data>> getData(RequestSender requestSender, Class claz
368368
{
369369
boolean fFallBack = false;
370370

371-
// Re Bug 22132359 - When we are connecting to pre 12.2.1.1.0 cluster from 12.2.1.1.0 or above and we
371+
// Re Bug 22132359 - When we are connecting to pre 12.2.1.1.0 cluster from 12.2.1.1.0 or above, and we
372372
// are collecting ProxyStats, we need to force to use JMX rather than report
373373
if (isReporterAvailable() != null && isReporterAvailable() &&
374374
!(clazz.equals(ProxyData.class) && getClusterVersionAsInt() < 122110))
@@ -462,7 +462,7 @@ public List<Entry<Object, Data>> getData(RequestSender requestSender, Class claz
462462
}
463463
else if (sCoherenceVersion.startsWith("2"))
464464
{
465-
// check for versions such as 20.06 or 20.06.01 and convert them to an ever increasing number
465+
// check for versions such as 20.06 or 20.06.01 and convert them to an ever-increasing number
466466
// 20.06 -> 2006000
467467
// 20.06.1 -> 2006100
468468
// 20.06.10 -> 2006100
@@ -474,16 +474,19 @@ else if (sCoherenceVersion.startsWith("2"))
474474
nVersion = Integer.parseInt(sCoherenceVersion.replaceAll("\\.", ""));
475475
}
476476

477+
LOGGER.info("RAW Coherence version identified as " + m_sClusterVersion);
478+
LOGGER.info("Numeric Coherence version identified as " + nVersion);
479+
477480
if (nVersion >= 121300)
478481
{
479482
// only set if the reporter available is it is not already set as we may have
480483
// got to this code path because is1213AndAbove() is still null
481-
setReporterAvailable(isReporterAvailable() == null ? true : isReporterAvailable());
484+
setReporterAvailable(isReporterAvailable() == null || isReporterAvailable());
482485
m_fis1213AndAbove = true;
483486
}
484487
else
485488
{
486-
setReporterAvailable(isReporterAvailable() == null ? false : isReporterAvailable());
489+
setReporterAvailable(isReporterAvailable() != null && isReporterAvailable());
487490
m_fis1213AndAbove = false;
488491
}
489492
m_nClusterVersion = nVersion;

coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/tablemodel/model/NodeStorageData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050

5151
/**
52-
* A class to hold basic member data.
52+
* A class to hold storage enabled node data
5353
*
5454
* @author tam 2020.02.13
5555
* @since 14.1.1.0
@@ -122,7 +122,7 @@ public SortedMap<Object, Data> getAggregatedDataFromHttpQuerying(VisualVMModel m
122122
}
123123

124124
/**
125-
* Check if a node is storage enabled or not byt checking if the owned
125+
* Check if a node is storage enabled or not by checking if the owned
126126
* partitions > 0 on at least one for the services.
127127
*
128128
* @param mapNodes {@link Map} of nodes
@@ -139,7 +139,7 @@ private void checkNode(Map<Integer, Integer> mapNodes, int nNodeId, int nOwnedPr
139139
if (ownedPrimaryPartitions <= 0 && nOwnedPrimary > 0)
140140
{
141141
// currently the node we are working with has no-storage enabled partitions
142-
// and the the current service and node does, so lets update it
142+
// and the current service and node does, so lets update it
143143
mapNodes.put(nNodeId, nOwnedPrimary);
144144
}
145145
// else fallthrough as we leave any node with > 0 with that value

coherence-visualvm-plugin/src/main/resources/com/oracle/coherence/plugin/visualvm/Bundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ LBL_outgoing_msg_result_menu=Are you sure you want to retrieve Pending Outgoing
225225
LBL_result_is=Result: {0}
226226

227227
# CoherenceElasticDataPanel
228-
LBL_ram_journal_files=RAM Journal Usage (Committed)
229-
LBL_flash_journal_files=Flash Journal Usage (Committed)
228+
LBL_ram_journal_files=RAM Journal File Usage (Committed)
229+
LBL_flash_journal_files=Flash Journal File Usage (Committed)
230230
LBL_ram_journal_detail=RAM Journal Detail
231231
LBL_flash_journal_detail=Flash Journal Detail
232232
LBL_click_for_detail=Click for more detail...

0 commit comments

Comments
 (0)