Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7253

The connector type responded by worker is always null when creating connector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 2.0.0
    • Fix Version/s: 2.2.0, 2.1.1, 2.0.2
    • Component/s: None
    • Labels:
      None

      Description

                              // Note that we use the updated connector config despite the fact that we don't have an updated
                              // snapshot yet. The existing task info should still be accurate.
                              Map<String, String> map = configState.connectorConfig(connName);
                              ConnectorInfo info = new ConnectorInfo(connName, config, configState.tasks(connName),
                                  map == null ? null : connectorTypeForClass(map.get(ConnectorConfig.CONNECTOR_CLASS_CONFIG)));
      

      the null map causes the null type in response. The connector class name can be taken from the config of request instead since we require the config should contain the connector class name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chia7712 Chia-Ping Tsai
                Reporter:
                chia7712 Chia-Ping Tsai
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: