Skip to content

Commit 6d16aff

Browse files
Merge branch 'apache:master' into master
2 parents 8d42636 + 0b1ab34 commit 6d16aff

File tree

363 files changed

+5126
-3731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+5126
-3731
lines changed

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache ShardingSphere
2-
Copyright 2018-2024 The Apache Software Foundation
2+
Copyright 2018-2025 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ We deeply appreciate [community contributors](https://shardingsphere.apache.org/
114114

115115
<hr>
116116

117-
:white_check_mark: Version 5.5.1: released :tada:
117+
:white_check_mark: Version 5.5.2: released :tada:
118118

119119
🔗 For the release notes, follow this link to the relevant [GitHub page](https://github.com/apache/shardingsphere/blob/master/RELEASE-NOTES.md).
120120

121-
:soon: Version 5.5.2
121+
:soon: Version 5.5.3
122122

123-
We are currently working towards our 5.5.2 milestone.
123+
We are currently working towards our 5.5.3 milestone.
124124
Keep an eye on the [milestones page](https://github.com/apache/shardingsphere/milestones) of this repo to stay up to date.
125125

126126
[comment]: <> (##)

README_ZH.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ ShardingSphere 已于 2020 年 4 月 16 日成为 [Apache 软件基金会](https
108108

109109
<hr>
110110

111-
:white_check_mark: Version 5.5.1: 已发布 :tada:
111+
:white_check_mark: Version 5.5.2: 已发布 :tada:
112112

113113
🔗 请访问 [发布说明](https://github.com/apache/shardingsphere/blob/master/RELEASE-NOTES.md) 获得更详细的信息.
114114

115-
:soon: Version 5.5.2
115+
:soon: Version 5.5.3
116116

117-
我们目前正在开发 5.5.2 里程碑。
117+
我们目前正在开发 5.5.3 里程碑。
118118
请访问[里程碑](https://github.com/apache/shardingsphere/milestones) 获取最新信息。
119119

120120
##

RELEASE-NOTES.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
## Release 5.5.2-SNAPSHOT
1+
## Release 5.5.3-SNAPSHOT
2+
3+
### API Changes
4+
5+
### New Features
6+
7+
### Enhancements
8+
9+
1. Metadata: Add support for partition tables in PostgreSQL [#34346](https://github.com/apache/shardingsphere/pull/34346)
10+
1. SQL Binder: Support select aggregation function sql bind in projection and having - [#34379](https://github.com/apache/shardingsphere/pull/34379)
11+
1. Proxy Native: Add GraalVM Reachability Metadata and corresponding nativeTest for Firebird - [#34307](https://github.com/apache/shardingsphere/pull/34307)
12+
1. Infra: Support for connecting to Presto's Memory Connector in ShardingSphere config - [#34432](https://github.com/apache/shardingsphere/pull/34432)
13+
14+
### Bug Fixes
15+
16+
### Change Logs
17+
18+
1. [MILESTONE](https://github.com/apache/shardingsphere/milestone/31)
19+
20+
## Release 5.5.2
221

322
### API Changes
423

agent/plugins/logging/type/file/src/main/java/org/apache/shardingsphere/agent/plugin/logging/file/advice/MetaDataContextsFactoryAdvice.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,25 @@
1919

2020
import lombok.extern.slf4j.Slf4j;
2121
import org.apache.shardingsphere.agent.api.advice.TargetAdviceMethod;
22-
import org.apache.shardingsphere.agent.plugin.core.advice.AbstractStaticMethodAdvice;
22+
import org.apache.shardingsphere.agent.api.advice.TargetAdviceObject;
23+
import org.apache.shardingsphere.agent.plugin.core.advice.AbstractInstanceMethodAdvice;
2324
import org.apache.shardingsphere.agent.plugin.core.recorder.MethodTimeRecorder;
2425

2526
/**
2627
* Meta data contexts factory advice.
2728
*/
2829
@Slf4j
29-
public final class MetaDataContextsFactoryAdvice extends AbstractStaticMethodAdvice {
30+
public final class MetaDataContextsFactoryAdvice extends AbstractInstanceMethodAdvice {
3031

3132
private final MethodTimeRecorder methodTimeRecorder = new MethodTimeRecorder(MetaDataContextsFactoryAdvice.class);
3233

3334
@Override
34-
public void beforeMethod(final Class<?> clazz, final TargetAdviceMethod method, final Object[] args, final String pluginType) {
35+
public void beforeMethod(final TargetAdviceObject target, final TargetAdviceMethod method, final Object[] args, final String pluginType) {
3536
methodTimeRecorder.recordNow(method);
3637
}
3738

3839
@Override
39-
public void afterMethod(final Class<?> clazz, final TargetAdviceMethod method, final Object[] args, final Object result, final String pluginType) {
40+
public void afterMethod(final TargetAdviceObject target, final TargetAdviceMethod method, final Object[] args, final Object result, final String pluginType) {
4041
log.info("Build meta data contexts finished, cost {} milliseconds.", methodTimeRecorder.getElapsedTimeAndClean(method));
4142
}
4243
}

agent/plugins/logging/type/file/src/main/resources/META-INF/conf/file-advisors.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
#
1717

1818
advisors:
19-
- target: org.apache.shardingsphere.mode.metadata.MetaDataContextsFactory
19+
- target: org.apache.shardingsphere.mode.metadata.factory.MetaDataContextsFactory
2020
advice: org.apache.shardingsphere.agent.plugin.logging.file.advice.MetaDataContextsFactoryAdvice
2121
pointcuts:
2222
- name: create
2323
type: method
2424
params:
2525
- index: 0
26-
type: org.apache.shardingsphere.mode.metadata.persist.MetaDataPersistService
27-
- index: 1
2826
type: org.apache.shardingsphere.mode.manager.ContextManagerBuilderParameter
29-
- index: 2
30-
type: org.apache.shardingsphere.infra.instance.ComputeNodeInstanceContext

agent/plugins/metrics/core/src/test/java/org/apache/shardingsphere/agent/plugin/metrics/core/exporter/impl/proxy/ProxyMetaDataInfoExporterTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
import org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
2828
import org.apache.shardingsphere.infra.metadata.database.resource.ResourceMetaData;
2929
import org.apache.shardingsphere.infra.metadata.database.resource.unit.StorageUnit;
30+
import org.apache.shardingsphere.infra.metadata.statistics.ShardingSphereStatistics;
31+
import org.apache.shardingsphere.infra.metadata.statistics.builder.ShardingSphereStatisticsFactory;
3032
import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
3133
import org.apache.shardingsphere.mode.manager.ContextManager;
3234
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
33-
import org.apache.shardingsphere.mode.metadata.ShardingSphereStatisticsFactory;
34-
import org.apache.shardingsphere.mode.metadata.persist.MetaDataPersistService;
3535
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
3636
import org.apache.shardingsphere.test.mock.AutoMockExtension;
3737
import org.apache.shardingsphere.test.mock.StaticMockSettings;
@@ -82,7 +82,7 @@ private ContextManager mockContextManager() {
8282
when(database.getProtocolType()).thenReturn(TypedSPILoader.getService(DatabaseType.class, "FIXTURE"));
8383
ShardingSphereMetaData metaData = mock(ShardingSphereMetaData.class);
8484
when(metaData.getAllDatabases()).thenReturn(Collections.singleton(database));
85-
MetaDataContexts metaDataContexts = new MetaDataContexts(metaData, ShardingSphereStatisticsFactory.create(mock(MetaDataPersistService.class), metaData));
85+
MetaDataContexts metaDataContexts = new MetaDataContexts(metaData, ShardingSphereStatisticsFactory.create(metaData, new ShardingSphereStatistics()));
8686
ContextManager result = mock(ContextManager.class, RETURNS_DEEP_STUBS);
8787
when(result.getMetaDataContexts()).thenReturn(metaDataContexts);
8888
return result;

agent/plugins/metrics/core/src/test/java/org/apache/shardingsphere/agent/plugin/metrics/core/exporter/impl/proxy/ProxyStateExporterTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
import org.apache.shardingsphere.agent.plugin.metrics.core.config.MetricConfiguration;
2424
import org.apache.shardingsphere.agent.plugin.metrics.core.fixture.collector.MetricsCollectorFixture;
2525
import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData;
26+
import org.apache.shardingsphere.infra.metadata.statistics.ShardingSphereStatistics;
2627
import org.apache.shardingsphere.infra.state.instance.InstanceStateContext;
2728
import org.apache.shardingsphere.mode.manager.ContextManager;
2829
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
29-
import org.apache.shardingsphere.mode.metadata.ShardingSphereStatisticsFactory;
30-
import org.apache.shardingsphere.mode.metadata.persist.MetaDataPersistService;
3130
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
3231
import org.apache.shardingsphere.test.mock.AutoMockExtension;
3332
import org.apache.shardingsphere.test.mock.StaticMockSettings;
@@ -74,7 +73,7 @@ void assertExportWithContextManager() {
7473

7574
private ContextManager mockContextManager() {
7675
ShardingSphereMetaData metaData = new ShardingSphereMetaData();
77-
MetaDataContexts metaDataContexts = new MetaDataContexts(metaData, ShardingSphereStatisticsFactory.create(mock(MetaDataPersistService.class), metaData));
76+
MetaDataContexts metaDataContexts = new MetaDataContexts(metaData, new ShardingSphereStatistics());
7877
ContextManager result = mock(ContextManager.class, RETURNS_DEEP_STUBS);
7978
when(result.getMetaDataContexts()).thenReturn(metaDataContexts);
8079
return result;

agent/plugins/metrics/type/prometheus/src/test/java/org/apache/shardingsphere/agent/plugin/metrics/prometheus/PrometheusPluginLifecycleServiceTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424
import org.apache.shardingsphere.infra.instance.metadata.InstanceMetaData;
2525
import org.apache.shardingsphere.infra.lock.LockContext;
2626
import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData;
27+
import org.apache.shardingsphere.infra.metadata.statistics.ShardingSphereStatistics;
2728
import org.apache.shardingsphere.infra.util.eventbus.EventBusContext;
2829
import org.apache.shardingsphere.mode.manager.ContextManager;
2930
import org.apache.shardingsphere.mode.manager.standalone.workerid.StandaloneWorkerIdGenerator;
3031
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
31-
import org.apache.shardingsphere.mode.metadata.ShardingSphereStatisticsFactory;
32-
import org.apache.shardingsphere.mode.metadata.persist.MetaDataPersistService;
3332
import org.apache.shardingsphere.mode.spi.repository.PersistRepository;
3433
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
3534
import org.apache.shardingsphere.test.mock.AutoMockExtension;
@@ -71,7 +70,7 @@ void assertStart() throws IOException {
7170

7271
private ContextManager mockContextManager() {
7372
ShardingSphereMetaData metaData = new ShardingSphereMetaData();
74-
MetaDataContexts metaDataContexts = new MetaDataContexts(metaData, ShardingSphereStatisticsFactory.create(mock(MetaDataPersistService.class), metaData));
73+
MetaDataContexts metaDataContexts = new MetaDataContexts(metaData, new ShardingSphereStatistics());
7574
ComputeNodeInstanceContext computeNodeInstanceContext = new ComputeNodeInstanceContext(
7675
new ComputeNodeInstance(mock(InstanceMetaData.class)), new ModeConfiguration("Standalone", null), new EventBusContext());
7776
computeNodeInstanceContext.init(new StandaloneWorkerIdGenerator(), mock(LockContext.class));

distribution/proxy/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
1718
FROM alpine AS prepare
1819

1920
ARG APP_NAME
20-
ENV LOCAL_PATH /opt/shardingsphere-proxy
21+
ENV LOCAL_PATH=/opt/shardingsphere-proxy
2122

2223
ADD target/${APP_NAME}.tar.gz /opt
2324
RUN mv /opt/${APP_NAME} ${LOCAL_PATH} && mkdir -p ${LOCAL_PATH}/ext-lib
2425

2526
FROM eclipse-temurin:21-jdk
26-
MAINTAINER ShardingSphere "[email protected]"
27+
LABEL org.opencontainers.image.authors="ShardingSphere [email protected]"
2728

28-
ENV LOCAL_PATH /opt/shardingsphere-proxy
29-
ENV IS_DOCKER true
29+
ENV LOCAL_PATH=/opt/shardingsphere-proxy
30+
ENV IS_DOCKER=true
3031

3132
COPY --from=prepare ${LOCAL_PATH} ${LOCAL_PATH}
3233
ENTRYPOINT ${LOCAL_PATH}/bin/start.sh ${PORT}

0 commit comments

Comments
 (0)