[OpenNMS/opennms] 447a80: NMS-20269: Make source file_order unique and safe ...

Chandra Gorantla via opennms-cvs <[email protected]>
Newsgroups gmane.network.opennms.cvs
Message-ID <OpenNMS/opennms/push/refs/heads/cg/jira/NMS-20269/[email protected]>
  Branch: refs/heads/cg/jira/NMS-20269
  Home:   https://github.com/OpenNMS/opennms
  Commit: 447a808e14c894d7fd9ae02856c1f1fe0a618d38
      https://github.com/OpenNMS/opennms/commit/447a808e14c894d7fd9ae02856c1f1fe0a618d38
  Author: Chandra Gorantla <[email protected]>
  Date:   2026-08-29 (Sat, 29 Aug 2026)

  Changed paths:
    M core/schema/src/main/liquibase/36.0.4/changelog.xml
    M features/api-layer/core/src/main/java/org/opennms/features/apilayer/config/EventConfExtensionManager.java
    M opennms-dao-api/src/main/java/org/opennms/netmgt/dao/api/EventConfSourceDao.java
    M opennms-dao/src/main/java/org/opennms/netmgt/dao/hibernate/EventConfSourceDaoHibernate.java
    M opennms-dao/src/test/java/org/opennms/netmgt/dao/EventConfEventDaoIT.java
    M opennms-dao/src/test/java/org/opennms/netmgt/dao/EventConfEventOrderConcurrencyIT.java
    M opennms-dao/src/test/java/org/opennms/netmgt/dao/EventConfSourceDaoIT.java
    M opennms-model/src/main/java/org/opennms/netmgt/model/EventConfSource.java
    M opennms-webapp-rest/src/main/java/org/opennms/web/rest/v2/EventConfPersistenceService.java
    M opennms-webapp-rest/src/main/java/org/opennms/web/rest/v2/EventConfRestService.java
    M opennms-webapp-rest/src/test/java/org/opennms/web/rest/v2/EventConfPersistenceServiceIT.java
    M opennms-webapp-rest/src/test/java/org/opennms/web/rest/v2/EventConfRestServiceIT.java
    M opennms-webapp/src/main/java/org/opennms/web/services/EventConfProgrammaticService.java

  Log Message:
  -----------
  NMS-20269: Make source file_order unique and safe under concurrent changes

file_order is now enforced unique by a deferrable constraint, with existing
duplicates repaired on upgrade. New sources are allocated their position and
eventconf.xml uploads are renumbered inside a serialized transaction, and a
source's events are rewritten under a lock on the source row, so concurrent
creates, uploads and appends can no longer produce duplicate positions.



To unsubscribe from these emails, change your notification settings at https://github.com/OpenNMS/opennms/settings/notifications


_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq
opennms-cvs mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.