Skip to content

Commit 30bab65

Browse files
authored
Merge pull request uPortal-Project#3001 from bjagg/fix/jgroups-clear-table-on-view-change
fix(jgroups): clear JDBC_PING table on view change
2 parents f97fc63 + d26567e commit 30bab65

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • uPortal-webapp/src/main/resources/properties

uPortal-webapp/src/main/resources/properties/jgroups.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@
4343
/>
4444

4545
<!-- User database for discovery; initialize_sql to blank prevents
46-
table creation, which we handle with Hibernate via dbloader -->
46+
table creation, which we handle with Hibernate via dbloader.
47+
clear_table_on_view_change has the coordinator wipe the table on
48+
each view change so live members re-register and rows left behind
49+
by abruptly terminated (e.g. kill -9) nodes do not accumulate. -->
4750
<JDBC_PING
4851
connection_url="${jgroups.connection.url}"
4952
connection_username="${jgroups.connection.username}"
5053
connection_password="${jgroups.connection.password}"
5154
connection_driver="${jgroups.connection.driver_class}"
55+
clear_table_on_view_change="true"
5256
initialize_sql=""
5357
/>
5458
<MERGE3 min_interval="5000"

0 commit comments

Comments
 (0)