rewolf opened a new pull request, #24249:
URL: https://github.com/apache/kafka/pull/24249

   KAFKA-18988 added a connector-type metric to connector-task-metrics whose
   value is the ConnectorType enum rather than a String. Over remote JMX,
   attribute values are Java-serialized, so any client without the Connect
   runtime on its classpath (for example the Datadog agent's JMXFetch) fails
   to read the attribute with an UnmarshalException caused by
   ClassNotFoundException for ConnectorType. Some collectors treat that as a
   connection failure and drop all metrics for the worker.
   
   Return ConnectorType.toString() instead. This yields "source", "sink" or
   "unknown", matching the connector-level connector-type metric and the
   metric description in ConnectMetricsRegistry.
   
   Testing: added WorkerTaskTest#testConnectorTypeMetricIsString, which
   builds a TaskPluginsMetadata for sample sink and source connectors and
   asserts the metric value is the expected String. It fails without this
   change because the value is not a String.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to