Skip to content

Support traffic purchases after LSU#4143

Merged
moritzkiefer-da merged 2 commits intocanton-3.5from
cocreature/lsu-traffic-purchase
Mar 3, 2026
Merged

Support traffic purchases after LSU#4143
moritzkiefer-da merged 2 commits intocanton-3.5from
cocreature/lsu-traffic-purchase

Conversation

@moritzkiefer-da
Copy link
Contributor

[static]

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

@moritzkiefer-da moritzkiefer-da force-pushed the cocreature/lsu-traffic-purchase branch 7 times, most recently from 6d987ce to ec29489 Compare March 3, 2026 14:53
[ci]

Signed-off-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
@moritzkiefer-da moritzkiefer-da force-pushed the cocreature/lsu-traffic-purchase branch from ec29489 to ac31477 Compare March 3, 2026 14:54
.map(_.filter { announcement =>
announcement.mapping.upgradeTime
.isAfter(now) && announcement.mapping.successorSynchronizerId != synchronizerId
now.isAfter(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

lazy val scheduledLsu = ScheduledLsuConfig(
Instant.now().plusSeconds(150).truncatedTo(ChronoUnit.SECONDS),
Instant.now().plusSeconds(210).truncatedTo(ChronoUnit.SECONDS),
Instant.now().plusSeconds(250).truncatedTo(ChronoUnit.SECONDS),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these numbers are more or less random but I kept getting issues (on CI) where a validator tried to startup when the upgrade time was already reached. I don't think I made anything slower there given that my code only kicks in after the upgrade time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the Daml change this should hopefully become quite a bit simpler as we can ensure that now is after all the apps have started already.

@moritzkiefer-da moritzkiefer-da requested a review from nicu-da March 3, 2026 15:21
@moritzkiefer-da moritzkiefer-da marked this pull request as ready for review March 3, 2026 15:21
Copy link
Contributor

@nicu-da nicu-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice, thanks!

} else {
successorActiveCache.get(()).map { active =>
if (active) {
successorActiveRef.set(active)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would be nice to have a log once this is set to true for the first time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, added

[static]

Signed-off-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
@moritzkiefer-da moritzkiefer-da merged commit eed0614 into canton-3.5 Mar 3, 2026
47 checks passed
@moritzkiefer-da moritzkiefer-da deleted the cocreature/lsu-traffic-purchase branch March 3, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants