diff --git a/.github/workflows/plugins-test.2.yaml b/.github/workflows/plugins-test.2.yaml index a67c2a2b9..19773ad29 100644 --- a/.github/workflows/plugins-test.2.yaml +++ b/.github/workflows/plugins-test.2.yaml @@ -67,7 +67,7 @@ jobs: - shardingsphere-3.x-scenario - shardingsphere-4.0.x-scenario - shardingsphere-4.x-scenario - - shardingsphere-5.0.0-beta-scenario + - shardingsphere-5.0.0-scenario - sofarpc-scenario - solrj-7.x-scenario - spring-3.0.x-scenario diff --git a/CHANGES.md b/CHANGES.md index 3b402986a..71b97f1c9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -25,6 +25,7 @@ Release Notes. * Migrate base images to Temurin and add images for ARM. * (Plugin Test) Fix compiling issues in many plugin tests due to they didn't lock the Spring version, and Spring 3 is incompatible with 2.x APIs and JDK8 compiling. +* Support ShardingSphere 5.0.0 #### Documentation diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/pom.xml b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/pom.xml index a934c1ae7..0e6130701 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/pom.xml +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/pom.xml @@ -31,7 +31,7 @@ sharding-sphere-3.x-plugin sharding-sphere-4.0.x-plugin sharding-sphere-4.1.0-plugin - shardingsphere-5.0.0-beta-plugin + sharding-sphere-5.0.0-plugin diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/pom.xml b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/pom.xml similarity index 93% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/pom.xml rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/pom.xml index 9f88b2599..54e8b64a9 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/pom.xml +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/pom.xml @@ -25,15 +25,15 @@ 4.0.0 - apm-shardingsphere-5.0.0-beta-plugin + apm-shardingsphere-5.0.0-plugin jar - shardingsphere-5.0.0-beta-plugin + sharding-sphere-5.0.0-plugin http://maven.apache.org UTF-8 - 5.0.0-beta + 5.0.0 diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/Constant.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/Constant.java similarity index 93% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/Constant.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/Constant.java index 6848fcf5f..acf48f9d5 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/Constant.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/Constant.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; public final class Constant { diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ExecuteInterceptor.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ExecuteInterceptor.java similarity index 97% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ExecuteInterceptor.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ExecuteInterceptor.java index c68abb32e..67b6f9f5b 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ExecuteInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ExecuteInterceptor.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.shardingsphere.infra.executor.kernel.model.ExecutorDataMap; import org.apache.skywalking.apm.agent.core.context.ContextManager; diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/JDBCRootInvokeInterceptor.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/JDBCRootInvokeInterceptor.java similarity index 97% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/JDBCRootInvokeInterceptor.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/JDBCRootInvokeInterceptor.java index c482fb5d2..1f6085b5c 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/JDBCRootInvokeInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/JDBCRootInvokeInterceptor.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.shardingsphere.infra.executor.kernel.model.ExecutorDataMap; import org.apache.skywalking.apm.agent.core.context.ContextManager; diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ParseInterceptor.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ParseInterceptor.java similarity index 97% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ParseInterceptor.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ParseInterceptor.java index 27188e7d1..0dd6e73c2 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ParseInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ParseInterceptor.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.skywalking.apm.agent.core.context.ContextManager; import org.apache.skywalking.apm.agent.core.context.tag.Tags; diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ProxyRootInvokeInterceptor.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ProxyRootInvokeInterceptor.java similarity index 97% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ProxyRootInvokeInterceptor.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ProxyRootInvokeInterceptor.java index ea2b24c62..677091f41 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/ProxyRootInvokeInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/ProxyRootInvokeInterceptor.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.shardingsphere.infra.executor.kernel.model.ExecutorDataMap; import org.apache.skywalking.apm.agent.core.context.ContextManager; diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/RewriteInterceptor.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/RewriteInterceptor.java similarity index 97% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/RewriteInterceptor.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/RewriteInterceptor.java index 8fc2aef61..a708dbf1a 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/RewriteInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/RewriteInterceptor.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.skywalking.apm.agent.core.context.ContextManager; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance; diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/RouteInterceptor.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/RouteInterceptor.java similarity index 97% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/RouteInterceptor.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/RouteInterceptor.java index 33e5b0b9a..38f5e2202 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/RouteInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/RouteInterceptor.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.skywalking.apm.agent.core.context.ContextManager; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance; diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/AbstractShardingSphereV500BetaInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/AbstractShardingSphereV500Instrumentation.java similarity index 85% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/AbstractShardingSphereV500BetaInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/AbstractShardingSphereV500Instrumentation.java index 48aeca9cc..bd3261820 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/AbstractShardingSphereV500BetaInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/AbstractShardingSphereV500Instrumentation.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine; -public abstract class AbstractShardingSphereV500BetaInstrumentation extends ClassInstanceMethodsEnhancePluginDefine { +public abstract class AbstractShardingSphereV500Instrumentation extends ClassInstanceMethodsEnhancePluginDefine { @Override protected final String[] witnessClasses() { diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ExecuteInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ExecuteInstrumentation.java similarity index 91% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ExecuteInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ExecuteInstrumentation.java index 4570a39f8..0e8bb4c65 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ExecuteInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ExecuteInstrumentation.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.matcher.ElementMatcher; @@ -24,7 +24,6 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterc import org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch; import org.apache.skywalking.apm.agent.core.plugin.match.NameMatch; -import org.apache.skywalking.apm.plugin.shardingsphere.v500beta.ExecuteInterceptor; import static net.bytebuddy.matcher.ElementMatchers.isPrivate; import static net.bytebuddy.matcher.ElementMatchers.named; @@ -33,7 +32,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named; * {@link ExecuteInstrumentation} presents that skywalking intercepts {@link * org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback}. */ -public class ExecuteInstrumentation extends AbstractShardingSphereV500BetaInstrumentation { +public class ExecuteInstrumentation extends AbstractShardingSphereV500Instrumentation { private static final String ENHANCE_CLASS = "org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback"; @@ -48,7 +47,7 @@ public class ExecuteInstrumentation extends AbstractShardingSphereV500BetaInstru @Override public String getMethodsInterceptor() { - return ExecuteInterceptor.class.getName(); + return "org.apache.skywalking.apm.plugin.shardingsphere.v500.ExecuteInterceptor"; } @Override diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/JDBCRootInvokeInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/JDBCRootInvokeInstrumentation.java similarity index 93% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/JDBCRootInvokeInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/JDBCRootInvokeInstrumentation.java index fcc9c6d77..f71c933f7 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/JDBCRootInvokeInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/JDBCRootInvokeInstrumentation.java @@ -16,14 +16,13 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.matcher.ElementMatcher; import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch; -import org.apache.skywalking.apm.plugin.shardingsphere.v500beta.JDBCRootInvokeInterceptor; import static net.bytebuddy.matcher.ElementMatchers.named; import static net.bytebuddy.matcher.ElementMatchers.takesNoArguments; @@ -41,7 +40,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.MultiClassNameMa *
  • {@link org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement#executeBatch}
  • * */ -public class JDBCRootInvokeInstrumentation extends AbstractShardingSphereV500BetaInstrumentation { +public class JDBCRootInvokeInstrumentation extends AbstractShardingSphereV500Instrumentation { private static final String[] ENHANCE_CLASSES = { "org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement", @@ -64,7 +63,7 @@ public class JDBCRootInvokeInstrumentation extends AbstractShardingSphereV500Bet @Override public String getMethodsInterceptor() { - return JDBCRootInvokeInterceptor.class.getName(); + return "org.apache.skywalking.apm.plugin.shardingsphere.v500.JDBCRootInvokeInterceptor"; } @Override diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ParseInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ParseInstrumentation.java similarity index 91% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ParseInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ParseInstrumentation.java index 4feba63ea..5277bd5b2 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ParseInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ParseInstrumentation.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.matcher.ElementMatcher; @@ -24,14 +24,13 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterc import org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch; import org.apache.skywalking.apm.agent.core.plugin.match.NameMatch; -import org.apache.skywalking.apm.plugin.shardingsphere.v500beta.ParseInterceptor; import static net.bytebuddy.matcher.ElementMatchers.named; /** * {@link ParseInstrumentation} presents that skywalking intercepts {@link org.apache.shardingsphere.infra.parser.ShardingSphereSQLParserEngine}. */ -public class ParseInstrumentation extends AbstractShardingSphereV500BetaInstrumentation { +public class ParseInstrumentation extends AbstractShardingSphereV500Instrumentation { private static final String ENHANCE_CLASS = "org.apache.shardingsphere.infra.parser.ShardingSphereSQLParserEngine"; @@ -46,7 +45,7 @@ public class ParseInstrumentation extends AbstractShardingSphereV500BetaInstrume @Override public String getMethodsInterceptor() { - return ParseInterceptor.class.getName(); + return "org.apache.skywalking.apm.plugin.shardingsphere.v500.ParseInterceptor"; } @Override diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ProxyRootInvokeInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ProxyRootInvokeInstrumentation.java similarity index 90% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ProxyRootInvokeInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ProxyRootInvokeInstrumentation.java index ddf194c4d..38194b11f 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/ProxyRootInvokeInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/ProxyRootInvokeInstrumentation.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.matcher.ElementMatcher; @@ -24,14 +24,13 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterc import org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch; import org.apache.skywalking.apm.agent.core.plugin.match.NameMatch; -import org.apache.skywalking.apm.plugin.shardingsphere.v500beta.ProxyRootInvokeInterceptor; import static net.bytebuddy.matcher.ElementMatchers.named; /** * ProxyRootInvokeInstrumentation presents that skywalking intercepts org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask. */ -public class ProxyRootInvokeInstrumentation extends AbstractShardingSphereV500BetaInstrumentation { +public class ProxyRootInvokeInstrumentation extends AbstractShardingSphereV500Instrumentation { private static final String ENHANCE_CLASS = "org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask"; @@ -46,7 +45,7 @@ public class ProxyRootInvokeInstrumentation extends AbstractShardingSphereV500Be @Override public String getMethodsInterceptor() { - return ProxyRootInvokeInterceptor.class.getName(); + return "org.apache.skywalking.apm.plugin.shardingsphere.v500.ProxyRootInvokeInterceptor"; } @Override diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/RewriteInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/RewriteInstrumentation.java similarity index 91% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/RewriteInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/RewriteInstrumentation.java index b78063373..e4409a5db 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/RewriteInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/RewriteInstrumentation.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.matcher.ElementMatcher; @@ -25,12 +25,11 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterc import org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch; import org.apache.skywalking.apm.agent.core.plugin.match.NameMatch; -import org.apache.skywalking.apm.plugin.shardingsphere.v500beta.RewriteInterceptor; /** * {@link RewriteInstrumentation} presents that skywalking intercepts {@link org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry}. */ -public class RewriteInstrumentation extends AbstractShardingSphereV500BetaInstrumentation { +public class RewriteInstrumentation extends AbstractShardingSphereV500Instrumentation { private static final String ENHANCE_CLASS = "org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry"; @@ -46,7 +45,7 @@ public class RewriteInstrumentation extends AbstractShardingSphereV500BetaInstru @Override public String getMethodsInterceptor() { - return RewriteInterceptor.class.getName(); + return "org.apache.skywalking.apm.plugin.shardingsphere.v500.RewriteInterceptor"; } @Override diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/RouteInstrumentation.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/RouteInstrumentation.java similarity index 91% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/RouteInstrumentation.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/RouteInstrumentation.java index f31dc0389..11e039128 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/define/RouteInstrumentation.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/define/RouteInstrumentation.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define; +package org.apache.skywalking.apm.plugin.shardingsphere.v500.define; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.matcher.ElementMatcher; @@ -25,12 +25,11 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterc import org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint; import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch; import org.apache.skywalking.apm.agent.core.plugin.match.NameMatch; -import org.apache.skywalking.apm.plugin.shardingsphere.v500beta.RouteInterceptor; /** * {@link RouteInstrumentation} presents that skywalking intercepts {@link org.apache.shardingsphere.infra.route.engine.SQLRouteEngine}. */ -public class RouteInstrumentation extends AbstractShardingSphereV500BetaInstrumentation { +public class RouteInstrumentation extends AbstractShardingSphereV500Instrumentation { private static final String ENHANCE_CLASS = "org.apache.shardingsphere.infra.route.engine.SQLRouteEngine"; @@ -46,7 +45,7 @@ public class RouteInstrumentation extends AbstractShardingSphereV500BetaInstrume @Override public String getMethodsInterceptor() { - return RouteInterceptor.class.getName(); + return "org.apache.skywalking.apm.plugin.shardingsphere.v500.RouteInterceptor"; } @Override diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/resources/skywalking-plugin.def b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/resources/skywalking-plugin.def similarity index 53% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/resources/skywalking-plugin.def rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/resources/skywalking-plugin.def index 25a0f0578..1f3ee69c6 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/main/resources/skywalking-plugin.def +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/main/resources/skywalking-plugin.def @@ -13,9 +13,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -shardingsphere-5.0.0-beta=org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define.ProxyRootInvokeInstrumentation -shardingsphere-5.0.0-beta=org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define.JDBCRootInvokeInstrumentation -shardingsphere-5.0.0-beta=org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define.ParseInstrumentation -shardingsphere-5.0.0-beta=org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define.RouteInstrumentation -shardingsphere-5.0.0-beta=org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define.RewriteInstrumentation -shardingsphere-5.0.0-beta=org.apache.skywalking.apm.plugin.shardingsphere.v500beta.define.ExecuteInstrumentation +sharding-sphere-5.0.0=org.apache.skywalking.apm.plugin.shardingsphere.v500.define.ProxyRootInvokeInstrumentation +sharding-sphere-5.0.0=org.apache.skywalking.apm.plugin.shardingsphere.v500.define.JDBCRootInvokeInstrumentation +sharding-sphere-5.0.0=org.apache.skywalking.apm.plugin.shardingsphere.v500.define.ParseInstrumentation +sharding-sphere-5.0.0=org.apache.skywalking.apm.plugin.shardingsphere.v500.define.RouteInstrumentation +sharding-sphere-5.0.0=org.apache.skywalking.apm.plugin.shardingsphere.v500.define.RewriteInstrumentation +sharding-sphere-5.0.0=org.apache.skywalking.apm.plugin.shardingsphere.v500.define.ExecuteInstrumentation diff --git a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/test/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/InterceptorTest.java b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/test/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/InterceptorTest.java similarity index 99% rename from apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/test/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/InterceptorTest.java rename to apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/test/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/InterceptorTest.java index 149fa07a0..985c5a597 100644 --- a/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/shardingsphere-5.0.0-beta-plugin/src/test/java/org/apache/skywalking/apm/plugin/shardingsphere/v500beta/InterceptorTest.java +++ b/apm-sniffer/apm-sdk-plugin/shardingsphere-plugins/sharding-sphere-5.0.0-plugin/src/test/java/org/apache/skywalking/apm/plugin/shardingsphere/v500/InterceptorTest.java @@ -16,7 +16,7 @@ * */ -package org.apache.skywalking.apm.plugin.shardingsphere.v500beta; +package org.apache.skywalking.apm.plugin.shardingsphere.v500; import org.apache.shardingsphere.infra.binder.LogicSQL; import org.apache.skywalking.apm.agent.core.context.trace.AbstractTracingSpan; diff --git a/docs/en/setup/service-agent/java-agent/Plugin-list.md b/docs/en/setup/service-agent/java-agent/Plugin-list.md index 9ebd2d4ab..d8f5c5f46 100644 --- a/docs/en/setup/service-agent/java-agent/Plugin-list.md +++ b/docs/en/setup/service-agent/java-agent/Plugin-list.md @@ -79,7 +79,7 @@ - sharding-sphere-3.x - sharding-sphere-4.0.0 - sharding-sphere-4.1.0 -- shardingsphere-5.0.0-beta +- sharding-sphere-5.0.0 - sofarpc - solrj-7.x - spring-annotation diff --git a/docs/en/setup/service-agent/java-agent/Supported-list.md b/docs/en/setup/service-agent/java-agent/Supported-list.md index 6e1f93963..016c45e1a 100644 --- a/docs/en/setup/service-agent/java-agent/Supported-list.md +++ b/docs/en/setup/service-agent/java-agent/Supported-list.md @@ -35,7 +35,7 @@ metrics based on the tracing data. * Mysql Driver 5.x, 6.x, 8.x * Oracle Driver (Optional¹) * H2 Driver 1.3.x -> 1.4.x - * [ShardingSphere](https://github.com/apache/shardingsphere) 3.0.0, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 5.0.0-beta + * [ShardingSphere](https://github.com/apache/shardingsphere) 3.0.0, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 5.0.0 * PostgreSQL Driver 8.x, 9.x, 42.x * Mariadb Driver 2.x, 1.8 * [InfluxDB](https://github.com/influxdata/influxdb-java) 2.5 -> 2.17 diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/config/expectedData.yaml b/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/config/expectedData.yaml deleted file mode 100644 index 3796a2d1c..000000000 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/config/expectedData.yaml +++ /dev/null @@ -1,218 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -segmentItems: -- serviceName: shardingsphere-5.0.0-beta-scenario - segmentSize: gt 0 - segments: - - segmentId: not null - spans: - - operationName: H2/JDBI/PreparedStatement/executeQuery - parentSpanId: 0 - spanId: 1 - spanLayer: Database - startTime: not null - endTime: not null - componentId: 32 - isError: false - spanType: Exit - peer: localhost:-1 - skipAnalysis: false - tags: - - {key: db.type, value: sql} - - {key: db.instance, value: demo_ds_1} - - {key: db.statement, value: SELECT * FROM t_order_0} - - operationName: /ShardingSphere/executeSQL/ - parentSpanId: -1 - spanId: 0 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - refs: - - parentEndpoint: GET:/shardingsphere-5.0.0-beta-scenario/case/execute - networkAddress: '' - refType: CrossThread - parentSpanId: 2 - parentTraceSegmentId: not null - parentServiceInstance: not null - parentService: shardingsphere-5.0.0-beta-scenario - traceId: not null - - segmentId: not null - spans: - - operationName: H2/JDBI/PreparedStatement/executeQuery - parentSpanId: 0 - spanId: 1 - spanLayer: Database - startTime: not null - endTime: not null - componentId: 32 - isError: false - spanType: Exit - peer: localhost:-1 - skipAnalysis: false - tags: - - {key: db.type, value: sql} - - {key: db.instance, value: demo_ds_0} - - {key: db.statement, value: SELECT * FROM t_order_1} - - operationName: /ShardingSphere/executeSQL/ - parentSpanId: -1 - spanId: 0 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - refs: - - parentEndpoint: GET:/shardingsphere-5.0.0-beta-scenario/case/execute - networkAddress: '' - refType: CrossThread - parentSpanId: 2 - parentTraceSegmentId: not null - parentServiceInstance: not null - parentService: shardingsphere-5.0.0-beta-scenario - traceId: not null - - segmentId: not null - spans: - - operationName: H2/JDBI/PreparedStatement/executeQuery - parentSpanId: 0 - spanId: 1 - spanLayer: Database - startTime: not null - endTime: not null - componentId: 32 - isError: false - spanType: Exit - peer: localhost:-1 - skipAnalysis: false - tags: - - {key: db.type, value: sql} - - {key: db.instance, value: demo_ds_1} - - {key: db.statement, value: SELECT * FROM t_order_1} - - operationName: /ShardingSphere/executeSQL/ - parentSpanId: -1 - spanId: 0 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - refs: - - parentEndpoint: GET:/shardingsphere-5.0.0-beta-scenario/case/execute - networkAddress: '' - refType: CrossThread - parentSpanId: 2 - parentTraceSegmentId: not null - parentServiceInstance: not null - parentService: shardingsphere-5.0.0-beta-scenario - traceId: not null - - segmentId: not null - spans: - - operationName: /ShardingSphere/parseSQL/ - parentSpanId: 0 - spanId: 1 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - tags: - - {key: db.statement, value: SELECT * FROM t_order} - - operationName: /ShardingSphere/routeSQL/ - parentSpanId: 2 - spanId: 3 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - - operationName: /ShardingSphere/rewriteSQL/ - parentSpanId: 2 - spanId: 4 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - - operationName: H2/JDBI/PreparedStatement/executeQuery - parentSpanId: 5 - spanId: 6 - spanLayer: Database - startTime: not null - endTime: not null - componentId: 32 - isError: false - spanType: Exit - peer: localhost:-1 - skipAnalysis: false - tags: - - {key: db.type, value: sql} - - {key: db.instance, value: demo_ds_0} - - {key: db.statement, value: SELECT * FROM t_order_0} - - operationName: /ShardingSphere/executeSQL/ - parentSpanId: 2 - spanId: 5 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - - operationName: /ShardingSphere/JDBCRootInvoke/ - parentSpanId: 0 - spanId: 2 - spanLayer: Unknown - startTime: not null - endTime: not null - componentId: 60 - isError: false - spanType: Local - peer: '' - skipAnalysis: false - - operationName: GET:/shardingsphere-5.0.0-beta-scenario/case/execute - parentSpanId: -1 - spanId: 0 - spanLayer: Http - startTime: not null - endTime: not null - componentId: 1 - isError: false - spanType: Entry - peer: '' - skipAnalysis: false - tags: - - {key: url, value: 'http://localhost:8080/shardingsphere-5.0.0-beta-scenario/case/execute'} - - {key: http.method, value: GET} diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/bin/startup.sh b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/bin/startup.sh similarity index 91% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/bin/startup.sh rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/bin/startup.sh index b78ea920e..c4d5a38d5 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/bin/startup.sh +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/bin/startup.sh @@ -18,4 +18,4 @@ home="$(cd "$(dirname $0)"; pwd)" -java -jar ${agent_opts} ${home}/../libs/shardingsphere-5.0.0-beta-scenario.jar & +java -jar ${agent_opts} ${home}/../libs/shardingsphere-5.0.0-scenario.jar & diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-scenario/config/expectedData.yaml b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/config/expectedData.yaml new file mode 100644 index 000000000..448a41f48 --- /dev/null +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/config/expectedData.yaml @@ -0,0 +1,213 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +segmentItems: + - serviceName: shardingsphere-5.0.0-scenario + segmentSize: gt 0 + segments: + - segmentId: not null + spans: + - operationName: H2/JDBI/PreparedStatement/executeQuery + operationId: 0 + parentSpanId: -1 + spanId: 0 + spanLayer: Database + startTime: not null + endTime: not null + componentId: 32 + isError: false + spanType: Exit + peer: localhost:-1 + skipAnalysis: false + tags: + - { key: db.type, value: sql} + - { key: db.instance, value: not null} + - { key: db.statement, value: not null} + - segmentId: not null + spans: + - operationName: H2/JDBI/Statement/executeUpdate + operationId: 0 + parentSpanId: 0 + spanId: 1 + spanLayer: Database + startTime: not null + endTime: not null + componentId: 32 + isError: false + spanType: Exit + peer: localhost:-1 + skipAnalysis: false + tags: + - { key: db.type, value: sql } + - { key: db.instance, value: not null } + - { key: db.statement, value: not null } + - operationName: /ShardingSphere/executeSQL/ + operationId: 0 + parentSpanId: -1 + spanId: 0 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + refs: + - { parentEndpoint: 'HEAD:/shardingsphere-5.0.0-scenario/case/healthCheck', networkAddress: '', + refType: CrossThread, parentSpanId: not null, parentTraceSegmentId: not null, + parentServiceInstance: not null, parentService: shardingsphere-5.0.0-scenario, + traceId: not null } + - segmentId: not null + spans: + - operationName: H2/JDBI/Connection/close + operationId: 0 + parentSpanId: -1 + spanId: 0 + spanLayer: Database + startTime: not null + endTime: not null + componentId: 32 + isError: false + spanType: Exit + peer: localhost:-1 + skipAnalysis: false + tags: + - { key: db.type, value: sql } + - { key: db.instance, value: not null } + - { key: db.statement, value: '' } + - segmentId: not null + spans: + - operationName: H2/JDBI/PreparedStatement/executeQuery + operationId: 0 + parentSpanId: 0 + spanId: 1 + spanLayer: Database + startTime: not null + endTime: not null + componentId: 32 + isError: false + spanType: Exit + peer: localhost:-1 + skipAnalysis: false + tags: + - { key: db.type, value: sql } + - { key: db.instance, value: not null } + - { key: db.statement, value: not null } + - operationName: /ShardingSphere/executeSQL/ + operationId: 0 + parentSpanId: -1 + spanId: 0 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + refs: + - { parentEndpoint: 'GET:/shardingsphere-5.0.0-scenario/case/execute', networkAddress: '', + refType: CrossThread, parentSpanId: not null, parentTraceSegmentId: not null, + parentServiceInstance: not null, parentService: shardingsphere-5.0.0-scenario, + traceId: not null } + - segmentId: not null + spans: + - operationName: /ShardingSphere/parseSQL/ + parentSpanId: 0 + spanId: 1 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + tags: + - { key: db.statement, value: not null } + - operationName: /ShardingSphere/routeSQL/ + parentSpanId: 2 + spanId: 3 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + - operationName: /ShardingSphere/rewriteSQL/ + parentSpanId: 2 + spanId: 4 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + - operationName: H2/JDBI/PreparedStatement/executeQuery + parentSpanId: 5 + spanId: 6 + spanLayer: Database + startTime: not null + endTime: not null + componentId: 32 + isError: false + spanType: Exit + peer: localhost:-1 + skipAnalysis: false + tags: + - { key: db.type, value: sql } + - { key: db.instance, value: not null } + - { key: db.statement, value: not null } + - operationName: /ShardingSphere/executeSQL/ + parentSpanId: 2 + spanId: 5 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + - operationName: /ShardingSphere/JDBCRootInvoke/ + parentSpanId: 0 + spanId: 2 + spanLayer: Unknown + startTime: not null + endTime: not null + componentId: 60 + isError: false + spanType: Local + peer: '' + skipAnalysis: false + - operationName: GET:/shardingsphere-5.0.0-scenario/case/execute + parentSpanId: -1 + spanId: 0 + spanLayer: Http + startTime: not null + endTime: not null + componentId: 1 + isError: false + spanType: Entry + peer: '' + skipAnalysis: false + tags: + - { key: url, value: 'http://localhost:8080/shardingsphere-5.0.0-scenario/case/execute' } + - { key: http.method, value: GET } \ No newline at end of file diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/configuration.yml b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/configuration.yml similarity index 82% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/configuration.yml rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/configuration.yml index 581097b49..72a3ad2aa 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/configuration.yml +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/configuration.yml @@ -15,6 +15,6 @@ # limitations under the License. type: jvm -entryService: http://localhost:8080/shardingsphere-5.0.0-beta-scenario/case/execute -healthCheck: http://localhost:8080/shardingsphere-5.0.0-beta-scenario/case/healthCheck +entryService: http://localhost:8080/shardingsphere-5.0.0-scenario/case/execute +healthCheck: http://localhost:8080/shardingsphere-5.0.0-scenario/case/healthCheck startScript: ./bin/startup.sh diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/pom.xml b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/pom.xml similarity index 93% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/pom.xml rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/pom.xml index de81967a2..49f2bcd17 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/pom.xml +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/pom.xml @@ -22,14 +22,14 @@ 4.0.0 org.example - shardingsphere-5.0.0-beta-scenario - 5.0.0-beta + shardingsphere-5.0.0-scenario + 5.0.0 - skywalking-shardingsphere-5.0.0-beta-scenario + skywalking-shardingsphere-5.0.0-scenario UTF-8 - 5.0.0-beta + 5.0.0 4.3.8.RELEASE 1.5.2.RELEASE @@ -63,7 +63,7 @@
    - shardingsphere-5.0.0-beta-scenario + shardingsphere-5.0.0-scenario org.apache.maven.plugins diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/assembly/assembly.xml b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/assembly/assembly.xml similarity index 98% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/assembly/assembly.xml rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/assembly/assembly.xml index b34d8814a..5d9e1a814 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/assembly/assembly.xml +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/assembly/assembly.xml @@ -33,7 +33,7 @@ - ${project.build.directory}/shardingsphere-5.0.0-beta-scenario.jar + ${project.build.directory}/shardingsphere-5.0.0-scenario.jar ./libs 0775 diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/Application.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/Application.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/Application.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/Application.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/controller/CaseController.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/controller/CaseController.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/controller/CaseController.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/controller/CaseController.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/Order.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/Order.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/Order.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/Order.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/OrderItem.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/OrderItem.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/OrderItem.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/entity/OrderItem.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/CommonRepository.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/CommonRepository.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/CommonRepository.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/CommonRepository.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderItemRepository.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderItemRepository.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderItemRepository.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderItemRepository.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderRepository.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderRepository.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderRepository.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/repository/OrderRepository.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonService.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonService.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonService.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonService.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonServiceImpl.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonServiceImpl.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonServiceImpl.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/api/service/CommonServiceImpl.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/config/ShardingDatabasesAndTablesConfigurationPrecise.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/config/ShardingDatabasesAndTablesConfigurationPrecise.java similarity index 93% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/config/ShardingDatabasesAndTablesConfigurationPrecise.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/config/ShardingDatabasesAndTablesConfigurationPrecise.java index aa086cce1..3774f1638 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/config/ShardingDatabasesAndTablesConfigurationPrecise.java +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/config/ShardingDatabasesAndTablesConfigurationPrecise.java @@ -60,6 +60,7 @@ public final class ShardingDatabasesAndTablesConfigurationPrecise implements Exa Properties tableOrderItemInlineProperties = new Properties(); tableOrderItemInlineProperties.setProperty("algorithm-expression", "t_order_item_${order_id % 2}"); shardingRuleConfig.getShardingAlgorithms().put("t_order_item_inline", new ShardingSphereAlgorithmConfiguration("INLINE", tableOrderItemInlineProperties)); + shardingRuleConfig.getKeyGenerators().put("snowflake", new ShardingSphereAlgorithmConfiguration("SNOWFLAKE", getProperties())); Properties properties = new Properties(); properties.setProperty(ConfigurationPropertyKey.MAX_CONNECTIONS_SIZE_PER_QUERY.getKey(), "16"); properties.setProperty(ConfigurationPropertyKey.SQL_SHOW.getKey(), "true"); @@ -68,7 +69,7 @@ public final class ShardingDatabasesAndTablesConfigurationPrecise implements Exa private static ShardingTableRuleConfiguration getOrderTableRuleConfiguration() { ShardingTableRuleConfiguration result = new ShardingTableRuleConfiguration("t_order", "demo_ds_${0..1}.t_order_${[0, 1]}"); - result.setKeyGenerateStrategy(new KeyGenerateStrategyConfiguration("order_id", "SNOWFLAKE")); + result.setKeyGenerateStrategy(new KeyGenerateStrategyConfiguration("order_id", "snowflake")); result.setTableShardingStrategy(new StandardShardingStrategyConfiguration("order_id", "t_order_inline")); return result; } @@ -91,4 +92,10 @@ public final class ShardingDatabasesAndTablesConfigurationPrecise implements Exa result.put("demo_ds_1", DataSourceUtil.getDataSource("demo_ds_1")); return result; } + + private static Properties getProperties() { + Properties result = new Properties(); + result.setProperty("worker-id", "123"); + return result; + } } diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderItemRepositoryImpl.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderItemRepositoryImpl.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderItemRepositoryImpl.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderItemRepositoryImpl.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderRepositoryImpl.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderRepositoryImpl.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderRepositoryImpl.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/jdbc/JDBCOrderRepositoryImpl.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/service/RawPojoService.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/service/RawPojoService.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/service/RawPojoService.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/repository/service/RawPojoService.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/DataSourceUtil.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/DataSourceUtil.java similarity index 98% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/DataSourceUtil.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/DataSourceUtil.java index 5a2bfa57e..ad2b40e20 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/DataSourceUtil.java +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/DataSourceUtil.java @@ -34,7 +34,7 @@ public class DataSourceUtil { public static void createDataSource(final String dataSourceName) { JdbcDataSource result = new JdbcDataSource(); - result.setUrl("jdbc:h2:mem:" + dataSourceName + ";DB_CLOSE_DELAY=-1"); + result.setUrl("jdbc:h2:mem:" + dataSourceName + ";DB_CLOSE_DELAY=-1;;DATABASE_TO_UPPER=FALSE"); result.setUser("sa"); result.setPassword(""); DATA_SOURCE_MAP.put(dataSourceName, result); diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/ExampleConfiguration.java b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/ExampleConfiguration.java similarity index 100% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/ExampleConfiguration.java rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/java/org/apache/skywalking/apm/testcase/shardingsphere/service/utility/config/ExampleConfiguration.java diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/resources/application.properties b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/resources/application.properties similarity index 93% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/resources/application.properties rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/resources/application.properties index 67712019d..a8a85b2b3 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/src/main/resources/application.properties +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/src/main/resources/application.properties @@ -14,4 +14,4 @@ # See the License for the specific language governing permissions and # limitations under the License. server.port=8080 -server.contextPath=/shardingsphere-5.0.0-beta-scenario +server.contextPath=/shardingsphere-5.0.0-scenario diff --git a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/support-version.list b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/support-version.list similarity index 98% rename from test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/support-version.list rename to test/plugin/scenarios/shardingsphere-5.0.0-scenario/support-version.list index 8da735b4f..e1674ddb7 100644 --- a/test/plugin/scenarios/shardingsphere-5.0.0-beta-scenario/support-version.list +++ b/test/plugin/scenarios/shardingsphere-5.0.0-scenario/support-version.list @@ -14,4 +14,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -5.0.0-beta +5.0.0