...
Aborting a transaction that began while an index build is in progress may invoke registered changes in the RecoveryUnit to rollback changes to the temporary tables used by the index build. In the event of a replica set step down, the index build may be cleaned up, along with the associated IndexBuildInterceptor and the temporary tables, before the abort procedure is completed for the transaction. This may result in the rollback handler in the RecoveryUnit accessing the internal state of an IndexBuildInterceptor that is no longer available. A potential scenario, which requires SERVER-42824 to be implemented , is described in SERVER-42621.
xgen-internal-githook commented on Wed, 28 Aug 2019 15:02:08 +0000: Author: {'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'} Message: SERVER-42869 fix crash in IndexBuildsCoordinator::sideWrite() rollback handler This can happen when an index build cleanup takes priority over aborting a transaction that has some uncommitted writes to the side table. (cherry picked from commit fc57c83820eaa846790bac737221c8ee960d4068) Branch: v4.2 https://github.com/mongodb/mongo/commit/0adca0e077ec30435ab852827b01e786b6a80891 xgen-internal-githook commented on Wed, 28 Aug 2019 13:31:21 +0000: Author: {'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'} Message: SERVER-42869 use shared_ptr to manage side writes counter in IndexBuildInterceptor (cherry picked from commit 8a285153c1729dd9dcb417f1dccfa8593d25fe7e) Branch: v4.2 https://github.com/mongodb/mongo/commit/df801bb56490ef3e25863379ca5f0f9e1fe90a48 xgen-internal-githook commented on Thu, 22 Aug 2019 18:54:13 +0000: Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'} Message: SERVER-42869 fix crash in IndexBuildsCoordinator::sideWrite() rollback handler This can happen when an index build cleanup takes priority over aborting a transaction that has some uncommitted writes to the side table. Branch: master https://github.com/mongodb/mongo/commit/fc57c83820eaa846790bac737221c8ee960d4068 xgen-internal-githook commented on Thu, 22 Aug 2019 15:21:18 +0000: Author: {'username': 'benety', 'email': 'benety@mongodb.com', 'name': 'Benety Goh'} Message: SERVER-42869 use shared_ptr to manage side writes counter in IndexBuildInterceptor Branch: master https://github.com/mongodb/mongo/commit/8a285153c1729dd9dcb417f1dccfa8593d25fe7e