Skip to content

Commit e6fb989

Browse files
authoredMar 5, 2024
PHOENIX-7236 Update version to 5.3.0 and fix issues with maven-gpg-plugin and gnupg (ADDENDUM) (#1841)
1 parent 0ceccde commit e6fb989

File tree

21 files changed

+53
-40
lines changed

21 files changed

+53
-40
lines changed
 

‎dev/create-release/README.txt

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ $ scp ~/gpg.example.apache.pub example.gce.host:
106106
# gpg-agent's extra socket (this will restrict what commands the remote node is allowed to have
107107
# your agent handle. Note that the gpg guide above can help you set this up in your ssh config
108108
# rather than typing it in ssh like this every time.
109+
# Note that as of maven-gpg-plugin 3.0.1, with gnupg >= 2.1, the plugin uses
110+
# `--pinentry-mode error`, which is apparently not supported over the `extra` socket. These
111+
# instructions may require tweaking.
109112
$ ssh -i ~/.ssh/my_id \
110113
-R "/run/user/1000/gnupg/S.gpg-agent:$(gpgconf --list-dir agent-extra-socket)" \
111114
-R "/run/user/1000/gnupg/S.gpg-agent.extra:$(gpgconf --list-dir agent-extra-socket)" \

‎dev/create-release/do-release-docker.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ if [ "${HOST_OS}" == "DARWIN" ]; then
317317
fi
318318
echo "Launching ssh reverse tunnel from the container to gpg agent."
319319
echo " we should clean this up for you. If that fails the PID is in gpg-proxy.ssh.pid"
320-
ssh -p 62222 -R "/home/${USER}/.gnupg/S.gpg-agent:$(gpgconf --list-dir agent-extra-socket)" \
320+
ssh -p 62222 -R "/home/${USER}/.gnupg/S.gpg-agent:$(gpgconf --list-dir agent-socket)" \
321321
-i "${HOME}/.ssh/id_rsa" -N -n localhost >gpg-proxy.ssh.log 2>&1 &
322322
echo $! > "${WORKDIR}/gpg-proxy.ssh.pid"
323323
else
@@ -327,7 +327,7 @@ else
327327
# agent socket and agent extra socket to your local gpg-agent's extra socket. See the README.txt
328328
# for an example.
329329
GPG_PROXY_MOUNT=(--mount \
330-
"type=bind,src=$(gpgconf --list-dir agent-extra-socket),dst=/home/${USER}/.gnupg/S.gpg-agent")
330+
"type=bind,src=$(gpgconf --list-dir agent-socket),dst=/home/${USER}/.gnupg/S.gpg-agent")
331331
fi
332332

333333
banner "Building $RELEASE_TAG; output will be at $WORKDIR/output"

‎dev/create-release/mac-sshd-gpg-agent/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#
3535
# test like:
3636
#
37-
# ssh -p 62222 -R "/home/${USER}/.gnupg/S.gpg-agent:$(gpgconf --list-dir agent-extra-socket)" \
37+
# ssh -p 62222 -R "/home/${USER}/.gnupg/S.gpg-agent:$(gpgconf --list-dir agent-socket)" \
3838
# -i "${HOME}/.ssh/id_rsa" -N -n localhost
3939
#
4040
# launch a docker container to do work that shares the mount for the gpg agent

‎dev/create-release/release-util.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
DRY_RUN=${DRY_RUN:-1} #default to dry run
2020
DEBUG=${DEBUG:-0}
2121
GPG=${GPG:-gpg}
22-
GPG_ARGS=(--no-autostart --batch)
22+
GPG_ARGS=(--no-autostart --batch --pinentry-mode error)
2323
if [ -n "${GPG_KEY}" ]; then
2424
GPG_ARGS=("${GPG_ARGS[@]}" --local-user "${GPG_KEY}")
2525
fi

‎phoenix-assembly/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727
<artifactId>phoenix-assembly</artifactId>
2828
<name>Phoenix Assembly</name>

‎phoenix-client-parent/phoenix-client-embedded/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix-client-parent</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727

2828
<artifactId>phoenix-client-embedded-${hbase.suffix}</artifactId>

‎phoenix-client-parent/phoenix-client-lite/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix-client-parent</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727

2828
<artifactId>phoenix-client-lite-${hbase.suffix}</artifactId>

‎phoenix-client-parent/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727
<artifactId>phoenix-client-parent</artifactId>
2828
<name>Phoenix Client Parent</name>

‎phoenix-core-client/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727
<artifactId>phoenix-core-client</artifactId>
2828
<name>Phoenix Core Client</name>

