{"action":"created","issue":{"url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/issues/50","repository_url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing","labels_url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/issues/50/comments","events_url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/issues/50/events","html_url":"https://github.com/Terracotta-OSS/tc-passthrough-testing/issues/50","id":189922685,"number":50,"title":"Monitoring tree is not made aware of the new entity after entity creation but before createNew()","user":{"login":"mathieucarbou","id":61346,"avatar_url":"https://avatars.githubusercontent.com/u/61346?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieucarbou","html_url":"https://github.com/mathieucarbou","followers_url":"https://api.github.com/users/mathieucarbou/followers","following_url":"https://api.github.com/users/mathieucarbou/following{/other_user}","gists_url":"https://api.github.com/users/mathieucarbou/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieucarbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieucarbou/subscriptions","organizations_url":"https://api.github.com/users/mathieucarbou/orgs","repos_url":"https://api.github.com/users/mathieucarbou/repos","events_url":"https://api.github.com/users/mathieucarbou/events{/privacy}","received_events_url":"https://api.github.com/users/mathieucarbou/received_events","type":"User","site_admin":false},"labels":[{"id":404473641,"url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"jd0-sag","id":16048428,"avatar_url":"https://avatars.githubusercontent.com/u/16048428?v=3","gravatar_id":"","url":"https://api.github.com/users/jd0-sag","html_url":"https://github.com/jd0-sag","followers_url":"https://api.github.com/users/jd0-sag/followers","following_url":"https://api.github.com/users/jd0-sag/following{/other_user}","gists_url":"https://api.github.com/users/jd0-sag/gists{/gist_id}","starred_url":"https://api.github.com/users/jd0-sag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jd0-sag/subscriptions","organizations_url":"https://api.github.com/users/jd0-sag/orgs","repos_url":"https://api.github.com/users/jd0-sag/repos","events_url":"https://api.github.com/users/jd0-sag/events{/privacy}","received_events_url":"https://api.github.com/users/jd0-sag/received_events","type":"User","site_admin":false},"assignees":[{"login":"jd0-sag","id":16048428,"avatar_url":"https://avatars.githubusercontent.com/u/16048428?v=3","gravatar_id":"","url":"https://api.github.com/users/jd0-sag","html_url":"https://github.com/jd0-sag","followers_url":"https://api.github.com/users/jd0-sag/followers","following_url":"https://api.github.com/users/jd0-sag/following{/other_user}","gists_url":"https://api.github.com/users/jd0-sag/gists{/gist_id}","starred_url":"https://api.github.com/users/jd0-sag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jd0-sag/subscriptions","organizations_url":"https://api.github.com/users/jd0-sag/orgs","repos_url":"https://api.github.com/users/jd0-sag/repos","events_url":"https://api.github.com/users/jd0-sag/events{/privacy}","received_events_url":"https://api.github.com/users/jd0-sag/received_events","type":"User","site_admin":false},{"login":"myronkscott","id":16088297,"avatar_url":"https://avatars.githubusercontent.com/u/16088297?v=3","gravatar_id":"","url":"https://api.github.com/users/myronkscott","html_url":"https://github.com/myronkscott","followers_url":"https://api.github.com/users/myronkscott/followers","following_url":"https://api.github.com/users/myronkscott/following{/other_user}","gists_url":"https://api.github.com/users/myronkscott/gists{/gist_id}","starred_url":"https://api.github.com/users/myronkscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronkscott/subscriptions","organizations_url":"https://api.github.com/users/myronkscott/orgs","repos_url":"https://api.github.com/users/myronkscott/repos","events_url":"https://api.github.com/users/myronkscott/events{/privacy}","received_events_url":"https://api.github.com/users/myronkscott/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-11-17T03:05:46Z","updated_at":"2016-11-17T18:00:59Z","closed_at":null,"body":"stack trace:\r\n\r\n```\r\nCaused by: java.lang.IllegalStateException: Illegal monitoring topology state: Missing consumer ID: 1 on server server-1\r\n- currentActive: server-1\r\n- cluster:\r\n{stripes=[{id=SINGLE, name=SINGLE, servers=[{id=server-1, serverEntities=[], serverName=server-1, hostName=localhost, hostAddress=127.0.0.1, bindAddress=0.0.0.0, bindPort=9510, groupPort=9610, state=ACTIVE, version=Version Passthrough 5.0.0-SNAPSHOT, buildId=Build ID - -930394586, startTime=1479351689542, upTimeSec=0, activateTime=1479351689542}]}], clients=[{id=30439@127.0.0.1:UNKNOWN:e8fa604e-ea97-4b5f-87e6-bd268b4fb20d, pid=30439, hostAddress=127.0.0.1, name=UNKNOWN, logicalConnectionUid=e8fa604e-ea97-4b5f-87e6-bd268b4fb20d, vmId=30439@127.0.0.1, clientId=30439@127.0.0.1:UNKNOWN:e8fa604e-ea97-4b5f-87e6-bd268b4fb20d, hostName=matc.local, tags=[], connections=[{id=e8fa604e-ea97-4b5f-87e6-bd268b4fb20d:SINGLE:server-1:127.0.0.1:49152, logicalConnectionUid=e8fa604e-ea97-4b5f-87e6-bd268b4fb20d, clientEndpoint={address=127.0.0.1, port=49152}, stripeId=SINGLE, serverId=server-1, serverEntityIds={}}], managementRegistry=null}]}\r\n- monitoring services:DefaultMonitoringService{\r\nconsumerId={}, \r\nfetches={}, \r\ncalls={}}\r\n\tat org.terracotta.management.service.monitoring.DefaultListener.newIllegalTopologyState(DefaultListener.java:467)\r\n\tat org.terracotta.management.service.monitoring.DefaultListener.getServerEntity(DefaultListener.java:439)\r\n\tat org.terracotta.management.service.monitoring.DefaultListener.setState(DefaultListener.java:341)\r\n\tat org.terracotta.management.service.monitoring.DataListenerAdapter.addNode(DataListenerAdapter.java:60)\r\n\tat org.terracotta.passthrough.PassthroughMonitoringProducer.addNodeFromShim(PassthroughMonitoringProducer.java:123)\r\n\tat org.terracotta.passthrough.PassthroughMonitoringProducer.access$000(PassthroughMonitoringProducer.java:36)\r\n\tat org.terracotta.passthrough.PassthroughMonitoringProducer$1.addNode(PassthroughMonitoringProducer.java:81)\r\n\tat org.terracotta.management.service.monitoring.DefaultMonitoringService.exposeServerEntityManagementRegistry(DefaultMonitoringService.java:328)\r\n\tat org.terracotta.management.service.monitoring.DefaultConsumerManagementRegistry.refresh(DefaultConsumerManagementRegistry.java:78)\r\n\tat org.terracotta.management.entity.tms.server.TmsAgentImpl.init(TmsAgentImpl.java:167)\r\n\tat org.terracotta.management.entity.tms.server.TmsAgentServerEntity.createNew(TmsAgentServerEntity.java:40)\r\n\tat org.terracotta.passthrough.PassthroughServerProcess.create(PassthroughServerProcess.java:704)\r\n\tat org.terracotta.passthrough.PassthroughServerMessageDecoder.decode(PassthroughServerMessageDecoder.java:104)\r\n\t... 8 more\r\n```\r\n\r\nIt crashed into \r\n\r\n```\r\norg.terracotta.passthrough.PassthroughServerProcess.create(PassthroughServerProcess.java:704)\r\n```\r\n\r\nBecause the `PlatformEntity` object has not been sent to the monitoring tree between the call to `createActiveEntity()` and `createNew()`"},"comment":{"url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/issues/comments/261320800","html_url":"https://github.com/Terracotta-OSS/tc-passthrough-testing/issues/50#issuecomment-261320800","issue_url":"https://api.github.com/repos/Terracotta-OSS/tc-passthrough-testing/issues/50","id":261320800,"user":{"login":"mathieucarbou","id":61346,"avatar_url":"https://avatars.githubusercontent.com/u/61346?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieucarbou","html_url":"https://github.com/mathieucarbou","followers_url":"https://api.github.com/users/mathieucarbou/followers","following_url":"https://api.github.com/users/mathieucarbou/following{/other_user}","gists_url":"https://api.github.com/users/mathieucarbou/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieucarbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieucarbou/subscriptions","organizations_url":"https://api.github.com/users/mathieucarbou/orgs","repos_url":"https://api.github.com/users/mathieucarbou/repos","events_url":"https://api.github.com/users/mathieucarbou/events{/privacy}","received_events_url":"https://api.github.com/users/mathieucarbou/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T18:00:59Z","updated_at":"2016-11-17T18:00:59Z","body":"UPDATE: this linked to https://github.com/Terracotta-OSS/terracotta-apis/issues/165. You told me to use createNew() for my needs. So I assume, and we need, to have the topology updated right after the entity is created, and __BEFORE__ and callback to \"initialize\" it.\r\n\r\nOtherwise, we need this init() method that we asked for."}}
{"actor":{"display_login":"mathieucarbou"}}