Skip to content

Commit

Permalink
Fix "trace in value" failing when hitting a tombstone
Browse files Browse the repository at this point in the history
  • Loading branch information
patschuh committed Oct 7, 2021
1 parent 013ce35 commit e5106a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/at/esque/kafka/Controller.java
Expand Up @@ -416,6 +416,9 @@ private ListCell<String> topicListCellFactory() {
backGroundTaskHolder.setBackGroundTaskDescription("tracing in Value: " + traceInput.getSearch());
Pattern pattern = Pattern.compile(traceInput.getSearch());
trace(topicMessageTypeConfig, consumerConfig, (ConsumerRecord cr) -> {
if (cr.value() == null){
return false;
}
Matcher matcher = pattern.matcher(cr.value().toString());
return matcher.find();
}, null, traceInput.getEpoch());
Expand Down

0 comments on commit e5106a1

Please sign in to comment.