Skip to content

[Jedis 3.x] HostAndPort should not include log object, otherwise may cause problem in java agent scenarios #4111

@renyingxin

Description

@renyingxin

Problem description:
HostAndPort should not include log object, otherwise may cause problem in java agent scenarios

Problem detail:
In java agent scenarios, we may intercept the redis.clients.jedis.Jedis constructor and proccess the initialization event,we may need proccess the HostAndPort object, but this will cause all slf4j loggers begin to init。
if there are some other agent try to intercept the slf4j loggers, they may not take effect as the logger object is already initializated.

suggestion:
https://github.com/redis/jedis/blob/3.x/src/main/java/redis/clients/jedis/HostAndPort.java
I think should remove logger related from this info object, as you did in jedis 4.3.x.
I hope you can release new 3.x version and solve this problem, thanks~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions