Skip to content

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Jan 29, 2024

What this PR does / why we need it:

The processor executes a set of tasks.
It cleanly separates I/O from logic and therefore is more testable than the current worker implementation.

type processor struct {
store store
logger log.Logger
}

Note:

Only commit cd28931 is relevant. The rest of the commits are part of different PRs (#11792 and #11809), which need to be merged first.

The processor is not used yet in the worker.

Certain parts must be refactored when #11810 is merged.

The processor executes a set of tasks.It cleanly separates I/O from
logic and therefore is more testable than the current worker
implementation.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum force-pushed the chaudum/extract-processor branch from 92a7874 to 9602214 Compare January 29, 2024 16:35
@chaudum chaudum marked this pull request as ready for review January 29, 2024 17:18
@chaudum chaudum requested a review from a team as a code owner January 29, 2024 17:18
Copy link
Contributor

@salvacorts salvacorts left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum enabled auto-merge (squash) January 30, 2024 10:36
@chaudum chaudum merged commit ecab33a into main Jan 30, 2024
@chaudum chaudum deleted the chaudum/extract-processor branch January 30, 2024 10:51
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…te struct (grafana#11812)

**What this PR does / why we need it**:

The processor executes a set of tasks.
It cleanly separates I/O from logic and therefore is more testable than the current worker implementation.

https://github.com/grafana/loki/blob/9602214abf5f0b016f1cad90e921d1e4d969856c/pkg/bloomgateway/processor.go#L33-L36
    
**Note**:

The processor is not used yet in the worker.

**Certain parts must be refactored when grafana#11810 is merged.**

---------

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants