Claus Ibsen created CAMEL-27990:
-----------------------------------

             Summary: camel-kafka - dev console bugs and repository metadata
                 Key: CAMEL-27990
                 URL: https://issues.apache.org/jira/browse/CAMEL-27990
             Project: Camel
          Issue Type: Bug
          Components: camel-kafka
            Reporter: Claus Ibsen
             Fix For: 4.25.0


h4. 1. KafkaDevConsole text: Commit Offset Since prints about 56 years

It computes System.currentTimeMillis() - r.epoch(), but epoch is 
OffsetAndMetadata.leaderEpoch(), not a time. Proposed change: drop the line or 
print the leader epoch.

h4. 2. DefaultMetricsCollector.collectCommitMetrics: the console waits the full 
timeout and shows nothing

consumer.committed(assignment) returns null for a partition with no committed 
offset; e.getValue().offset() throws a NullPointerException that is caught, and 
the latch is never counted down. Proposed change: skip null values.

h4. 3. KafkaIdempotentRepository / KafkaKeyValueRepository metadata

consumerConfig/producerConfig have no @Metadata, and bootstrapServers is marked 
required although it is not needed when those are set.

Found while checking the option and console descriptions of CAMEL-27980.

----
_Filed by Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to