[SERVER-64462] 更新shard key并abortTransaction得到报错并导致mongos hang Created: 14/Mar/22 Updated: 27/Oct/23 Resolved: 22/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Yi deng | Assignee: | Yuan Fang |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
mongo5.0.4 redhat 8 操作步骤: MongoDB Enterprise mongos> var session = db.getMongo().startSession() MongoDB Enterprise mongos> session.commitTransaction() }, } with original command request: { , }, 然后mongos上find,currentOp等操作都无响应了。
|
| Comments |
| Comment by Yuan Fang [ 21/Sep/22 ] |
|
Hi 251237926@qq.com , Thank you for your report. Kindly note that MongoDB Jira and Support are only available in English. Since the issue has already been addressed in a post in MongoDB Community Forum, I would like to summarize the answers here: transactions were errored and aborted because modifying shard keys uses transactions, and "prepareTransaction" is not supported for replica sets with arbiters. I'm glad your issue has been resolved, and I'm going to close this ticket. Regards, |
| Comment by Yi deng [ 18/Mar/22 ] |
|
此问题由于shard cluster中包含了arbiter member导致,但是发生hang之后,不知道如何让系统恢复正常。 |
| Comment by Yi deng [ 14/Mar/22 ] |
|
不好意思,写错了,是commitTransaction |