‎phoenix-core-client/src/main/java/org/apache/phoenix/coprocessorclient/MetaDataProtocol.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
*/
6666
public abstract class MetaDataProtocol extends MetaDataService {
6767
public static final int PHOENIX_MAJOR_VERSION = 5;
68-
public static final int PHOENIX_MINOR_VERSION = 2;
68+
public static final int PHOENIX_MINOR_VERSION = 3;
6969

7070
public static final int PHOENIX_PATCH_NUMBER = 0;
7171
public static final int PHOENIX_VERSION =
@@ -100,8 +100,9 @@ public abstract class MetaDataProtocol extends MetaDataService {
100100
public static final long MIN_SYSTEM_TABLE_TIMESTAMP_4_16_0 = MIN_TABLE_TIMESTAMP + 33;
101101
public static final long MIN_SYSTEM_TABLE_TIMESTAMP_5_1_0 = MIN_SYSTEM_TABLE_TIMESTAMP_4_16_0;
102102
public static final long MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0 = MIN_TABLE_TIMESTAMP + 38;
103+
public static final long MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0 = MIN_TABLE_TIMESTAMP + 39;
103104
// MIN_SYSTEM_TABLE_TIMESTAMP needs to be set to the max of all the MIN_SYSTEM_TABLE_TIMESTAMP_* constants
104-
public static final long MIN_SYSTEM_TABLE_TIMESTAMP = MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0;
105+
public static final long MIN_SYSTEM_TABLE_TIMESTAMP = MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0;
105106

106107
// Version below which we should disallow usage of mutable secondary indexing.
107108
public static final int MUTABLE_SI_VERSION_THRESHOLD = VersionUtil.encodeVersion("0", "94", "10");
@@ -149,6 +150,7 @@ public abstract class MetaDataProtocol extends MetaDataService {
149150
TIMESTAMP_VERSION_MAP.put(MIN_SYSTEM_TABLE_TIMESTAMP_5_0_0, "5.0.x");
150151
TIMESTAMP_VERSION_MAP.put(MIN_SYSTEM_TABLE_TIMESTAMP_5_1_0, "5.1.x");
151152
TIMESTAMP_VERSION_MAP.put(MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0, "5.2.x");
153+
TIMESTAMP_VERSION_MAP.put(MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0, "5.3.x");
152154
}
153155

154156
public static final String CURRENT_CLIENT_VERSION = PHOENIX_MAJOR_VERSION + "." + PHOENIX_MINOR_VERSION + "." + PHOENIX_PATCH_NUMBER;

‎phoenix-core-client/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java

+27-19
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.MIN_SYSTEM_TABLE_TIMESTAMP;
2525
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.MIN_SYSTEM_TABLE_TIMESTAMP_4_15_0;
2626
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.MIN_SYSTEM_TABLE_TIMESTAMP_4_16_0;
27-
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0;
27+
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0;
2828
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.PHOENIX_MAJOR_VERSION;
2929
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.PHOENIX_MINOR_VERSION;
3030
import static org.apache.phoenix.coprocessorclient.MetaDataProtocol.PHOENIX_PATCH_NUMBER;
@@ -4124,24 +4124,32 @@ protected PhoenixConnection upgradeSystemCatalogIfRequired(PhoenixConnection met
41244124
}
41254125
}
41264126
}
4127-
if (currentServerSideTableTimeStamp < MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0) {
4128-
metaConnection = addColumnsIfNotExists(metaConnection,
4129-
PhoenixDatabaseMetaData.SYSTEM_CATALOG, MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0 - 4,
4130-
PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME
4131-
+ " " + PVarchar.INSTANCE.getSqlTypeName());
4132-
4133-
metaConnection = addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4134-
MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0 - 3,
4135-
PhoenixDatabaseMetaData.SCHEMA_VERSION + " " + PVarchar.INSTANCE.getSqlTypeName());
4136-
metaConnection = addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4137-
MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0 - 2,
4138-
PhoenixDatabaseMetaData.EXTERNAL_SCHEMA_ID + " " + PVarchar.INSTANCE.getSqlTypeName());
4139-
metaConnection = addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4140-
MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0 - 1,
4141-
PhoenixDatabaseMetaData.STREAMING_TOPIC_NAME + " " + PVarchar.INSTANCE.getSqlTypeName());
4142-
metaConnection = addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4143-
MIN_SYSTEM_TABLE_TIMESTAMP_5_2_0,
4144-
PhoenixDatabaseMetaData.INDEX_WHERE + " " + PVarchar.INSTANCE.getSqlTypeName());
4127+
if (currentServerSideTableTimeStamp < MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0) {
4128+
metaConnection =
4129+
addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4130+
MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0 - 4,
4131+
PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME + " "
4132+
+ PVarchar.INSTANCE.getSqlTypeName());
4133+
metaConnection =
4134+
addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4135+
MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0 - 3,
4136+
PhoenixDatabaseMetaData.SCHEMA_VERSION + " "
4137+
+ PVarchar.INSTANCE.getSqlTypeName());
4138+
metaConnection =
4139+
addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4140+
MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0 - 2,
4141+
PhoenixDatabaseMetaData.EXTERNAL_SCHEMA_ID + " "
4142+
+ PVarchar.INSTANCE.getSqlTypeName());
4143+
metaConnection =
4144+
addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4145+
MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0 - 1,
4146+
PhoenixDatabaseMetaData.STREAMING_TOPIC_NAME + " "
4147+
+ PVarchar.INSTANCE.getSqlTypeName());
4148+
metaConnection =
4149+
addColumnsIfNotExists(metaConnection, PhoenixDatabaseMetaData.SYSTEM_CATALOG,
4150+
MIN_SYSTEM_TABLE_TIMESTAMP_5_3_0,
4151+
PhoenixDatabaseMetaData.INDEX_WHERE + " "
4152+
+ PVarchar.INSTANCE.getSqlTypeName());
41454153
UpgradeUtil.bootstrapLastDDLTimestampForIndexes(metaConnection);
41464154
}
41474155
return metaConnection;

