apache / apache/incubator-seata

GlobalSession has concurrency problem in cluster mode?

Open
#1,369 9 comments 0 reactions 1 assignee Claimed by @ggndnn View on GitHub
type: question
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

## Why you need it?
Is it possible that more than one servers currently changing globalSession's status in cluster mode? If this situation happened, local ReentrantLock can not keep globalSession status changing procedure thread safe. Is it correct?
e.g., server A is commiting a transaction, meanwhile server B's timeout checking thread is trying to start a rollback. Is this a problem?

## How it could be?
Is optimistic locking on global_table a possible solution?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.