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

Elasticsearch: Make flows type signature simpler to prepare for withContext #1515

Merged
merged 6 commits into from
Feb 20, 2019

Conversation

ennru
Copy link
Member

@ennru ennru commented Feb 19, 2019

Purpose

Change Elasticsearch flow signatures to single element flows.

Background Context

Akka has introduced a new type of flow withContext which supports passThroughs to be passed hidden from the user.
Elasticsearch flows used to do have internal logic for batching which made them consume WriteMessages but emit Seq[WriteResult]s which does not work together with context promotion.

The retry logic in ElasticsearchFlowStage does not work with context promotion, either.

This ended up in a major rewrite of ElasticsearchFlowStage.

References

akka/akka#25951

Copy link
Member

@2m 2m left a comment

Choose a reason for hiding this comment

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

LGTM, great simplification.

@@ -118,15 +118,15 @@ Java

| Parameter | Default | Description |
| ------------------- | ------- | ------------------------------------------------------------------------------------------------------ |
| bufferSize | 10 | `ElasticsearchSink` puts messages by one bulk request per messages of this buffer size. |
| bufferSize | 10 | Flow and Sink batche messages to bulk requests when back-pressure applies. |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| bufferSize | 10 | Flow and Sink batche messages to bulk requests when back-pressure applies. |
| bufferSize | 10 | Flow and Sink batch messages to bulk requests when back-pressure applies. |

@ennru ennru merged commit 8d9c95d into akka:master Feb 20, 2019
@ennru ennru deleted the elasticsearc-with-context branch February 20, 2019 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants