Skip to content

Commit

Permalink
output info for topic creation
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Jan 24, 2024
1 parent 0f07581 commit 2935f4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'com.nucleodb'
version = '1.15.6'
version = '1.15.7'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ public void createTopics() {
f.printStackTrace();
}
if (names.stream().filter(name -> name.equals(topic)).count() == 0) {
logger.info("topic not created");
System.exit(-1);
logger.severe("topic not created "+topic);
}
countDownLatchCreatedCheck.countDown();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public void createTopics() {
createTopicsResult.all().whenComplete((c, e) -> {
if (e != null) {
e.printStackTrace();
logger.severe(e.getMessage());
}

countDownLatch.countDown();
});
}else{
Expand All @@ -96,10 +98,10 @@ public void createTopics() {
listTopicsResult.names().whenComplete((names, f)->{
if(f!=null){
f.printStackTrace();
logger.severe(f.getMessage());
}
if (names.stream().filter(name -> name.equals(topic)).count() == 0) {
logger.info("topic not created");
System.exit(-1);
logger.severe("topic not created "+topic);
}
countDownLatchCreatedCheck.countDown();
});
Expand Down

0 comments on commit 2935f4e

Please sign in to comment.