-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test CodeQL #6809
Closed
Closed
test CodeQL #6809
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9b63bd1
小调整
wangliang181230 5ee1c80
小调整
wangliang181230 00feb78
尝试历史版本。
wangliang181230 021d069
optimize: remove binary from source code (#6597)
slievrly 901d5b9
2.2.0-SNAPSHOT
wangliang181230 d06e3b1
maven-wrapper 3.1.1 -> 3.3.2
wangliang181230 fe055ab
revert mvnw
wangliang181230 cd0afd6
revert mvnw maven-wrapper
wangliang181230 80aa6b4
commit mvnw maven-wrapper
wangliang181230 c62a3bd
codeql,打印日志。
wangliang181230 3f3d959
delete maven-wrapper.jar
wangliang181230 3beae4a
Merge remote-tracking branch 'upstream/2.x' into test-CodeQL
wangliang181230 dc5fc70
optimize CodeQL
wangliang181230 714f31d
optimize CodeQL
wangliang181230 be79766
optimize CodeQL
wangliang181230 8a34d03
Merge branch '2.x' into test-CodeQL
xingfudeshi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
common/src/main/java/org/apache/seata/common/util/SizeUtil.java
100755 → 100644
Empty file.
Empty file modified
0
common/src/test/java/org/apache/seata/common/util/SizeUtilTest.java
100755 → 100644
Empty file.
Empty file modified
0
...sor-zstd/src/main/resources/META-INF/services/org.apache.seata.core.compressor.Compressor
100755 → 100644
Empty file.
Empty file modified
0
rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/struct/Field.java
100755 → 100644
Empty file.
Empty file modified
0
rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/struct/Row.java
100755 → 100644
Empty file.
Empty file modified
0
rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/struct/TableRecords.java
100755 → 100644
Empty file.
Empty file modified
0
...src/main/java/org/apache/seata/rm/datasource/sql/struct/cache/AbstractTableMetaCache.java
100755 → 100644
Empty file.
Empty file modified
0
.../src/main/java/org/apache/seata/rm/datasource/sql/struct/cache/MariadbTableMetaCache.java
100755 → 100644
Empty file.
Empty file modified
0
...ce/src/main/java/org/apache/seata/rm/datasource/sql/struct/cache/MysqlTableMetaCache.java
100755 → 100644
Empty file.
138 changes: 69 additions & 69 deletions
138
test/src/test/resources/saga/spring/statemachine_engine_db_mockserver_test.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
|
||
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. | ||
|
||
--> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:jdbc="http://www.springframework.org/schema/jdbc" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
|
||
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"> | ||
|
||
<bean id="dataSource" class="org.h2.jdbcx.JdbcConnectionPool" destroy-method="dispose"> | ||
<constructor-arg> | ||
<bean class="org.h2.jdbcx.JdbcDataSource"> | ||
<property name="URL" value="jdbc:h2:mem:seata_saga" /> | ||
<property name="user" value="sa" /> | ||
<property name="password" value="sa" /> | ||
</bean> | ||
</constructor-arg> | ||
</bean> | ||
|
||
<!-- 初始化数据表结构 --> | ||
<jdbc:initialize-database data-source="dataSource"> | ||
<jdbc:script location="classpath:saga/sql/h2_init.sql" /> | ||
</jdbc:initialize-database> | ||
|
||
<bean id="stateMachineEngine" class="org.apache.seata.saga.engine.impl.ProcessCtrlStateMachineEngine"> | ||
<property name="stateMachineConfig" ref="dbStateMachineConfig"/> | ||
</bean> | ||
<bean id="dbStateMachineConfig" class="org.apache.seata.saga.engine.config.DbStateMachineConfig"> | ||
<property name="dataSource" ref="dataSource"/> | ||
<property name="tablePrefix" value="seata_"/> | ||
<property name="resources" value="saga/statelang/*.json"/> | ||
<property name="enableAsync" value="true"/> | ||
<property name="threadPoolExecutor" ref="threadExecutor"/> | ||
<property name="applicationId" value="test_saga"/> | ||
<property name="txServiceGroup" value="default_tx_group"/> | ||
<property name="sagaTransactionalTemplate" ref="mockSagaTransactionTemplate"/> | ||
</bean> | ||
<bean id="threadExecutor" | ||
class="org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean"> | ||
<property name="threadNamePrefix" value="SAGA_ASYNC_EXE_" /> | ||
<property name="corePoolSize" value="1" /> | ||
<property name="maxPoolSize" value="20" /> | ||
<property name="queueCapacity" value="100" /> | ||
<property name="rejectedExecutionHandler" ref="callerRunsPolicy" /> | ||
</bean> | ||
|
||
<bean name="callerRunsPolicy" class="java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy"> | ||
</bean> | ||
|
||
<bean id="demoService" class="org.apache.seata.saga.engine.mock.DemoService"/> | ||
|
||
<bean id="mockSagaTransactionTemplate" class="org.apache.seata.saga.engine.mock.MockSagaTransactionTemplate"/> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like git.autocrlf has changed, but the content actually hasn't changed. |
||
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. | ||
--> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:jdbc="http://www.springframework.org/schema/jdbc" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"> | ||
<bean id="dataSource" class="org.h2.jdbcx.JdbcConnectionPool" destroy-method="dispose"> | ||
<constructor-arg> | ||
<bean class="org.h2.jdbcx.JdbcDataSource"> | ||
<property name="URL" value="jdbc:h2:mem:seata_saga" /> | ||
<property name="user" value="sa" /> | ||
<property name="password" value="sa" /> | ||
</bean> | ||
</constructor-arg> | ||
</bean> | ||
<!-- 初始化数据表结构 --> | ||
<jdbc:initialize-database data-source="dataSource"> | ||
<jdbc:script location="classpath:saga/sql/h2_init.sql" /> | ||
</jdbc:initialize-database> | ||
<bean id="stateMachineEngine" class="org.apache.seata.saga.engine.impl.ProcessCtrlStateMachineEngine"> | ||
<property name="stateMachineConfig" ref="dbStateMachineConfig"/> | ||
</bean> | ||
<bean id="dbStateMachineConfig" class="org.apache.seata.saga.engine.config.DbStateMachineConfig"> | ||
<property name="dataSource" ref="dataSource"/> | ||
<property name="tablePrefix" value="seata_"/> | ||
<property name="resources" value="saga/statelang/*.json"/> | ||
<property name="enableAsync" value="true"/> | ||
<property name="threadPoolExecutor" ref="threadExecutor"/> | ||
<property name="applicationId" value="test_saga"/> | ||
<property name="txServiceGroup" value="default_tx_group"/> | ||
<property name="sagaTransactionalTemplate" ref="mockSagaTransactionTemplate"/> | ||
</bean> | ||
<bean id="threadExecutor" | ||
class="org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean"> | ||
<property name="threadNamePrefix" value="SAGA_ASYNC_EXE_" /> | ||
<property name="corePoolSize" value="1" /> | ||
<property name="maxPoolSize" value="20" /> | ||
<property name="queueCapacity" value="100" /> | ||
<property name="rejectedExecutionHandler" ref="callerRunsPolicy" /> | ||
</bean> | ||
<bean name="callerRunsPolicy" class="java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy"> | ||
</bean> | ||
<bean id="demoService" class="org.apache.seata.saga.engine.mock.DemoService"/> | ||
<bean id="mockSagaTransactionTemplate" class="org.apache.seata.saga.engine.mock.MockSagaTransactionTemplate"/> | ||
</beans> |
142 changes: 71 additions & 71 deletions
142
test/src/test/resources/saga/spring/statemachine_engine_db_test.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
|
||
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. | ||
|
||
--> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:jdbc="http://www.springframework.org/schema/jdbc" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
|
||
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"> | ||
|
||
<bean id="dataSource" class="org.h2.jdbcx.JdbcConnectionPool" destroy-method="dispose"> | ||
<constructor-arg> | ||
<bean class="org.h2.jdbcx.JdbcDataSource"> | ||
<property name="URL" value="jdbc:h2:mem:seata_saga" /> | ||
<property name="user" value="sa" /> | ||
<property name="password" value="sa" /> | ||
</bean> | ||
</constructor-arg> | ||
</bean> | ||
|
||
<!-- 初始化数据表结构 --> | ||
<jdbc:initialize-database data-source="dataSource"> | ||
<jdbc:script location="classpath:saga/sql/h2_init.sql" /> | ||
</jdbc:initialize-database> | ||
|
||
<bean id="stateMachineEngine" class="org.apache.seata.saga.engine.impl.ProcessCtrlStateMachineEngine"> | ||
<property name="stateMachineConfig" ref="dbStateMachineConfig"/> | ||
</bean> | ||
<bean id="dbStateMachineConfig" class="org.apache.seata.saga.engine.config.DbStateMachineConfig"> | ||
<property name="dataSource" ref="dataSource"/> | ||
<property name="resources" value="saga/statelang/*.json"/> | ||
<property name="enableAsync" value="true"/> | ||
<property name="threadPoolExecutor" ref="threadExecutor"/> | ||
<property name="applicationId" value="test_saga"/> | ||
<property name="txServiceGroup" value="default_tx_group"/> | ||
<property name="sagaBranchRegisterEnable" value="false"/> | ||
<property name="sagaJsonParser" value="jackson"/> | ||
<property name="sagaRetryPersistModeUpdate" value="false" /> | ||
<property name="sagaCompensatePersistModeUpdate" value="false" /> | ||
</bean> | ||
|
||
<bean id="threadExecutor" | ||
class="org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean"> | ||
<property name="threadNamePrefix" value="SAGA_ASYNC_EXE_" /> | ||
<property name="corePoolSize" value="20" /> | ||
<property name="maxPoolSize" value="20" /> | ||
<property name="queueCapacity" value="100" /> | ||
<property name="rejectedExecutionHandler" ref="callerRunsPolicy" /> | ||
</bean> | ||
|
||
<bean name="callerRunsPolicy" class="java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy"> | ||
</bean> | ||
|
||
|
||
<bean id="demoService" class="org.apache.seata.saga.engine.mock.DemoService"/> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
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. | ||
--> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:jdbc="http://www.springframework.org/schema/jdbc" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"> | ||
<bean id="dataSource" class="org.h2.jdbcx.JdbcConnectionPool" destroy-method="dispose"> | ||
<constructor-arg> | ||
<bean class="org.h2.jdbcx.JdbcDataSource"> | ||
<property name="URL" value="jdbc:h2:mem:seata_saga" /> | ||
<property name="user" value="sa" /> | ||
<property name="password" value="sa" /> | ||
</bean> | ||
</constructor-arg> | ||
</bean> | ||
<!-- 初始化数据表结构 --> | ||
<jdbc:initialize-database data-source="dataSource"> | ||
<jdbc:script location="classpath:saga/sql/h2_init.sql" /> | ||
</jdbc:initialize-database> | ||
<bean id="stateMachineEngine" class="org.apache.seata.saga.engine.impl.ProcessCtrlStateMachineEngine"> | ||
<property name="stateMachineConfig" ref="dbStateMachineConfig"/> | ||
</bean> | ||
<bean id="dbStateMachineConfig" class="org.apache.seata.saga.engine.config.DbStateMachineConfig"> | ||
<property name="dataSource" ref="dataSource"/> | ||
<property name="resources" value="saga/statelang/*.json"/> | ||
<property name="enableAsync" value="true"/> | ||
<property name="threadPoolExecutor" ref="threadExecutor"/> | ||
<property name="applicationId" value="test_saga"/> | ||
<property name="txServiceGroup" value="default_tx_group"/> | ||
<property name="sagaBranchRegisterEnable" value="false"/> | ||
<property name="sagaJsonParser" value="jackson"/> | ||
<property name="sagaRetryPersistModeUpdate" value="false" /> | ||
<property name="sagaCompensatePersistModeUpdate" value="false" /> | ||
</bean> | ||
<bean id="threadExecutor" | ||
class="org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean"> | ||
<property name="threadNamePrefix" value="SAGA_ASYNC_EXE_" /> | ||
<property name="corePoolSize" value="20" /> | ||
<property name="maxPoolSize" value="20" /> | ||
<property name="queueCapacity" value="100" /> | ||
<property name="rejectedExecutionHandler" ref="callerRunsPolicy" /> | ||
</bean> | ||
<bean name="callerRunsPolicy" class="java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy"> | ||
</bean> | ||
<bean id="demoService" class="org.apache.seata.saga.engine.mock.DemoService"/> | ||
</beans> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's happen, empty file?