Skip to content
Snippets Groups Projects
Unverified Commit 95deba8a authored by zhangthen's avatar zhangthen Committed by GitHub
Browse files

Release 0.5.0

parents 95311569 c2efff83
No related branches found
No related tags found
No related merge requests found
Showing
with 136 additions and 60 deletions
---
name: Bug Report
about: If you would like to report a issue to Fescar, please use this template.
about: If you would like to report a issue to Seata, please use this template.
---
- [ ] I have searched the [issues](https://github.com/alibaba/fescar/issues) of this repository and believe that this is not a duplicate.
- [ ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
### Ⅰ. Issue Description
......
---
name: Feature Request
about: Suggest an idea for Fescar
about: Suggest an idea for Seata
---
......
......@@ -6,6 +6,7 @@ target/
*.tar
*.tar.gz
*.class
.flattened-pom.xml
# eclipse ignore
.settings/
......@@ -29,9 +30,10 @@ target/
/distribution/lib
server/*root.*
server/.root.*
*.data
# system ignore
.DS_Store
Thumbs.db
*.orig
*.class
\ No newline at end of file
*.class
File added
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
......@@ -2,7 +2,6 @@ language: java
sudo: false # faster builds
jdk:
- openjdk11
- openjdk8
cache:
......@@ -12,7 +11,7 @@ cache:
install: true
script:
- mvn clean package verify
- travis_wait 30 ./mvnw clean install -DskipTests=false
after_success:
- bash <(curl -s https://codecov.io/bash)
......@@ -2,7 +2,7 @@
#### FEATURES:
* support standalone fescar-server.
* support standalone seata-server.
* support mysql automatic transaction.
* support @GlobalTransactional spring annotation.
* support dubbo on filter.
......
# Fescar
# Seata
## Fescar Code Style
Fescar code style Comply with Alibaba Java Coding Guidelines.
## Seata Code Style
Seata code style Comply with Alibaba Java Coding Guidelines.
Fescar 的编码规范遵从于《阿里巴巴JAVA开发规约》。
Seata 的编码规范遵从于《阿里巴巴JAVA开发规约》。
### Guidelines
......
......@@ -80,26 +80,26 @@ For more details about principle and design, please go to [Seata wiki page](http
## Maven dependency
```xml
<fescar.version>0.4.1</fescar.version>
<seata.version>0.5.0</seata.version>
<dependency>
<groupId>com.alibaba.fescar</groupId>
<artifactId>fescar-spring</artifactId>
<version>${fescar.version}</version>
<groupId>io.seata</groupId>
<artifactId>seata-spring</artifactId>
<version>${seata.version}</version>
</dependency>
<!--dependency for Apache Dubbo-->
<dependency>
<groupId>com.alibaba.fescar</groupId>
<artifactId>fescar-dubbo</artifactId>
<version>${fescar.version}</version>
<groupId>io.seata</groupId>
<artifactId>seata-dubbo</artifactId>
<version>${seata.version}</version>
</dependency>
<!--dependency for Alibaba Dubbo-->
<dependency>
<groupId>com.alibaba.fescar</groupId>
<artifactId>fescar-dubbo-alibaba</artifactId>
<version>${fescar.version}</version>
<groupId>io.seata</groupId>
<artifactId>seata-dubbo-alibaba</artifactId>
<version>${seata.version}</version>
</dependency>
```
......@@ -123,7 +123,7 @@ Contributors are welcomed to join the FEATS project. Please check [CONTRIBUTING]
## Contact
* [Twitter](): TBD. Follow along for latest Fescar news on Twitter.
* [Twitter](https://twitter.com/seataio): Follow along for latest Seata news on Twitter.
* Mailing list:
* dev-fescar@googlegroups.com , for dev/user discussion. [subscribe](mailto:dev-fescar+subscribe@googlegroups.com), [unsubscribe](mailto:dev-fescar+unsubscribe@googlegroups.com), [archive](https://groups.google.com/forum/#!forum/dev-fescar)
......@@ -135,7 +135,7 @@ Contributors are welcomed to join the FEATS project. Please check [CONTRIBUTING]
## Seata ecosystem
* [Seata Ecosystem Entry](https://github.com/fescar-group) - A GitHub group `seata-group` to gather all Seata relevant projects not appropriate in [seata](https://github.com/seata) group yet
* [Seata Ecosystem Entry](https://github.com/seata) - A GitHub group `seata` to gather all Seata relevant projects
* [Seata Samples](https://github.com/fescar-group/fescar-samples) - Samples for Seata
* [Seata Docker](https://github.com/fescar-group/fescar-docker) - Seata integration with docker
* [Seata K8s](https://github.com/fescar-group/fescar-k8s) - Seata integration with k8s
......
......@@ -18,14 +18,14 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>fescar-all</artifactId>
<groupId>com.alibaba.fescar</groupId>
<version>0.4.2</version>
<groupId>io.seata</groupId>
<artifactId>seata-parent</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>fescar-common</artifactId>
<artifactId>seata-common</artifactId>
<packaging>jar</packaging>
<name>fescar-common ${project.version}</name>
<name>seata-common ${project.version}</name>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common;
package io.seata.common;
/**
* The type Constants.
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common;
package io.seata.common;
/**
* The type Xid.
......@@ -71,21 +71,6 @@ public class XID {
return Long.parseLong(xid.substring(idx + 1));
}
/**
* Gets server address.
*
* @param xid the xid
* @return the server address
*/
public static String getServerAddress(String xid) {
if (xid == null) {
return null;
}
int idx = xid.lastIndexOf(":");
return xid.substring(0, idx);
}
/**
* Gets port.
*
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.fescar.common.exception;
package io.seata.common.exception;
/**
* eureka registry exception
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common.exception;
package io.seata.common.exception;
/**
* The enum Framework error code.
......@@ -28,34 +28,34 @@ public enum FrameworkErrorCode {
*/
ThreadPoolFull("0004", "netty线程池满", "请在配置文件中调整线程数, corePoolSize 的值调大一些"),
/**
* The Init fescar client error.
* The Init services client error.
*/
InitFescarClientError("0008", "fescarAppName or fescarServerGroup is null", ""),
InitSeataClientError("0008", "seataAppName or seataServerGroup is null", ""),
/**
* The Null rule error.
*/
NullRuleError("0010", "fescar rules is null", ""),
NullRuleError("0010", "services rules is null", ""),
/**
* 0101 ~ 0199 网络有关的错误,连接不上,断开,dispatch等
*/
NetConnect("0101", "无法连接服务器", "请检查fescar server是否启动,到fescar server的网络连接是否正常"),
NetConnect("0101", "无法连接服务器", "请检查seata server是否启动,到seata server的网络连接是否正常"),
/**
* The Net reg appname.
*/
NetRegAppname("0102", "register client app name failed", "请检查fescar server是否启动,到fescar server的网络连接是否正常"),
NetRegAppname("0102", "register client app name failed", "请检查seata server是否启动,到seata server的网络连接是否正常"),
/**
* The Net disconnect.
*/
NetDisconnect("0103", "fescarConnection closed", "网络断开,请检查到对端(client 或fescar server)的网络连接"),
NetDisconnect("0103", "seataConnection closed", "网络断开,请检查到对端(client 或seata server)的网络连接"),
/**
* The Net dispatch.
*/
NetDispatch("0104", "dispatch 错误", "网络处理错误,请检查到对端(client 或fescar server)的网络连接 "),
NetDispatch("0104", "dispatch 错误", "网络处理错误,请检查到对端(client 或seata server)的网络连接 "),
/**
* The Net on message.
*/
NetOnMessage("0105", "on message 错误", "网络处理错误,请检查到对端(client 或fescar server)的网络连接 "),
NetOnMessage("0105", "on message 错误", "网络处理错误,请检查到对端(client 或seata server)的网络连接 "),
/**
* Get channel error framework error code.
*/
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common.exception;
package io.seata.common.exception;
import java.sql.SQLException;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common.exception;
package io.seata.common.exception;
/**
* The type Not support yet exception.
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common.exception;
package io.seata.common.exception;
/**
* The type Should never happen exception.
......
......@@ -13,75 +13,77 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.fescar.config;
import org.junit.Test;
package io.seata.common.exception;
/**
* The type Nacos configuration test.
* the store exception
*
* @author jimin.jm @alibaba-inc.com
* @date 2019 /2/1
* @author zhangsen
* @data 2019 /4/2
*/
public class NacosConfigurationTest {
//private static final Configuration CONFIGURATION = new NacosConfiguration();
/**
* Test get config.
*/
@Test
public void testGetConfig() {
//String value = CONFIGURATION.getConfig("fescar.test.dataId");
//Assert.assertEquals(value, "test");
}
public class StoreException extends FrameworkException {
/**
* Test put config.
* Instantiates a new Store exception.
*/
@Test
public void testPutConfig() {
public StoreException() {
}
/**
* Test put config if absent.
* Instantiates a new Store exception.
*
* @param err the err
*/
@Test
public void testPutConfigIfAbsent() {
public StoreException(FrameworkErrorCode err) {
super(err);
}
/**
* Test remove config.
* Instantiates a new Store exception.
*
* @param msg the msg
*/
@Test
public void testRemoveConfig() {
public StoreException(String msg) {
super(msg);
}
/**
* Test add config listener.
* Instantiates a new Store exception.
*
* @param msg the msg
* @param errCode the err code
*/
@Test
public void testAddConfigListener() {
public StoreException(String msg, FrameworkErrorCode errCode) {
super(msg, errCode);
}
/**
* Test remove config listener.
* Instantiates a new Store exception.
*
* @param cause the cause
* @param msg the msg
* @param errCode the err code
*/
@Test
public void testRemoveConfigListener() {
public StoreException(Throwable cause, String msg, FrameworkErrorCode errCode) {
super(cause, msg, errCode);
}
/**
* Test get config listeners.
* Instantiates a new Store exception.
*
* @param th the th
*/
@Test
public void testGetConfigListeners() {
public StoreException(Throwable th) {
super(th);
}
/**
* Test get type name.
* Instantiates a new Store exception.
*
* @param th the th
* @param msg the msg
*/
@Test
public void testGetTypeName() {
public StoreException(Throwable th, String msg) {
super(th, msg);
}
}
\ No newline at end of file
}
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common.executor;
package io.seata.common.executor;
/**
* The interface Callback.
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.alibaba.fescar.common.executor;
package io.seata.common.executor;
/**
* The interface Initialize.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment