greyp9 commented on a change in pull request #5829:
URL: https://github.com/apache/nifi/pull/5829#discussion_r818231418
##########
File path:
nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/loadbalance/LoadBalanceIT.java
##########
@@ -283,32 +287,11 @@ private long getQueueBytes(final String connectionId) {
return
connectionStatusDto.getAggregateSnapshot().getBytesQueued().longValue();
}
-
- private boolean isNodeOffloaded() {
- final ClusterEntity clusterEntity;
- try {
- clusterEntity = getNifiClient().getControllerClient().getNodes();
- } catch (final Exception e) {
- e.printStackTrace();
- return false;
- }
-
- final Collection<NodeDTO> nodeDtos =
clusterEntity.getCluster().getNodes();
-
- for (final NodeDTO dto : nodeDtos) {
- final String status = dto.getStatus();
- if (status.equalsIgnoreCase("OFFLOADED")) {
- return true;
- }
- }
-
- return false;
- }
-
private boolean isConnectionDoneLoadBalancing(final String connectionId) {
try {
final ConnectionEntity connectionEntity =
getNifiClient().getConnectionClient().getConnection(connectionId);
final String loadBalanceStatus =
connectionEntity.getComponent().getLoadBalanceStatus();
+ logger.trace("LoadBalanceStatus = [{}]", loadBalanceStatus);
Review comment:
This helped identify a few cases where the load balance subsystem failed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]