Skip to content

apm-cassandra-java-driver-3.x-plugin stament can't get host bug #6983

@DeadLion

Description

@DeadLion

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Bug

SkyWalking 8.5.0

now the cassandra version is 3.7.2 ,we use 3.4.0

        String remotePeer = statement.getHost() == null ? connectionInfo.getContactPoints() : (statement.getHost()
                                                                                                        .getSocketAddress()
                                                                                                        .getHostName() + ":" + statement
            .getHost()
            .getSocketAddress()
            .getPort());

statement.getHost() will throw NPE on 3.4.0 ,maybe we should check null before geting host to adapter low version's driver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionEnd user question and discussion.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions