core
core copied to clipboard
Fix Cluster Status report
With the changes to the heartbeat table, we need to make sure that the cluster status report is giving us good data. For example, I have a cluster of two servers 👍
MariaDB [dotcms]> select * from cluster_server;
+--------------------------------------+--------------------------------------+---------------+----------------+------+------------+-----------------------+-----------------+--------------+------+
| server_id | cluster_id | name | ip_address | host | cache_port | es_transport_tcp_port | es_network_port | es_http_port | key_ |
+--------------------------------------+--------------------------------------+---------------+----------------+------+------------+-----------------------+-----------------+--------------+------+
| 6e570d83-a737-4210-8d90-4992c3c41ee9 | f05c3056-4f59-42f3-bed5-890f9dc27236 | hot-fries.lan | 192.168.86.110 | NULL | 5702 | 9310 | NULL | 9201 | n/a |
| 857fca00-6b50-48dc-8dd9-882b26a47f8b | f05c3056-4f59-42f3-bed5-890f9dc27236 | hot-fries.lan | 192.168.86.110 | NULL | 5701 | 9309 | NULL | 9200 | n/a |
+--------------------------------------+--------------------------------------+---------------+----------------+------+------------+-----------------------+-----------------+--------------+------+
And I am getting this report:

PR core: https://github.com/dotCMS/core/pull/12985 PR ee: https://github.com/dotCMS/enterprise-2.x/pull/553
Passed QA.
Tested fix with distribution generated from master repo.
Status report is working for both nodes.
Ubuntu 14.04.1 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8