~newell-jensen/maas/fix-1553841

« back to all changes in this revision

Viewing changes to src/maasserver/triggers/tests/test_websocket_listener.py

  • Committer: MAAS Lander
  • Author(s): Gavin Panella
  • Date: 2016-04-29 18:23:21 UTC
  • mfrom: (4970.3.17 dns-serials--bug-1571645)
  • Revision ID: maas_lander-20160429182321-cy8c8wr4u0m85hwa
[r=lamont,mpontillo][bug=1571645][author=allenap] Drive DNS publication from the DNSPublication model.

Previously a sequence was being used directly for the zone serial. However, sequences are explicitly not transactional: in an HA environment, a zone published on one region host would not necessarily have the same serial as the same zone published on another host. Using a regular table ensures that all region processes use the same serial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from maasserver.models.partition import MIN_PARTITION_SIZE
21
21
from maasserver.testing.factory import factory
22
22
from maasserver.testing.testcase import MAASTransactionServerTestCase
23
 
from maasserver.triggers.tests.helper import TransactionalHelpersMixin
 
23
from maasserver.triggers.testing import TransactionalHelpersMixin
24
24
from maasserver.triggers.websocket import register_websocket_triggers
25
25
from maasserver.utils.threads import deferToDatabase
26
26
from provisioningserver.utils.twisted import (