question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom SequencingPolicy cannot be configured programmatically

See original GitHub issue

Basic information

  • Axon Framework version: 4.6.1 (works as expected in 4.5.x)
  • JDK version: 17
  • Complete executable reproducer if available (e.g. GitHub Repo):

Steps to reproduce

Register a custom sequencing policy for an event processor, e.g. using Spring as follows:

@Autowired
 fun configureFirestoreSequencingPolicy(config: EventProcessingConfigurer) {
        config.registerSequencingPolicy("my-processing-group") {
            PropertySequencingPolicy
              .builder(UserOperationEvent::class.java, String::class.java)
              .propertyName(UserOperationEvent::aggregateId.name)
              .fallbackSequencingPolicy(SequentialPerAggregatePolicy())
              .build()
     }
 }

Expected behaviour

The sequencing policy should be used for alle events within that processing group.

Actual behaviour

The default SequentialPerAggregatePolicyis used instead.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
maverick1601commented, Nov 4, 2022

Thanks @smcvb and sorry for the inconvenience and confusion I caused with that issue.

0reactions
smcvbcommented, Nov 4, 2022

No worries! Your input is much appreciated. 😃 At the very least, somebody who encounters a similar issue might hit this topic, finding a solution to their problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Axon framework's sequencing policy works in terms of ...
All policies must implement the SequencingPolicy interface. This interface defines a single method, getSequenceIdentifierFor, that returns ...
Read more >
Reference Guide
All components can be configured programmatically and do not require Spring ... When using Spring, the easiest way to create a custom Command...
Read more >
Custom SequencingPolicy
Is the best way to do this writing a custom SequencingPolicy? If the answer to the above question ... This policy is configured...
Read more >
S-1 - SEC.gov
These securities may not be sold until the registration statement filed with ... Our product is highly customizable and provides an optimized experience...
Read more >
6 Oracle JDeveloper 10g
Section 6.3.8, "Custom JClient Error Handler Dialog Migration" ... JDeveloper or other tools may not compile correctly after migrating to Oracle JDeveloper ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found