Commit adeecf1
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 adeecf1
File tree
2 files changed
+6
-2
lines changed- apm-sniffer/apm-sdk-plugin/jedis-plugins/jedis-4.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/jedis/v4/define
- test/plugin/scenarios/jedis-4.x-scenario
2 files changed
+6
-2
lines changedLines 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 | | |
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