Git Product home page Git Product logo

Comments (5)

adrai avatar adrai commented on June 25, 2024

I think this has nothing to do with eventstore...
but, without knowing how this is set up, I can't really help you. :-(

from node-eventstore.

sameer-convergentappworks avatar sameer-convergentappworks commented on June 25, 2024

Possibly. I am using Mongo for store.

After few trials, looks like it could be due to the JSON with empty arrays or nested object with array.
Will keep you posted..

from node-eventstore.

sameer-convergentappworks avatar sameer-convergentappworks commented on June 25, 2024

Sorry for not giving you a proper test for reproducing, but I think this seems to fix the issue.

For arrays properties I have to check if they exist and have elements
for other properties

if (data.peps !== undefined && data.peps.length > 0) {
     vm.set("peps", data.peps);
}

and because I pick out array properties for setting I have to repeat the following for other non array properties.

if (data.existingClient !== undefined) {
     vm.set("existingClient", data.existingClient);
}

Need to dig deep in code for vm.set for Mongo store.

from node-eventstore.

sameer-convergentappworks avatar sameer-convergentappworks commented on June 25, 2024

hi adrai,

I have got better logs now. I use mongo store.
The logs show error in loop. I have to kill the process to stop. Does it help ?

  myprojectname.eventDenormalizer eventDenormalizer -- denormalize event  +121ms {
        "event": "detailsUpdated",
        "payload": {
                "_id": "56b84db219adf8c8224f5952",
                "id": "56b84db219adf8c8224f5952",
                "peps": [],
                "createdBy": {
                        "userid": "..removed..",
                        "id": "54dbab9f5cc06d449ca25cc6",
                        "name": "..removed.."
                },
                "tempTicketId": "cikdp9eq0001b64kgrti6hiak",
                "status": "draft",
                "auditTrail": [
                        {
                                "state": "draft",
                                "changedBy": {
                                        "userid": "..removed..",
                                        "id": "54dbab9f5cc06d449ca25cc6",
                                        "name": "..removed.."
                                },
                                "timeChanged": "2016-02-08T08:11:30.223Z"
                        }
                ],
                "commitStamp": 1454919090224,
                "_hash": "56b84db2cd9b7b6c2ec4c56a"
        },
        "head": {
                "revision": 4
        },
        "commandId": "msg1",
        "aggregate": {
                "name": "..removed..
        },
        "id": "d78966fa-39aa-46f0-88cb-4c8b4ea63510"
}
  denormalizer:revisionGuard no revision in store => retry [concatenatedId]=approval56b84db219adf8c8224f5952, [revInStore]=null, [revInEvt]=4 +4s
  denormalizer:revisionGuard no revision in store => retry [concatenatedId]=approval56b84db219adf8c8224f5952, [revInStore]=null, [revInEvt]=4 +723ms
  denormalizer:revisionGuard no revision in store => retry [concatenatedId]=approval56b84db219adf8c8224f5952, [revInStore]=null, [revInEvt]=4 +324ms
  denormalizer:revisionGuard finished loops for retry => proceed [concatenatedId]=approval56b84db219adf8c8224f5952, [revInStore]=null, [revInEvt]=4 +699ms
  denormalizer:revisionGuard first revision to store [concatenatedId]=approval56b84db219adf8c8224f5952, [revInStore]=null, [revInEvt]=4 +3ms
  denormalizer:eventDispatcher no version found, handling as version: 0 +4ms
  denormalizer:eventDispatcher no context found +2ms
  denormalizer:viewBuilder [detailsUpdated] found viewmodel id in event +8ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 call denormalizer function +15ms
  myprojectname.viewBuilder saving detailsUpdated +3s {
        "_id": "56b84db219adf8c8224f5952",
        "id": "56b84db219adf8c8224f5952",
        "peps": [],
        "createdBy": {
                "userid": "..removed..",
                "id": "54dbab9f5cc06d449ca25cc6",
                "name": "..removed.."
        },
        "tempTicketId": "cikdp9eq0001b64kgrti6hiak",
        "status": "draft",
        "auditTrail": [
                {
                        "state": "draft",
                        "changedBy": {
                                "userid": "..removed..",
                                "id": "54dbab9f5cc06d449ca25cc6",
                                "name": "..removed.."
                        },
                        "timeChanged": "2016-02-08T08:11:30.223Z"
                }
        ],
        "commitStamp": 1454919090224,
        "_hash": "56b84db2cd9b7b6c2ec4c56a"
}
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 generate new id for notification +20ms
  denormalizer:viewBuilder ConcurrencyError
    at C:\Temp\myprojectpath\node_modules\cqrs-eventdenormalizer\node_modules\viewmodel\lib\databases\mongodb.js:213:31
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\utils.js:96:12
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\collection.js:987:5
    at C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:780:13
    at [object Object].emit (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:95:3)
    at [object Object].messageHandler (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:249:23)
    at Socket.<anonymous> (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:265:22)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:528:21) +6ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 retry in 38ms +9ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 call denormalizer function +46ms
  myprojectname.viewBuilder saving detailsUpdated +78ms {
        "_id": "56b84db219adf8c8224f5952",
        "id": "56b84db219adf8c8224f5952",
        "peps": [],
        "createdBy": {
                "userid": "..removed..",
                "id": "54dbab9f5cc06d449ca25cc6",
                "name": "..removed.."
        },
        "tempTicketId": "cikdp9eq0001b64kgrti6hiak",
        "status": "draft",
        "auditTrail": [
                {
                        "state": "draft",
                        "changedBy": {
                                "userid": "..removed..",
                                "id": "54dbab9f5cc06d449ca25cc6",
                                "name": "..removed.."
                        },
                        "timeChanged": "2016-02-08T08:11:30.223Z"
                }
        ],
        "commitStamp": 1454919090224,
        "_hash": "56b84db2cd9b7b6c2ec4c56a"
}
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 generate new id for notification +10ms
  denormalizer:viewBuilder ConcurrencyError
    at C:\Temp\myprojectpath\node_modules\cqrs-eventdenormalizer\node_modules\viewmodel\lib\databases\mongodb.js:213:31
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\utils.js:96:12
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\collection.js:987:5
    at C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:780:13
    at [object Object].emit (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:95:3)
    at [object Object].messageHandler (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:249:23)
    at Socket.<anonymous> (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:265:22)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:528:21) +2ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 retry in 159ms +7ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 call denormalizer function +166ms
  myprojectname.viewBuilder saving detailsUpdated +185ms {
        "_id": "56b84db219adf8c8224f5952",
        "id": "56b84db219adf8c8224f5952",
        "peps": [],
        "createdBy": {
                "userid": "..removed..",
                "id": "54dbab9f5cc06d449ca25cc6",
                "name": "..removed.."
        },
        "tempTicketId": "cikdp9eq0001b64kgrti6hiak",
        "status": "draft",
        "auditTrail": [
                {
                        "state": "draft",
                        "changedBy": {
                                "userid": "..removed..",
                                "id": "54dbab9f5cc06d449ca25cc6",
                                "name": "..removed.."
                        },
                        "timeChanged": "2016-02-08T08:11:30.223Z"
                }
        ],
        "commitStamp": 1454919090224,
        "_hash": "56b84db2cd9b7b6c2ec4c56a"
}
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 generate new id for notification +11ms
  denormalizer:viewBuilder ConcurrencyError
    at C:\Temp\myprojectpath\node_modules\cqrs-eventdenormalizer\node_modules\viewmodel\lib\databases\mongodb.js:213:31
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\utils.js:96:12
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\collection.js:987:5
    at C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:780:13
    at [object Object].emit (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:95:3)
    at [object Object].messageHandler (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:249:23)
    at Socket.<anonymous> (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:265:22)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:528:21) +1ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 retry in 583ms +6ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 call denormalizer function +590ms
  myprojectname.viewBuilder saving detailsUpdated +610ms {
        "_id": "56b84db219adf8c8224f5952",
        "id": "56b84db219adf8c8224f5952",
        "peps": [],
        "createdBy": {
                "userid": "..removed..",
                "id": "54dbab9f5cc06d449ca25cc6",
                "name": "..removed.."
        },
        "tempTicketId": "cikdp9eq0001b64kgrti6hiak",
        "status": "draft",
        "auditTrail": [
                {
                        "state": "draft",
                        "changedBy": {
                                "userid": "..removed..",
                                "id": "54dbab9f5cc06d449ca25cc6",
                                "name": "..removed.."
                        },
                        "timeChanged": "2016-02-08T08:11:30.223Z"
                }
        ],
        "commitStamp": 1454919090224,
        "_hash": "56b84db2cd9b7b6c2ec4c56a"
}
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 generate new id for notification +25ms
  denormalizer:viewBuilder ConcurrencyError
    at C:\Temp\myprojectpath\node_modules\cqrs-eventdenormalizer\node_modules\viewmodel\lib\databases\mongodb.js:213:31
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\utils.js:96:12
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\collection.js:987:5
    at C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:780:13
    at [object Object].emit (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:95:3)
    at [object Object].messageHandler (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:249:23)
    at Socket.<anonymous> (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:265:22)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:528:21) +2ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 retry in 391ms +10ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 call denormalizer function +399ms
  myprojectname.viewBuilder saving detailsUpdated +439ms {
        "_id": "56b84db219adf8c8224f5952",
        "id": "56b84db219adf8c8224f5952",
        "peps": [],
        "createdBy": {
                "userid": "..removed..",
                "id": "54dbab9f5cc06d449ca25cc6",
                "name": "..removed.."
        },
        "tempTicketId": "cikdp9eq0001b64kgrti6hiak",
        "status": "draft",
        "auditTrail": [
                {
                        "state": "draft",
                        "changedBy": {
                                "userid": "..removed..",
                                "id": "54dbab9f5cc06d449ca25cc6",
                                "name": "..removed.."
                        },
                        "timeChanged": "2016-02-08T08:11:30.223Z"
                }
        ],
        "commitStamp": 1454919090224,
        "_hash": "56b84db2cd9b7b6c2ec4c56a"
}
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 generate new id for notification +29ms
  denormalizer:viewBuilder ConcurrencyError
    at C:\Temp\myprojectpath\node_modules\cqrs-eventdenormalizer\node_modules\viewmodel\lib\databases\mongodb.js:213:31
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\utils.js:96:12
    at C:\Temp\myprojectpath\node_modules\mongodb\lib\collection.js:987:5
    at C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:780:13
    at [object Object].emit (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:95:3)
    at [object Object].messageHandler (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:249:23)
    at Socket.<anonymous> (C:\Temp\myprojectpath\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:265:22)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:528:21) +4ms
  denormalizer:viewBuilder [detailsUpdated], [eventId]=d78966fa-39aa-46f0-88cb-4c8b4ea63510 retry in 741ms +11ms


from node-eventstore.

sameer-convergentappworks avatar sameer-convergentappworks commented on June 25, 2024

Not an issue. closing.

This was happening on the page where a command was fired twice. I wasn't pulling the latest state before the second command was fired. So _hash value used for second request was stale.
As a result the framework raised concurrency error which is correct.

from node-eventstore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.