Skip to content

ReplicaStateMachine should consider ReplicaDeletionStarted/ReplicaDeletionSuccessful as a valid previous state #764

@wuchong

Description

@wuchong

Search before asking

  • I searched in the issues and found nothing similar.

Fluss version

0.6.0 (latest release)

Please describe the bug 🐞

com.alibaba.fluss.server.coordinator.TableManagerITCase#testPartitionedTableManagement has many ERROR logs that reporting

5015 [coordinator-event-thread] ERROR com.alibaba.fluss.server.coordinator.statemachine.ReplicaStateMachine [] - Replica state for TableBucketReplica{tableBucket=TableBucket{tableId=0, partitionId=0, bucket=1}, replica=1, tablePath=db1.tb1_YEAR, partition=2025} should be in the [NewReplica, OnlineReplica, OfflineReplica] before moving to state OfflineReplica, but the current state is ReplicaDeletionStarted.
5016 [coordinator-event-thread] ERROR com.alibaba.fluss.server.coordinator.statemachine.ReplicaStateMachine [] - Fail to change state for table bucket replica TableBucketReplica{tableBucket=TableBucket{tableId=0, partitionId=0, bucket=1}, replica=1, tablePath=db1.tb1_YEAR, partition=2025} from ReplicaDeletionStarted to OfflineReplica.
5017 [coordinator-event-thread] ERROR com.alibaba.fluss.server.coordinator.statemachine.ReplicaStateMachine [] - Replica state for TableBucketReplica{tableBucket=TableBucket{tableId=0, partitionId=0, bucket=2}, replica=2, tablePath=db1.tb1_YEAR, partition=2025} should be in the [NewReplica, OnlineReplica, OfflineReplica] before moving to state OfflineReplica, but the current state is ReplicaDeletionStarted.

Solution

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions