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.

Saga default processor type

See original GitHub issue

Basic information

  • Axon Framework version: 4.5
  • JDK version: 15

I’m trying to better understand how sagas works and I’ve created three different projects to make some tests. I haven’t configure db to keep all in-memory. I discovered that the default configuration for sagas seems to be with subscribing processor instead the expected tracking processor.

Steps to reproduce

I wrote this simple saga:

@Saga
@Slf4j
public class TestSaga {
	@StartSaga
	@EndSaga
	@SagaEventHandler(associationProperty = "id")
	public void on(SampleEvent event) {
		log.debug("Test Saga handler. Event id: " + event.getId());
	}
}

This code print log only for live events, not for past events.

Then I tried simply adding the annotation @ProcessingGroup("MyTestSagaProcessor") and I noticed that it started to print debug log at startup for all past and live events (as expected).

Is this the intended behaviour?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alezanolacommented, Sep 6, 2021

Although this might help, I am not certain how this deviates away from what you’re experiencing.

This resolved my problem: do not delete Db where tokens are saved even while testing (use Replay API instead).

Thanks again for your time and your help @smcvb.

1reaction
alezanolacommented, Aug 20, 2021

Test projects uploaded to this repository.

I suggest to replicate the steps described in my previous comment.

I have used IntelliJ IDEA to create the projects first and second. To start AxonServer and MongoDB simply run docker compose up in the root folder. I left a TODO on the commented @ProcessingGroup annotation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sagas - Axon Reference Guide
A Saga is a special type of Event Listener: one that manages a business transaction. ... Sagas are managed by a single Processor...
Read more >
SAGA GIS Binary Grid File Format — GDAL documentation
The driver supports writing the following SAGA datatypes: BYTE_UNSIGNED (GDT_Byte), SHORTINT_UNSIGNED (GDT_UInt16), SHORTINT (GDT_Int16), INTEGER_UNSIGNED ( ...
Read more >
Saga - Apache Camel
The Saga eip supports 7 options, which are listed below. Name, Description, Default, Type. sagaService. Refers to ...
Read more >
Saga handler not executed if Event Handling Component and ...
The eventHandlers of normal events and Saga should check if the annotated processors exist and add their handlers to the existing processor.
Read more >
RSAGA.pdf - The Comprehensive R Archive Network
RSAGA: SAGA Geoprocessing and Terrain Analysis in R. Description ... path in which to write output grid files; defaults to path.
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