File tree 30 files changed +35
-26
lines changed
jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/datasource
main/java/org/apache/shardingsphere/mode
java/org/apache/shardingsphere/mode/state
main/java/org/apache/shardingsphere/mode/manager/cluster
dispatch/handler/global/state
test/java/org/apache/shardingsphere/mode/manager/cluster
dispatch/handler/global/state
repository/provider/zookeeper/src
main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/listener
test/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/listener
main/java/org/apache/shardingsphere/proxy/backend
test/java/org/apache/shardingsphere/proxy/backend
30 files changed +35
-26
lines changed Original file line number Diff line number Diff line change 23
23
import org .apache .shardingsphere .infra .config .rule .RuleConfiguration ;
24
24
import org .apache .shardingsphere .infra .executor .sql .execute .engine .ConnectionMode ;
25
25
import org .apache .shardingsphere .infra .metadata .database .resource .node .StorageNode ;
26
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
26
+ import org .apache .shardingsphere .mode .state .ClusterState ;
27
27
import org .apache .shardingsphere .infra .state .instance .InstanceState ;
28
28
import org .apache .shardingsphere .mode .manager .ContextManager ;
29
29
import org .apache .shardingsphere .parser .config .SQLParserRuleConfiguration ;
Original file line number Diff line number Diff line change 47
47
import org .apache .shardingsphere .mode .metadata .manager .resource .SwitchingResource ;
48
48
import org .apache .shardingsphere .mode .persist .PersistServiceFacade ;
49
49
import org .apache .shardingsphere .mode .spi .repository .PersistRepository ;
50
- import org .apache .shardingsphere .mode .state .cluster . ClusterStateContext ;
50
+ import org .apache .shardingsphere .mode .state .ClusterStateContext ;
51
51
52
52
import java .sql .SQLException ;
53
53
import java .util .Collection ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- package org .apache .shardingsphere .mode .state . node ;
18
+ package org .apache .shardingsphere .mode .node ;
19
19
20
20
import com .google .common .base .Strings ;
21
21
import lombok .RequiredArgsConstructor ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- package org .apache .shardingsphere .mode .state . node ;
18
+ package org .apache .shardingsphere .mode .node ;
19
19
20
20
import com .google .common .base .Strings ;
21
21
import lombok .RequiredArgsConstructor ;
Original file line number Diff line number Diff line change 27
27
import org .apache .shardingsphere .mode .persist .service .PersistServiceBuilder ;
28
28
import org .apache .shardingsphere .mode .persist .service .ProcessPersistService ;
29
29
import org .apache .shardingsphere .mode .spi .repository .PersistRepository ;
30
- import org .apache .shardingsphere .mode .state .cluster . ClusterStatePersistService ;
31
- import org .apache .shardingsphere .mode .state . node .ComputeNodePersistService ;
32
- import org .apache .shardingsphere .mode .state . node .QualifiedDataSourceStatePersistService ;
30
+ import org .apache .shardingsphere .mode .state .ClusterStatePersistService ;
31
+ import org .apache .shardingsphere .mode .node .ComputeNodePersistService ;
32
+ import org .apache .shardingsphere .mode .node .QualifiedDataSourceStatePersistService ;
33
33
34
34
/**
35
35
* Persist service facade.
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- package org .apache .shardingsphere .mode .state . cluster ;
18
+ package org .apache .shardingsphere .mode .state ;
19
19
20
20
import com .google .common .base .Strings ;
21
21
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- package org .apache .shardingsphere .mode .state . cluster ;
18
+ package org .apache .shardingsphere .mode .state ;
19
19
20
20
import java .util .concurrent .atomic .AtomicReference ;
21
21
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- package org .apache .shardingsphere .mode .state . cluster ;
18
+ package org .apache .shardingsphere .mode .state ;
19
19
20
20
import lombok .RequiredArgsConstructor ;
21
21
import org .apache .shardingsphere .mode .node .path .engine .generator .NodePathGenerator ;
Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .shardingsphere .mode .state .cluster ;
19
19
20
+ import org .apache .shardingsphere .mode .state .ClusterState ;
21
+ import org .apache .shardingsphere .mode .state .ClusterStateContext ;
20
22
import org .junit .jupiter .api .Test ;
21
23
22
24
import static org .hamcrest .CoreMatchers .is ;
Original file line number Diff line number Diff line change 18
18
package org .apache .shardingsphere .mode .state .cluster ;
19
19
20
20
import org .apache .shardingsphere .mode .spi .repository .PersistRepository ;
21
+ import org .apache .shardingsphere .mode .state .ClusterState ;
22
+ import org .apache .shardingsphere .mode .state .ClusterStatePersistService ;
21
23
import org .junit .jupiter .api .BeforeEach ;
22
24
import org .junit .jupiter .api .Test ;
23
25
import org .junit .jupiter .api .extension .ExtendWith ;
Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .shardingsphere .mode .state .cluster ;
19
19
20
+ import org .apache .shardingsphere .mode .state .ClusterState ;
20
21
import org .junit .jupiter .api .Test ;
21
22
22
23
import static org .hamcrest .CoreMatchers .is ;
Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .shardingsphere .mode .state .cluster ;
19
19
20
+ import org .apache .shardingsphere .mode .state .ClusterState ;
21
+ import org .apache .shardingsphere .mode .state .ClusterStateContext ;
20
22
import org .junit .jupiter .api .Test ;
21
23
22
24
import static org .hamcrest .CoreMatchers .is ;
Original file line number Diff line number Diff line change 23
23
import org .apache .shardingsphere .infra .instance .yaml .YamlComputeNodeData ;
24
24
import org .apache .shardingsphere .infra .state .instance .InstanceState ;
25
25
import org .apache .shardingsphere .infra .util .yaml .YamlEngine ;
26
+ import org .apache .shardingsphere .mode .node .ComputeNodePersistService ;
26
27
import org .apache .shardingsphere .mode .spi .repository .PersistRepository ;
27
28
import org .junit .jupiter .api .BeforeEach ;
28
29
import org .junit .jupiter .api .Test ;
Original file line number Diff line number Diff line change 19
19
20
20
import org .apache .shardingsphere .infra .state .datasource .DataSourceState ;
21
21
import org .apache .shardingsphere .infra .state .datasource .qualified .QualifiedDataSourceState ;
22
+ import org .apache .shardingsphere .mode .node .QualifiedDataSourceStatePersistService ;
22
23
import org .apache .shardingsphere .mode .spi .repository .PersistRepository ;
23
24
import org .junit .jupiter .api .BeforeEach ;
24
25
import org .junit .jupiter .api .Test ;
Original file line number Diff line number Diff line change 26
26
<logger name =" org.apache.shardingsphere" level =" warn" additivity =" false" >
27
27
<appender-ref ref =" console" />
28
28
</logger >
29
- <logger name =" org.apache.shardingsphere.mode.state. node.ComputeNodePersistService" level =" off" />
29
+ <logger name =" org.apache.shardingsphere.mode.node.ComputeNodePersistService" level =" off" />
30
30
31
31
<root >
32
32
<level value =" error" />
Original file line number Diff line number Diff line change 23
23
import org .apache .shardingsphere .mode .manager .cluster .dispatch .handler .global .GlobalDataChangedEventHandler ;
24
24
import org .apache .shardingsphere .mode .node .path .NodePath ;
25
25
import org .apache .shardingsphere .mode .node .path .type .global .state .ClusterNodePath ;
26
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
26
+ import org .apache .shardingsphere .mode .state .ClusterState ;
27
27
28
28
import java .util .Arrays ;
29
29
import java .util .Collection ;
Original file line number Diff line number Diff line change 22
22
import org .apache .shardingsphere .infra .exception .core .ShardingSpherePreconditions ;
23
23
import org .apache .shardingsphere .infra .instance .workerid .WorkerIdAssignedException ;
24
24
import org .apache .shardingsphere .infra .instance .workerid .WorkerIdGenerator ;
25
- import org .apache .shardingsphere .mode .state . node .ComputeNodePersistService ;
25
+ import org .apache .shardingsphere .mode .node .ComputeNodePersistService ;
26
26
import org .apache .shardingsphere .mode .repository .cluster .ClusterPersistRepository ;
27
27
28
28
import java .util .Collection ;
Original file line number Diff line number Diff line change 23
23
import org .apache .shardingsphere .mode .manager .ContextManager ;
24
24
import org .apache .shardingsphere .mode .manager .cluster .dispatch .handler .global .GlobalDataChangedEventHandler ;
25
25
import org .apache .shardingsphere .mode .node .path .engine .generator .NodePathGenerator ;
26
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
26
+ import org .apache .shardingsphere .mode .state .ClusterState ;
27
27
import org .junit .jupiter .api .BeforeEach ;
28
28
import org .junit .jupiter .api .Test ;
29
29
import org .junit .jupiter .api .extension .ExtendWith ;
Original file line number Diff line number Diff line change 20
20
import lombok .SneakyThrows ;
21
21
import org .apache .shardingsphere .infra .instance .workerid .WorkerIdAssignedException ;
22
22
import org .apache .shardingsphere .infra .instance .workerid .WorkerIdGenerator ;
23
- import org .apache .shardingsphere .mode .state . node .ComputeNodePersistService ;
23
+ import org .apache .shardingsphere .mode .node .ComputeNodePersistService ;
24
24
import org .apache .shardingsphere .mode .repository .cluster .ClusterPersistRepository ;
25
25
import org .apache .shardingsphere .test .util .PropertiesBuilder ;
26
26
import org .apache .shardingsphere .test .util .PropertiesBuilder .Property ;
Original file line number Diff line number Diff line change 24
24
import org .apache .curator .framework .state .ConnectionStateListener ;
25
25
import org .apache .shardingsphere .infra .instance .ComputeNodeInstanceContext ;
26
26
import org .apache .shardingsphere .mode .repository .cluster .ClusterPersistRepository ;
27
- import org .apache .shardingsphere .mode .state . node .ComputeNodePersistService ;
27
+ import org .apache .shardingsphere .mode .node .ComputeNodePersistService ;
28
28
29
29
import java .util .Properties ;
30
30
Original file line number Diff line number Diff line change 21
21
import org .apache .curator .framework .CuratorFramework ;
22
22
import org .apache .curator .framework .state .ConnectionState ;
23
23
import org .apache .shardingsphere .infra .instance .ComputeNodeInstanceContext ;
24
- import org .apache .shardingsphere .mode .state . node .ComputeNodePersistService ;
24
+ import org .apache .shardingsphere .mode .node .ComputeNodePersistService ;
25
25
import org .apache .shardingsphere .mode .repository .cluster .ClusterPersistRepository ;
26
26
import org .junit .jupiter .api .Test ;
27
27
import org .junit .jupiter .api .extension .ExtendWith ;
Original file line number Diff line number Diff line change 38
38
import org .apache .shardingsphere .infra .session .query .QueryContext ;
39
39
import org .apache .shardingsphere .infra .spi .ShardingSphereServiceLoader ;
40
40
import org .apache .shardingsphere .infra .spi .type .typed .TypedSPILoader ;
41
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
41
+ import org .apache .shardingsphere .mode .state .ClusterState ;
42
42
import org .apache .shardingsphere .proxy .backend .context .ProxyContext ;
43
43
import org .apache .shardingsphere .proxy .backend .distsql .DistSQLStatementContext ;
44
44
import org .apache .shardingsphere .proxy .backend .handler .admin .DatabaseAdminBackendHandlerFactory ;
Original file line number Diff line number Diff line change 25
25
import org .apache .shardingsphere .infra .exception .core .external .sql .identifier .SQLExceptionIdentifier ;
26
26
import org .apache .shardingsphere .infra .lock .LockContext ;
27
27
import org .apache .shardingsphere .infra .spi .type .typed .TypedSPILoader ;
28
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
28
+ import org .apache .shardingsphere .mode .state .ClusterState ;
29
29
import org .apache .shardingsphere .mode .lock .exception .LockedClusterException ;
30
30
import org .apache .shardingsphere .mode .lock .global .GlobalLockDefinition ;
31
31
import org .apache .shardingsphere .mode .manager .ContextManager ;
Original file line number Diff line number Diff line change 22
22
import org .apache .shardingsphere .distsql .statement .ral .updatable .UnlockClusterStatement ;
23
23
import org .apache .shardingsphere .infra .exception .core .ShardingSpherePreconditions ;
24
24
import org .apache .shardingsphere .infra .lock .LockContext ;
25
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
25
+ import org .apache .shardingsphere .mode .state .ClusterState ;
26
26
import org .apache .shardingsphere .mode .lock .exception .NotLockedClusterException ;
27
27
import org .apache .shardingsphere .mode .lock .global .GlobalLockDefinition ;
28
28
import org .apache .shardingsphere .mode .manager .ContextManager ;
Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .shardingsphere .proxy .backend .lock .impl ;
19
19
20
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
20
+ import org .apache .shardingsphere .mode .state .ClusterState ;
21
21
import org .apache .shardingsphere .proxy .backend .context .ProxyContext ;
22
22
import org .apache .shardingsphere .proxy .backend .lock .spi .ClusterLockStrategy ;
23
23
Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .shardingsphere .proxy .backend .lock .impl ;
19
19
20
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
20
+ import org .apache .shardingsphere .mode .state .ClusterState ;
21
21
import org .apache .shardingsphere .proxy .backend .context .ProxyContext ;
22
22
import org .apache .shardingsphere .proxy .backend .lock .spi .ClusterLockStrategy ;
23
23
Original file line number Diff line number Diff line change 30
30
import org .apache .shardingsphere .mode .manager .ContextManager ;
31
31
import org .apache .shardingsphere .mode .metadata .MetaDataContexts ;
32
32
import org .apache .shardingsphere .mode .spi .repository .PersistRepository ;
33
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
33
+ import org .apache .shardingsphere .mode .state .ClusterState ;
34
34
import org .junit .jupiter .api .AfterEach ;
35
35
import org .junit .jupiter .api .BeforeEach ;
36
36
import org .junit .jupiter .api .Test ;
Original file line number Diff line number Diff line change 30
30
import org .apache .shardingsphere .infra .session .connection .ConnectionContext ;
31
31
import org .apache .shardingsphere .infra .session .connection .transaction .TransactionConnectionContext ;
32
32
import org .apache .shardingsphere .infra .spi .type .typed .TypedSPILoader ;
33
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
33
+ import org .apache .shardingsphere .mode .state .ClusterState ;
34
34
import org .apache .shardingsphere .mode .manager .ContextManager ;
35
35
import org .apache .shardingsphere .mode .metadata .MetaDataContexts ;
36
36
import org .apache .shardingsphere .parser .rule .SQLParserRule ;
Original file line number Diff line number Diff line change 20
20
import org .apache .shardingsphere .distsql .segment .AlgorithmSegment ;
21
21
import org .apache .shardingsphere .distsql .statement .ral .updatable .LockClusterStatement ;
22
22
import org .apache .shardingsphere .infra .spi .exception .ServiceProviderNotFoundException ;
23
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
23
+ import org .apache .shardingsphere .mode .state .ClusterState ;
24
24
import org .apache .shardingsphere .mode .lock .exception .LockedClusterException ;
25
25
import org .apache .shardingsphere .mode .manager .ContextManager ;
26
26
import org .apache .shardingsphere .proxy .backend .context .ProxyContext ;
Original file line number Diff line number Diff line change 18
18
package org .apache .shardingsphere .proxy .backend .handler .distsql .ral .updatable ;
19
19
20
20
import org .apache .shardingsphere .distsql .statement .ral .updatable .UnlockClusterStatement ;
21
- import org .apache .shardingsphere .mode .state .cluster . ClusterState ;
21
+ import org .apache .shardingsphere .mode .state .ClusterState ;
22
22
import org .apache .shardingsphere .mode .lock .exception .NotLockedClusterException ;
23
23
import org .apache .shardingsphere .mode .manager .ContextManager ;
24
24
import org .apache .shardingsphere .proxy .backend .context .ProxyContext ;
You can’t perform that action at this time.
0 commit comments