Skip to content

Commit

Permalink
optimize: server compatible io.seata package (apache#6310)
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes authored and ptyin committed Feb 4, 2024
1 parent 8154fe6 commit 3ac5fa0
Show file tree
Hide file tree
Showing 482 changed files with 885 additions and 977 deletions.
2 changes: 2 additions & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6298](https://github.com/apache/incubator-seata/pull/6298)] repackage name to org.apache.seata
- [[#6306](https://github.com/apache/incubator-seata/pull/6306)] replace some URL to org/apache/seata
- [[#6304](https://github.com/apache/incubator-seata/pull/6304)] disable Publish OSSRH workflow
- [[#6310](https://github.com/apache/incubator-seata/pull/6310)] seata-server compatible io.seata package
- [[#6301](https://github.com/apache/incubator-seata/pull/6301)] upgrade console frontend dependencies and supported nodejs versions
- [[#6301](https://github.com/apache/incubator-seata/pull/6312)] add saga related io.seata compatible api
- [[#6313](https://github.com/apache/incubator-seata/pull/6313)] console display the version number


### security:
- [[#6069](https://github.com/apache/incubator-seata/pull/6069)] Upgrade Guava dependencies to fix security vulnerabilities
- [[#6145](https://github.com/apache/incubator-seata/pull/6145)] upgrade jettison to 1.5.4
Expand Down
2 changes: 2 additions & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@
- [[#6298](https://github.com/apache/incubator-seata/pull/6298)] 重命名包名为 org.apache.seata
- [[#6306](https://github.com/apache/incubator-seata/pull/6306)] 替换一些URL 至 org/apache/seata
- [[#6304](https://github.com/apache/incubator-seata/pull/6304)] 禁用 OSSRH 发布工作流
- [[#6310](https://github.com/apache/incubator-seata/pull/6310)] seata-server兼容io.seata包
- [[#6301](https://github.com/apache/incubator-seata/pull/6301)] 升级console前端依赖及支持的nodejs版本
- [[#6301](https://github.com/apache/incubator-seata/pull/6312)] 添加saga相关的io.seata兼容性API
- [[#6313](https://github.com/apache/incubator-seata/pull/6313)] console展示版本号


### security:
- [[#6069](https://github.com/apache/incubator-seata/pull/6069)] 升级Guava依赖版本,修复安全漏洞
- [[#6144](https://github.com/apache/incubator-seata/pull/6144)] 升级Nacos依赖版本至1.4.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

import java.time.Duration;

/**
*/
public interface DefaultValues {
int DEFAULT_CLIENT_LOCK_RETRY_INTERVAL = 10;
int DEFAULT_TM_DEGRADE_CHECK_ALLOW_TIMES = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
package org.apache.seata.common.exception;

/**
*/

public class JsonParseException extends RuntimeException {

public JsonParseException(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
package org.apache.seata.common.metadata;

/**
*/

public enum ClusterRole {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import org.apache.seata.common.store.StoreMode;
import org.apache.seata.common.util.StringUtils;

/**
*/

public class Metadata {

private final Map<String/*vgroup*/, Map<String/*raft-group*/, Node>> leaders = new ConcurrentHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

import java.util.List;

/**
*/

public class MetadataResponse {

List<Node> nodes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import java.util.HashMap;
import java.util.Map;

/**
*/

public class Node {

Map<String, Object> metadata = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import java.util.Base64;
import javax.crypto.Cipher;

/**
*/

public class ConfigTools {

// generate key pair
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
import java.time.format.DateTimeParseException;
import java.util.regex.Pattern;

/**
*/

public class DurationUtil {

public static final Duration DEFAULT_DURATION = Duration.ofMillis(-1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
*/

public class HttpClientUtil {

private static final Logger LOGGER = LoggerFactory.getLogger(HttpClientUtil.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
package org.apache.seata.common.util;

/**
*/

public class IOUtil {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
import java.util.Random;
import java.util.concurrent.atomic.AtomicLong;

/**
*/

public class IdWorker {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
package org.apache.seata.common.util;

/**
*/

public class SizeUtil {
private static final long RADIX = 1024;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
package org.apache.seata.common.util;

/**
*/

public class StringFormatUtils {
private static final char MINUS = '-';
private static final char UNDERLINE = '_';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class AuthenticationFailedExceptionTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class JsonParseExceptionTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class RedisExceptionTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class RetryableExceptionTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

/**
*/

public class ObjectHolderTest {

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class FileLoaderTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class ExtensionDefinitionTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.seata.common.loader;

/**
*/

public interface Hello2 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
package org.apache.seata.common.loader;

/**
*/

@LoadLevel(name = "JapaneseHello", order = Integer.MAX_VALUE)
public class JapaneseHello implements Hello2{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class ClusterRoleTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
import java.util.ArrayList;
import java.util.List;

/**
*/

public class MetadataTest {

private static Metadata metadata;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

import java.util.HashMap;

/**
*/

public class NodeTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

import org.junit.jupiter.api.Test;

/**
*/

public class NamedThreadFactoryTest {
private static final int THREAD_TOTAL_SIZE = 3;
private static final int DEFAULT_THREAD_PREFIX_COUNTER = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class ArrayUtilsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

import java.nio.ByteBuffer;

/**
*/

public class BufferUtilsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class ConfigToolsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class CycleDependencyHandlerTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class DateUtilTest {
@Test
public void testGetCurrentDate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
import java.io.IOException;
import java.util.HashMap;

/**
*/

public class HttpClientUtilTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class IOUtilTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

/**
*/

public class LowerCaseLinkHashMapTest {

private static final Map<String, Object> lowerCaseLinkHashMap = new LowerCaseLinkHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class MapUtilTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
*/

public class NumberUtilsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import org.apache.seata.common.loader.LoadLevel;
import org.apache.seata.core.compressor.Compressor;

/**
*/

@LoadLevel(name = "DEFLATER")
public class DeflaterCompressor implements Compressor {

Expand Down
Loading

0 comments on commit 3ac5fa0

Please sign in to comment.