Commit 856a656
committed
Extend Jedis 4.x plugin to support Jedis 5.x
Jedis 5.x is API-compatible with 4.x (all intercepted classes and methods
unchanged). The only blocker was the witness method: Pipeline.persist(1 arg)
was no longer declared on Pipeline in 5.x (moved to PipeliningBase parent).
Fix: change witness to Connection.executeCommand(1 arg) which is declared
in both 4.x and 5.x but not in 3.x, correctly distinguishing the versions.
Resolves apache/skywalking#11747
Locally verified: Jedis 5.2.0 passed.1 parent a9e1e14 commit 856a656
File tree
4 files changed
+8
-3
lines changed- apm-sniffer/apm-sdk-plugin/jedis-plugins/jedis-4.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jedis/v4/define
- docs/en/setup/service-agent/java-agent
- test/plugin/scenarios/jedis-4.x-scenario
4 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | | - | |
40 | | - | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
0 commit comments