First step for T1465.
Note that it changes the value of topic_prefix.
Paths
| Differential D914 Authored by vlorentz on Jan 10 2019, 4:26 PM.
Details Summary First step for T1465. Note that it changes the value of topic_prefix. Test Plan There is a new test
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptJan 10 2019, 4:26 PM2019-01-10 16:26:03 (UTC+1) vlorentz edited the summary of this revision. (Show Details)Jan 10 2019, 4:26 PM2019-01-10 16:26:58 (UTC+1) Comment Actions Build is green Harbormaster completed remote builds in B3388: Diff 2908.Jan 10 2019, 4:29 PM2019-01-10 16:29:35 (UTC+1) Comment Actions I don't think there's any need to create the changed topics, or to add the mutable objects config : while its name doesn't reflect that, the new topic has always been designed as a way to notify the producer component of objects that need to be updated in the topic the actual clients subscribe to. That's also apparent in D916 where the changed topic just ends up being used for feeding the same "final" topic. Comment Actions To drive the point further : the journal hasn't been designed as a feed of all changes to the archive; it's currently designed as a way to get *the latest version* of all the objects that have been added to the archive, in a somewhat streaming fashion. In the topics that the consumers are listening to, Kafka compaction rules will make messages about "old" versions of objects disappear when a new version (with an identical key) appears. This revision is now accepted and ready to land.Jan 10 2019, 4:50 PM2019-01-10 16:50:05 (UTC+1) Closed by commit rDSTOd19392c0fadb: Notify Kafka when an origin visit is update. (authored by vlorentz). · Explain WhyJan 10 2019, 4:51 PM2019-01-10 16:51:44 (UTC+1) This revision was automatically updated to reflect the committed changes. Comment Actions Build is green Harbormaster completed remote builds in B3392: Diff 2912.Jan 10 2019, 4:52 PM2019-01-10 16:52:08 (UTC+1) Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/154/ Harbormaster failed remote builds in B3394: Diff 2914!Jan 10 2019, 4:52 PM2019-01-10 16:52:37 (UTC+1) Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/155/
Revision Contents
Diff 2914 swh/storage/listener.py
swh/storage/sql/70-swh-triggers.sql
swh/storage/tests/test_listener.py
|