This is an automated email from the ASF dual-hosted git repository.
sanjeet006py pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push:
new 77c478f1b0 PHOENIX-7969 Update supported client versions in backward
compatibility (#2584)
77c478f1b0 is described below
commit 77c478f1b0967ab61e75ae5c2a0bb3a29ae82d48
Author: ishitadixit-dot <[email protected]>
AuthorDate: Tue Aug 4 00:33:20 2026 +0530
PHOENIX-7969 Update supported client versions in backward compatibility
(#2584)
---
.../end2end/BackwardCompatibilityTestUtil.java | 18 +-
.../it/resources/compatible_client_versions.json | 181 ++++++++++++++++-----
2 files changed, 151 insertions(+), 48 deletions(-)
diff --git
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityTestUtil.java
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityTestUtil.java
index bfea0ed716..77f6134b44 100644
---
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityTestUtil.java
+++
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityTestUtil.java
@@ -139,14 +139,18 @@ public final class BackwardCompatibilityTestUtil {
BackwardCompatibilityIT.class.getClassLoader().getResourceAsStream(COMPATIBLE_CLIENTS_JSON))
{
assertNotNull(inputStream);
JsonNode jsonNode = mapper.readTree(inputStream);
- JsonNode HBaseProfile = jsonNode.get(hbaseProfile);
- List<MavenCoordinates> artifacts = new ArrayList<>();
- for (final JsonNode clientVersion : HBaseProfile) {
- artifacts.add(mapper.treeToValue(clientVersion,
MavenCoordinates.class));
+ JsonNode hbaseProfileNode = jsonNode.get(hbaseProfile);
+ if (hbaseProfileNode == null) {
+ return clientVersionGroups;
}
- if (!artifacts.isEmpty()) {
- MavenCoordinates primary = artifacts.get(0);
- clientVersionGroups.add(new ClientVersionGroup(primary, artifacts));
+ for (final JsonNode clientVersionGroupNode : hbaseProfileNode) {
+ List<MavenCoordinates> artifacts = new ArrayList<>();
+ for (final JsonNode artifactNode : clientVersionGroupNode) {
+ artifacts.add(mapper.treeToValue(artifactNode,
MavenCoordinates.class));
+ }
+ if (!artifacts.isEmpty()) {
+ clientVersionGroups.add(new ClientVersionGroup(artifacts.get(0),
artifacts));
+ }
}
}
return clientVersionGroups;
diff --git a/phoenix-core/src/it/resources/compatible_client_versions.json
b/phoenix-core/src/it/resources/compatible_client_versions.json
index e48386a44c..72d97c6114 100644
--- a/phoenix-core/src/it/resources/compatible_client_versions.json
+++ b/phoenix-core/src/it/resources/compatible_client_versions.json
@@ -1,50 +1,149 @@
{
"_comment": "Lists all phoenix compatible client versions against the
current branch version for a given hbase profile.",
"2.4": [
- {
- "artifactId": "phoenix-client-hbase-2.4",
- "version": "5.1.2"
- }
+ [
+ {
+ "artifactId": "phoenix-client-hbase-2.4",
+ "version": "5.1.2"
+ }
+ ]
],
"2.5": [
- {
- "artifactId": "phoenix-client-hbase-2.5",
- "version": "5.1.3"
- }
+ [
+ {
+ "artifactId": "phoenix-client-embedded-hbase-2.5",
+ "version": "5.2.2"
+ },
+ {
+ "artifactId": "sqlline",
+ "version": "1.9.0",
+ "groupId": "sqlline"
+ },
+ {
+ "artifactId": "jline-terminal",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-reader",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-builtins",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "log4j-1.2-api",
+ "version": "2.25.3",
+ "groupId": "org.apache.logging.log4j"
+ }
+ ],
+ [
+ {
+ "artifactId": "phoenix-client-embedded-hbase-2.5",
+ "version": "5.3.2"
+ },
+ {
+ "artifactId": "sqlline",
+ "version": "1.9.0",
+ "groupId": "sqlline"
+ },
+ {
+ "artifactId": "jline-terminal",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-reader",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-builtins",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "log4j-1.2-api",
+ "version": "2.25.3",
+ "groupId": "org.apache.logging.log4j"
+ },
+ {
+ "artifactId": "commons-logging",
+ "version": "1.2",
+ "groupId": "commons-logging"
+ }
+ ]
],
"2.6": [
- {
- "artifactId": "phoenix-client-embedded-hbase-2.6",
- "version": "5.2.1"
- },
- {
- "artifactId": "phoenix-core-client",
- "version": "5.2.1"
- },
- {
- "artifactId": "sqlline",
- "version": "1.9.0",
- "groupId": "sqlline"
- },
- {
- "artifactId": "jline-terminal",
- "version": "3.12.1",
- "groupId": "org.jline"
- },
- {
- "artifactId": "jline-reader",
- "version": "3.12.1",
- "groupId": "org.jline"
- },
- {
- "artifactId": "jline-builtins",
- "version": "3.12.1",
- "groupId": "org.jline"
- },
- {
- "artifactId": "log4j-1.2-api",
- "version": "2.18.0",
- "groupId": "org.apache.logging.log4j"
- }
+ [
+ {
+ "artifactId": "phoenix-client-embedded-hbase-2.6",
+ "version": "5.2.2"
+ },
+ {
+ "artifactId": "sqlline",
+ "version": "1.9.0",
+ "groupId": "sqlline"
+ },
+ {
+ "artifactId": "jline-terminal",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-reader",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-builtins",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "log4j-1.2-api",
+ "version": "2.25.3",
+ "groupId": "org.apache.logging.log4j"
+ }
+ ],
+ [
+ {
+ "artifactId": "phoenix-client-embedded-hbase-2.6",
+ "version": "5.3.2"
+ },
+ {
+ "artifactId": "sqlline",
+ "version": "1.9.0",
+ "groupId": "sqlline"
+ },
+ {
+ "artifactId": "jline-terminal",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-reader",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "jline-builtins",
+ "version": "3.12.1",
+ "groupId": "org.jline"
+ },
+ {
+ "artifactId": "log4j-1.2-api",
+ "version": "2.25.3",
+ "groupId": "org.apache.logging.log4j"
+ },
+ {
+ "artifactId": "commons-logging",
+ "version": "1.2",
+ "groupId": "commons-logging"
+ }
+ ]
]
}