提交 ad0d3edd 编写于 作者: W wangliang

5.0.2

上级 a4339e20
# Distributed Transaction Framework - LCN (5.0.2.dev)
# Distributed Transaction Framework - LCN (5.0.2.RELEASE)
[![Maven](https://img.shields.io/badge/endpoint.svg?url=https://bbs.txlcn.org/maven-central)](https://bbs.txlcn.org/maven-list)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/codingapi/tx-lcn/blob/master/LICENSE)
......
# TX-LCN分布式事务框架 (5.0.2.dev)
# TX-LCN分布式事务框架 (5.0.2.RELEASE)
[![Maven](https://img.shields.io/badge/endpoint.svg?url=https://bbs.txlcn.org/maven-central)](https://bbs.txlcn.org/maven-list)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/codingapi/tx-lcn/blob/master/LICENSE)
......
......@@ -6,7 +6,7 @@
<groupId>com.codingapi.txlcn</groupId>
<artifactId>tx-lcn</artifactId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
<packaging>pom</packaging>
......@@ -43,7 +43,7 @@
<maven.javadoc.plugin>2.10.3</maven.javadoc.plugin>
<maven.gpg.plugin>1.6</maven.gpg.plugin>
<codingapi.txlcn.version>5.0.2.dev</codingapi.txlcn.version>
<codingapi.txlcn.version>5.0.2.RELEASE</codingapi.txlcn.version>
<txlcn-org.projectlombok.version>1.18.0</txlcn-org.projectlombok.version>
<txlcn-spring-cloud.version>Finchley.SR2</txlcn-spring-cloud.version>
......
@echo off
start java -jar -Xms256m -Xmx512m txlcn-tm/target/txlcn-tm-5.0.2.dev.jar
start java -jar -Xms256m -Xmx512m txlcn-tm/target/txlcn-tm-5.0.2.RELEASE.jar
......@@ -5,7 +5,7 @@
<parent>
<artifactId>tx-lcn</artifactId>
<groupId>com.codingapi.txlcn</groupId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>tx-lcn</artifactId>
<groupId>com.codingapi.txlcn</groupId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<groupId>com.codingapi.txlcn</groupId>
<artifactId>tx-lcn</artifactId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<artifactId>txlcn-tc</artifactId>
......
......@@ -25,7 +25,7 @@ import java.lang.annotation.*;
* Date: 1/19/19
*
* @author ujued
* @since 5.0.2.dev
* @since 5.0.2.RELEASE
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
......
......@@ -174,7 +174,7 @@ public class DTXLocalContext {
/**
* 事务状态
*
* @param userDtxState state
* @return 1 commit 0 rollback
*/
public static int transactionState(int userDtxState) {
......
......@@ -50,6 +50,7 @@ public interface DTXLocalControl {
*
* @param info info
* @param throwable throwable
* @throws TransactionException TransactionException
*/
default void onBusinessCodeError(TxTransactionInfo info, Throwable throwable) throws TransactionException {
......
......@@ -71,7 +71,7 @@ public class MessageCreator {
/**
* 申请锁消息
*
* @param groupId groupId
* @param locks locks
* @param lockType lockType
* @return message
......
......@@ -89,6 +89,7 @@ public class TMSearcher {
/**
* 搜索到一个
* @return is searched one
*/
public static boolean searchedOne() {
if (Objects.nonNull(clusterCountLatch)) {
......
......@@ -7,4 +7,4 @@ ${AnsiColor.BRIGHT_GREEN}
| | / /^\ \ | |___| \__/\| |\ |
\_/ \/ \/ \_____/\____/\_| \_/
TC version:5.0.2.dev
TC version:5.0.2.RELEASE
......@@ -6,11 +6,11 @@
<parent>
<groupId>com.codingapi.txlcn</groupId>
<artifactId>tx-lcn</artifactId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<artifactId>txlcn-tm</artifactId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
<packaging>jar</packaging>
<dependencies>
......
FROM frolvlad/alpine-oraclejdk8:slim
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
COPY txlcn-tm-5.0.2.dev.jar tm.jar
COPY txlcn-tm-5.0.2.RELEASE.jar tm.jar
EXPOSE 7970 8070
ENTRYPOINT ["java", "-jar", "/tm.jar"]
......@@ -32,7 +32,7 @@ import java.io.PrintStream;
*/
public class TxLcnManagerBanner implements Banner {
public static final String VERSION = "5.0.2.dev";
public static final String VERSION = "5.0.2.RELEASE";
private static final String BANNER =
" _______ __ _ _____ _ _ \n" +
......
......@@ -11,8 +11,7 @@ import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author meetzy
* @date 2019-02-14 12:09
* @author meetzy 2019-02-14 12:09
*/
@Repository
public interface TxExceptionRepository extends JpaRepository<TxException, Long> , JpaSpecificationExecutor<TxException> {
......
......@@ -157,6 +157,7 @@ public class AdminController {
* @param unitId unitId
* @param modId modId
* @return result always true if non exception
* @throws TxManagerException TxManagerException
*/
@DeleteMapping("/transaction-info")
public boolean deleteTransactionInfo(
......
......@@ -84,6 +84,7 @@ public interface TxExceptionService {
* @param groupId groupId
* @param unitId unitId
* @param modId modId
* @throws TxManagerException TxManagerException
*/
void deleteTransactionInfo(String groupId, String unitId, String modId) throws TxManagerException;
}
......@@ -5,4 +5,4 @@ spring.datasource.url=jdbc:mysql://127.0.0.1:3306/tx-manager?characterEncoding=U
spring.datasource.username=root
spring.datasource.password=root
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=validate
\ No newline at end of file
spring.jpa.hibernate.ddl-auto=update
\ No newline at end of file
......@@ -5,7 +5,7 @@
<parent>
<artifactId>tx-lcn</artifactId>
<groupId>com.codingapi.txlcn</groupId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>tx-lcn</artifactId>
<groupId>com.codingapi.txlcn</groupId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>tx-lcn</artifactId>
<groupId>com.codingapi.txlcn</groupId>
<version>5.0.2.dev</version>
<version>5.0.2.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册