‎phoenix-core-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>phoenix</artifactId>
2323
<groupId>org.apache.phoenix</groupId>
24-
<version>5.2.0-SNAPSHOT</version>
24+
<version>5.3.0-SNAPSHOT</version>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>
2727
<artifactId>phoenix-core-server</artifactId>

‎phoenix-core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727
<artifactId>phoenix-core</artifactId>
2828
<name>Phoenix Core</name>

‎phoenix-hbase-compat-2.4.1/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.apache.phoenix</groupId>
2525
<artifactId>phoenix</artifactId>
26-
<version>5.2.0-SNAPSHOT</version>
26+
<version>5.3.0-SNAPSHOT</version>
2727
</parent>
2828

2929
<artifactId>phoenix-hbase-compat-2.4.1</artifactId>

‎phoenix-hbase-compat-2.5.0/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.apache.phoenix</groupId>
2525
<artifactId>phoenix</artifactId>
26-
<version>5.2.0-SNAPSHOT</version>
26+
<version>5.3.0-SNAPSHOT</version>
2727
</parent>
2828

2929
<artifactId>phoenix-hbase-compat-2.5.0</artifactId>

‎phoenix-hbase-compat-2.5.4/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.apache.phoenix</groupId>
2525
<artifactId>phoenix</artifactId>
26-
<version>5.2.0-SNAPSHOT</version>
26+
<version>5.3.0-SNAPSHOT</version>
2727
</parent>
2828

2929
<artifactId>phoenix-hbase-compat-2.5.4</artifactId>

‎phoenix-mapreduce-byo-shaded-hbase/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727
<artifactId>phoenix-mapreduce-byo-shaded-hbase-${hbase.suffix}</artifactId>
2828
<name>Phoenix Mapreduce</name>

‎phoenix-pherf/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727

2828
<artifactId>phoenix-pherf</artifactId>

‎phoenix-server/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.apache.phoenix</groupId>
2626
<artifactId>phoenix</artifactId>
27-
<version>5.2.0-SNAPSHOT</version>
27+
<version>5.3.0-SNAPSHOT</version>
2828
</parent>
2929
<artifactId>phoenix-server-${hbase.suffix}</artifactId>
3030
<name>Phoenix Server JAR</name>

‎phoenix-tracing-webapp/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache.phoenix</groupId>
2424
<artifactId>phoenix</artifactId>
25-
<version>5.2.0-SNAPSHOT</version>
25+
<version>5.3.0-SNAPSHOT</version>
2626
</parent>
2727

2828
<artifactId>phoenix-tracing-webapp</artifactId>

‎pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<modelVersion>4.0.0</modelVersion>
2121
<groupId>org.apache.phoenix</groupId>
2222
<artifactId>phoenix</artifactId>
23-
<version>5.2.0-SNAPSHOT</version>
23+
<version>5.3.0-SNAPSHOT</version>
2424
<packaging>pom</packaging>
2525
<name>Apache Phoenix</name>
2626
<description>A SQL layer over HBase</description>

0 commit comments

Comments
 (0)
Please sign in to comment.