Skip to content

Commit 1df92e9

Browse files
authored
bugfix: rocksDB opens the same file multiple times (#6845)
1 parent 42f3ae7 commit 1df92e9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

changes/en-us/2.x.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ Add changes here for all PR submitted to the 2.x branch.
4141
- [[#6825](https://github.com/apache/incubator-seata/pull/6825)] Fix the issue of XA mode transaction timeout and inability to roll back in Postgres
4242
- [[#6833](https://github.com/apache/incubator-seata/pull/6833)] SQLIntegrityConstraintViolationException capture incorrectly when inserting a globallock
4343
- [[#6835](https://github.com/apache/incubator-seata/pull/6835)] Fix the issue of missing request body of post method in HttpClientUtil
44+
- [[#6845](https://github.com/apache/incubator-seata/pull/6845)] fix rocksDB opens the same file multiple times
4445
- [[#6840](https://github.com/apache/incubator-seata/pull/6840)] Fix the issue of unsafe deserialization in ProcessorYaml.java
4546
- [[#6843](https://github.com/apache/incubator-seata/pull/6843)] Fix 403 error when sending a POST request from the console
4647

4748

49+
4850
### optimize:
4951
- [[#6499](https://github.com/apache/incubator-seata/pull/6499)] split the task thread pool for committing and rollbacking statuses
5052
- [[#6208](https://github.com/apache/incubator-seata/pull/6208)] optimize : load SeataSerializer by version

changes/zh-cn/2.x.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@
4242
- [[#6825](https://github.com/apache/incubator-seata/pull/6825)] 修复Postgres的XA模式事务超时无法回滚问题
4343
- [[#6833](https://github.com/apache/incubator-seata/pull/6833)] 插入全局锁时 SQLIntegrityConstraintViolationException 捕获不正确
4444
- [[#6835](https://github.com/apache/incubator-seata/pull/6835)] 修复HttpClientUtil中post方法请求体缺失的问题
45+
- [[#6845](https://github.com/apache/incubator-seata/pull/6845)] 修复rocksdb open相同文件多次的问题
4546
- [[#6840](https://github.com/apache/incubator-seata/pull/6840)] 修复ProcessorYaml中不安全的反序列化
4647
- [[#6843](https://github.com/apache/incubator-seata/pull/6843)] 修复从控制台发送POST请求时出现的403错误
4748

49+
4850
### optimize:
4951
- [[#6499](https://github.com/apache/incubator-seata/pull/6499)] 拆分 committing 和 rollbacking 状态的任务线程池
5052
- [[#6208](https://github.com/apache/incubator-seata/pull/6208)] 支持多版本的Seata序列化

server/src/main/java/org/apache/seata/server/instance/ServerInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public class ServerInstance {
6161
private static final Logger LOGGER = LoggerFactory.getLogger(Server.class);
6262

6363
public void serverInstanceInit() {
64-
VGroupMappingStoreManager vGroupMappingStoreManager = SessionHolder.getRootVGroupMappingManager();
6564
if (StringUtils.equals(registryProperties.getType(), NAMING_SERVER)) {
65+
VGroupMappingStoreManager vGroupMappingStoreManager = SessionHolder.getRootVGroupMappingManager();
6666
EXECUTOR_SERVICE = new ScheduledThreadPoolExecutor(1, new NamedThreadFactory("scheduledExcuter", 1, true));
6767
ConfigurableEnvironment environment = (ConfigurableEnvironment) ObjectHolder.INSTANCE.getObject(OBJECT_KEY_SPRING_CONFIGURABLE_ENVIRONMENT);
6868

server/src/main/java/org/apache/seata/server/session/SessionHolder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,7 @@ private static void lockBranchSessions(List<BranchSession> branchSessions) {
299299
//region get group mapping manager
300300
public static VGroupMappingStoreManager getRootVGroupMappingManager() {
301301
if (ROOT_VGROUP_MAPPING_MANAGER == null) {
302-
init();
303-
if (ROOT_VGROUP_MAPPING_MANAGER == null) {
304-
throw new ShouldNeverHappenException("vGroupMappingManager is NOT init!");
305-
}
302+
throw new ShouldNeverHappenException("vGroupMappingManager is NOT init!");
306303
}
307304
return ROOT_VGROUP_MAPPING_MANAGER;
308305
}

0 commit comments

Comments
 (0)