Skip to content

Fix bugs[dup/ww/data-lost] when unsubscribe table - #17005

Merged
mergify[bot] merged 9 commits into
matrixorigin:mainfrom
triump2020:fix-ww/dup/data-lost/-bugs-when-sub/unsub
Jun 21, 2024
Merged

mergify[bot] merged 9 commits into
matrixorigin:mainfrom
triump2020:fix-ww/dup/data-lost/-bugs-when-sub/unsub

Conversation

@triump2020

@triump2020 triump2020 commented Jun 19, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • [ x] BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #16948 #16938 #16577 #16421 #15844 #14890 #14880 #14405 #14160 #16701 #15843

What this PR does / why we need it:

  1. Fix the follow bugs when unsubscribe table: ww conflicts, duplicate error, data lost, panic.

  2. The following timing can cause tails lost in CN's partition state , resulting in the bugs above.

  CN                                                                           DN 

  send unsubscribe        
                           
 send subscribe
                                                                                
                                                                               receive subsribe

                                                                               receive unsubscibe

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Jun 19, 2024
@triump2020
triump2020 requested a review from volgariver6 June 19, 2024 09:38
@triump2020
triump2020 force-pushed the fix-ww/dup/data-lost/-bugs-when-sub/unsub branch from f6c01da to 5d01ec9 Compare June 20, 2024 09:53
@mergify
mergify Bot merged commit 067da2e into matrixorigin:main Jun 21, 2024
triump2020 added a commit to triump2020/matrixone that referenced this pull request Jun 23, 2024
1.  Fix the follow bugs when unsubscribe table:  ww conflicts, duplicate error, data lost, panic.

2.  The following timing can cause  tails lost in CN's partition state , resulting in the bugs above.

```
CN                                                                           DN

send unsubscribe

send subscribe

receive subsribe

receive unsubscibe
```

Approved by: @volgariver6, @XuPeng-SH, @zhangxu19830126
mergify Bot pushed a commit that referenced this pull request Jun 25, 2024
This was referenced Jun 27, 2024
mergify Bot pushed a commit that referenced this pull request Jun 27, 2024
1. Remove the redundant `requestLock ` to avoid dead lock,  since the [PR ](#17005)  guarantees the serializability of subscribing and unsubscribing a table by state machine.

Approved by: @volgariver6, @XuPeng-SH, @sukki37
mergify Bot pushed a commit that referenced this pull request Jun 27, 2024
1. Remove the redundant `requestLock ` to avoid dead lock,  since the [PR ](#17005)  guarantees the serializability of subscribing and unsubscribing a table by state machine.

Approved by: @XuPeng-SH
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
1.  Fix the follow bugs when unsubscribe table:  ww conflicts, duplicate error, data lost, panic.

2.  The following timing can cause  tails lost in CN's partition state , resulting in the bugs above.

```
CN                                                                           DN

send unsubscribe

send subscribe

receive subsribe

receive unsubscibe
```

Approved by: @volgariver6, @XuPeng-SH, @zhangxu19830126
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
1. Remove the redundant `requestLock ` to avoid dead lock,  since the [PR ](matrixorigin#17005)  guarantees the serializability of subscribing and unsubscribing a table by state machine.

Approved by: @XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants