Skip to content

Commit

Permalink
Fixed issue that resulted in out of order execution of reactive messa…
Browse files Browse the repository at this point in the history
…ge handlers
  • Loading branch information
cer committed Jun 22, 2022
1 parent 52063a6 commit 1419a4f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: 2.1
orbs:
# eventuate-gradle-build-and-test: "eventuate_io/[email protected]"
# Some features unsupported by above ORB e.g. set-multi-arch-image-env-vars.sh
build-and-test:
jobs:
build-and-test:
Expand Down
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
eventuateMavenRepoUrl.split(',').each { repoUrl -> maven { url repoUrl } }
}
dependencies {
classpath "com.avast.gradle:gradle-docker-compose-plugin:0.13.2"
classpath "com.avast.gradle:gradle-docker-compose-plugin:0.12.0"
classpath "io.eventuate.plugins.gradle:eventuate-plugins-gradle-publish:$eventuatePluginsGradleVersion"
}
}
Expand All @@ -29,11 +29,10 @@ subprojects {
eventuateMavenRepoUrl.split(',').each { repoUrl -> maven { url repoUrl } }
}

dependencies {
testCompile "junit:junit:4.12"
}


if (!project.name.endsWith("-bom"))
dependencies {
testCompile "junit:junit:4.12"
}
}

gradle.projectsEvaluated {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ private void handle(RawKafkaMessage message, BiConsumer<Void, Throwable> callbac
try {
kafkaMessageHandler
.apply(new KafkaMessage(EventuateBinaryMessageEncoding.bytesToString(message.getPayload())))
.whenComplete(callback);
} catch (Throwable e) {
.get();
} catch (RuntimeException e) {
callback.accept(null, e);
throw e;
} catch (Throwable e) {
callback.accept(null, e);
throw new RuntimeException(e);
}
}

Expand Down
5 changes: 0 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
org.gradle.jvmargs=-XX:MaxPermSize=512m

deployUrl=file:///Users/cer/.m2/testdeploy
bintrayRepoType=defineMe

bintrayPkgName=eventuate-messaging-kafka
bintrayPkgVcsUrl=https://github.com/eventuate-foundation/eventuate-messaging-kafka

eventuateMavenRepoUrl=file:///Users/cer/.m2/testdeploy,https://snapshots.repositories.eventuate.io/repository

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-all.zip
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ include 'eventuate-messaging-kafka-micronaut-producer'
include 'eventuate-messaging-kafka-integration-test'
include 'eventuate-messaging-kafka-spring-integration-test'
include 'eventuate-messaging-kafka-micronaut-integration-test'
include 'eventuate-messaging-kafka-bom'

0 comments on commit 1419a4f

Please sign in to comment.