confluentinc / confluentinc/parallel-consumer

Warning log to verbose in RemovedPartitionState

Open
#631 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Java
Stars
299
Forks
172
PR merge metrics
No merged PRs in 30d

Description

Hi,

In case of lot of topics and/or partitions [this log](https://github.com/confluentinc/parallel-consumer/blob/8907c804d768059b3a59a9192f7b5847e3fec1b4/parallel-consumer-core/src/main/java/io/confluent/parallelconsumer/state/RemovedPartitionState.java#L68) is becoming huge

```java
log.warn("Dropping polled record batch for partition no longer assigned. WC: {}", recordsAndEpoch);
```
add will be truncated by some log tooling (for Example in Datadog)

I think that the useful information at warn level are the topic name and partition number.

The full state of EpochAndRecordsMap may be logged at the debug level

Regards
Benoit

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.