Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unexpected end of ldes behavior #687

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

jobulcke
Copy link
Collaborator

@jobulcke jobulcke commented Oct 2, 2024

No description provided.

public boolean hasProcessedAllData() {
final double dataIn = Metrics.counter(LDIO_DATA_IN, PIPELINE_NAME, pipelineName, LDIO_COMPONENT_NAME, componentName).count();
final double dataOut = Metrics.counter(LDIO_DATA_OUT, PIPELINE_NAME, pipelineName).count();
log.atInfo().log("Received data: {} - Sent data: {}", dataIn, dataOut);
Copy link
Collaborator

Choose a reason for hiding this comment

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

now this i really don't like :p this will flood the logs like hell

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah oops, was something during development and I forgot to delete it or set it at debug level 🙈

@@ -104,7 +108,17 @@ protected void pause() {
}

private void shutdownPipeline() {
log.info("SHUTTING DOWN pipeline {} because end of LDES has been reached", pipelineName);
applicationEventPublisher.publishEvent(new PipelineShutdownEvent(pipelineName));
Thread.ofVirtual().name("ldio-ldes-client-shutdown").start(() -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

magic string

Copy link

sonarcloud bot commented Oct 3, 2024

@jobulcke jobulcke added this pull request to the merge queue Oct 3, 2024
Merged via the queue into develop with commit 735753d Oct 3, 2024
4 checks passed
@jobulcke jobulcke deleted the fix/unexpected-end-of-ldes-behavior branch October 3, 2024 11:06
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.

LDIO 'End Of LDES' Handling does not check the pipeline if anything still needs to be outputted
2 participants