-
Notifications
You must be signed in to change notification settings - Fork 11
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
Refactor command producers #1120
Draft
eduwercamacaro
wants to merge
25
commits into
master
Choose a base branch
from
refactor-command-producers
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
624ce84
adds extra producer for task claim events
eduwercamacaro 1131eef
asyc producer callback completion
eduwercamacaro d11d34b
refactor poll task protocol
eduwercamacaro a7dffed
refactor task claims
eduwercamacaro 9ac2da9
configs
eduwercamacaro 6659a7b
merge master
eduwercamacaro 8d13df0
merge master
eduwercamacaro 847b8b8
spotless
eduwercamacaro 1272b18
refactor task claim producer
eduwercamacaro 96e874b
adds unit test for task queue producer
eduwercamacaro 4a9e040
merge master
eduwercamacaro 82451b0
fix compilation errors
eduwercamacaro 06ec897
erge branch 'master' into refactor-command-producers
eduwercamacaro 4a98d7d
installs jemalloc on server dockerfile
eduwercamacaro 1cefa45
Merge branch 'server-imports-jemalloc' into refactor-command-producers
eduwercamacaro 687e548
disables config setters
eduwercamacaro 7336810
rollback rocksdb config setter
bf52f34
spotless fix
eduwercamacaro cb0ca35
increase rates per second
eduwercamacaro e42182b
merge master
eduwercamacaro 745d67e
merge master
eduwercamacaro 4673dac
async waiters metric
eduwercamacaro c35bb0f
Merge branch 'master' into refactor-command-producers
eduwercamacaro 7c13d26
preserve one task queue ordering
eduwercamacaro d540530
taskqueue refactor
eduwercamacaro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ plugins { | |
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version=0.0.0-development | ||
group=io.littlehorse | ||
kafkaVersion=3.8.0 | ||
kafkaVersion=3.8.1 | ||
lombokVersion=1.18.32 | ||
grpcVersion=1.56.1 | ||
junitVersion=5.9.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
kafka: | ||
ports: | ||
- "9092:9092" | ||
container_name: lh-server-kafka | ||
image: apache/kafka:3.8.0 | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '3500' | ||
memory: '12G' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
server/src/main/java/io/littlehorse/common/LHProductionExceptionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.littlehorse.common; | ||
|
||
import org.apache.kafka.clients.producer.ProducerRecord; | ||
import org.apache.kafka.common.errors.TransactionAbortedException; | ||
import org.apache.kafka.streams.errors.ProductionExceptionHandler; | ||
|
||
import java.util.Map; | ||
|
||
public class LHProductionExceptionHandler implements ProductionExceptionHandler { | ||
|
||
public LHProductionExceptionHandler() { | ||
|
||
} | ||
|
||
@Override | ||
public ProductionExceptionHandlerResponse handle(ProducerRecord<byte[], byte[]> record, Exception exception) { | ||
if (exception instanceof TransactionAbortedException) { | ||
return ProductionExceptionHandlerResponse.CONTINUE; | ||
} | ||
return ProductionExceptionHandlerResponse.FAIL; | ||
} | ||
|
||
@Override | ||
public void configure(Map<String, ?> configs) { | ||
//nothing to do | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:porg: