Giter VIP home page Giter VIP logo

Comments (2)

AkihiroSuda avatar AkihiroSuda commented on July 19, 2024

locally reproducible. TestEndpointWithPacketEvent_256_4 seems hanging.

4919228
a.txt

from namazu.

AkihiroSuda avatar AkihiroSuda commented on July 19, 2024
Test command Reproducible?
for f in $(seq 1 5000);do ./endpoint.test -test.run TestEndpointWithPacketEvent_1_1 -test.v ; done Yes ❗
for f in $(seq 1 5000);do ./endpoint.test -test.run TestEndpointWithPacketEvent_256_4 -test.v ; done Yes
./endpoint.test -test.run TestEndpointWithPacketEvent_1_1 -test.v -test.count 5000 No
./endpoint.test -test.run TestEndpointWithPacketEvent_256_4 -test.v -test.count 5000 No:exclamation:

The result suggests that the cause of the issue is just related to the initialization of the test process.
So the issue is not likely to happen in the usual case.

minimized log:

=== RUN   TestEndpointWithPacketEvent_1_1
[NMZ-DBG] 09:59:17.61: REST getting action http://127.0.0.1:43185/api/v3/actions/restentity-2 (at log.go:210) 
[NMZ-DBG] 09:59:17.61: REST getting action http://127.0.0.1:43185/api/v3/actions/restentity-3 (at log.go:210) 
[NMZ-DBG] 09:59:17.61: ActionQueue[restentity-1]: Peeking (at log.go:210) 
[NMZ-DBG] 09:59:17.61: LOCAL EP handling event Signal{map[string]interface {}{"class":"PacketEvent", "option":map[string]interface {}{"src_entity":"localentity-0", "dst_entit
y":"localentity-0", "value":0}, "type":"event", "deferred":true, "uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1", "entity":"localentity-0"}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: LOCAL EP handled event Signal{map[string]interface {}{"entity":"localentity-0", "class":"PacketEvent", "option":map[string]interface {}{"src_entity":"l
ocalentity-0", "dst_entity":"localentity-0", "value":0}, "type":"event", "deferred":true, "uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1"}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: EP handling event Signal{map[string]interface {}{"class":"PacketEvent", "option":map[string]interface {}{"src_entity":"localentity-0", "dst_entity":"lo
calentity-0", "value":0}, "type":"event", "deferred":true, "uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1", "entity":"localentity-0"}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: ActionQueue[restentity-3]: Peeking (at log.go:210) 
[NMZ-DBG] 09:59:17.61: ActionQueue[restentity-2]: Peeking (at log.go:210) 
[NMZ-DBG] 09:59:17.61: MO handling event Signal{map[string]interface {}{"uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1", "entity":"localentity-0", "class":"PacketEvent", "optio
n":map[string]interface {}{"src_entity":"localentity-0", "dst_entity":"localentity-0", "value":0}, "type":"event", "deferred":true}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: MO handled event Signal{map[string]interface {}{"uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1", "entity":"localentity-0", "class":"PacketEvent", "option
":map[string]interface {}{"src_entity":"localentity-0", "dst_entity":"localentity-0", "value":0}, "type":"event", "deferred":true}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: MO sending action Signal{map[string]interface {}{"class":"EventAcceptanceAction", "option":map[string]interface {}{}, "type":"action", "event_uuid":"6e
316b05-572e-47ce-8ed0-a7d9cb1c63c1", "uuid":"92f00b3f-db3a-4d60-8a69-949d950be7bd", "entity":"localentity-0"}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: MO sent action Signal{map[string]interface {}{"uuid":"92f00b3f-db3a-4d60-8a69-949d950be7bd", "entity":"localentity-0", "class":"EventAcceptanceAction",
 "option":map[string]interface {}{}, "type":"action", "event_uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1"}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: EP handling action Signal{map[string]interface {}{"uuid":"92f00b3f-db3a-4d60-8a69-949d950be7bd", "entity":"localentity-0", "class":"EventAcceptanceActi
on", "option":map[string]interface {}{}, "type":"action", "event_uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1"}} (at log.go:210) 
[NMZ-ERR] 09:59:17.61: Unknown Entity ID:localentity-0 (at log.go:235) 
[NMZ-DBG] 09:59:17.61: EP handled action Signal{map[string]interface {}{"uuid":"92f00b3f-db3a-4d60-8a69-949d950be7bd", "entity":"localentity-0", "class":"EventAcceptanceActio
n", "option":map[string]interface {}{}, "type":"action", "event_uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1"}} (at log.go:210) 
[NMZ-DBG] 09:59:17.61: EP handled event Signal{map[string]interface {}{"uuid":"6e316b05-572e-47ce-8ed0-a7d9cb1c63c1", "entity":"localentity-0", "class":"PacketEvent", "option
":map[string]interface {}{"src_entity":"localentity-0", "dst_entity":"localentity-0", "value":0}, "type":"event", "deferred":true}} (at log.go:210) 

from namazu.

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.