hvantran / project-management

GNU General Public License v3.0
0 stars 0 forks source link

[action-manager] Using transactional in action manager functions after migrating mongodb instance to replica set #67

Closed hvantran closed 9 months ago

hvantran commented 9 months ago

root@3dca1150a2a0:/# mongosh Current Mongosh Log ID: 654125bd6f6fa5aca986b9a2 Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.1 Using MongoDB: 7.0.2 Using Mongosh: 2.0.1

For mongosh info see: https://docs.mongodb.com/mongodb-shell/


The server generated these startup warnings when booting 2023-10-31T01:35:51.895+00:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem 2023-10-31T01:35:53.875+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted 2023-10-31T01:35:53.876+00:00: vm.max_map_count is too low

rs0 [direct: primary] test> rs.initiate() rs0 [direct: primary] test> db.getMongo() mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.1 rs0 [direct: primary] test> rs.status() { set: 'rs0', date: ISODate("2023-10-31T16:06:46.407Z"), myState: 1, term: Long("8"), syncSourceHost: '', syncSourceId: -1, heartbeatIntervalMillis: Long("2000"), majorityVoteCount: 1, writeMajorityCount: 1, votingMembersCount: 1, writableVotingMembersCount: 1, optimes: { lastCommittedOpTime: { ts: Timestamp({ t: 1698768397, i: 1 }), t: Long("8") }, lastCommittedWallTime: ISODate("2023-10-31T16:06:37.516Z"), readConcernMajorityOpTime: { ts: Timestamp({ t: 1698768397, i: 1 }), t: Long("8") }, appliedOpTime: { ts: Timestamp({ t: 1698768397, i: 1 }), t: Long("8") }, durableOpTime: { ts: Timestamp({ t: 1698768397, i: 1 }), t: Long("8") }, lastAppliedWallTime: ISODate("2023-10-31T16:06:37.516Z"), lastDurableWallTime: ISODate("2023-10-31T16:06:37.516Z") }, lastStableRecoveryTimestamp: Timestamp({ t: 1698768367, i: 1 }), electionCandidateMetrics: { lastElectionReason: 'electionTimeout', lastElectionDate: ISODate("2023-10-31T01:35:54.204Z"), electionTerm: Long("8"), lastCommittedOpTimeAtElection: { ts: Timestamp({ t: 0, i: 0 }), t: Long("-1") }, lastSeenOpTimeAtElection: { ts: Timestamp({ t: 1698684570, i: 1 }), t: Long("7") }, numVotesNeeded: 1, priorityAtElection: 1, electionTimeoutMillis: Long("10000"), newTermStartDate: ISODate("2023-10-31T01:35:54.230Z"), wMajorityWriteAvailabilityDate: ISODate("2023-10-31T01:35:54.293Z") }, members: [ { _id: 0, name: '3dca1150a2a0:27017', health: 1, state: 1, stateStr: 'PRIMARY', uptime: 52255, optime: { ts: Timestamp({ t: 1698768397, i: 1 }), t: Long("8") }, optimeDate: ISODate("2023-10-31T16:06:37.000Z"), lastAppliedWallTime: ISODate("2023-10-31T16:06:37.516Z"), lastDurableWallTime: ISODate("2023-10-31T16:06:37.516Z"), syncSourceHost: '', syncSourceId: -1, infoMessage: '', electionTime: Timestamp({ t: 1698716154, i: 1 }), electionDate: ISODate("2023-10-31T01:35:54.000Z"), configVersion: 1, configTerm: 8, self: true, lastHeartbeatMessage: '' } ], ok: 1, '$clusterTime': { clusterTime: Timestamp({ t: 1698768397, i: 1 }), signature: { hash: Binary.createFromBase64("AAAAAAAAAAAAAAAAAAAAAAAAAAA=", 0), keyId: Long("0") } }, operationTime: Timestamp({ t: 1698768397, i: 1 }) } rs0 [direct: primary] test>