If an incoming event does not have the "dpName" property set, then JdbcEventWriter will set the distPoller field for the event to the string "undefined". Because there is no row in the distPoller table with the key "undefined", this can break some database mappings. For instance, if you call OnmsEvent.getDistPoller() or OnmsAlarm.getDistPoller() (for alarms that have been rolled up from events), these calls will throw an exception that no row in the distPoller table can be found.
We should change JdbcEventWriter to set the distPoller key to "localhost" instead since this is the default row that is inserted into the distPoller table.
We should also write a liquibase migration that updates the value in all existing events and alarms.