wojciech.kapcia@tigase.net opened 8 years ago
|
|||
Actually the root cause seems to be different. |
|||
It looks like there root cause is the attempt at connection before server finished startup:
After everything is correctly initialised exception is not thrown. |
|||
Ports are started before starting threads causing the issue:
followed by:
|
|||
Andrzej, I fixed the issue at hand by introducing During getting to know implementation of Kernel/DSL/Bootstrap a couple comments/ideas popped into my mind (and I refrained from going forward with some of them until feedback from you to have consistent implementation):
|
|||
Wojciech Kapcia wrote:
I just reviewed it and adjusted to workflow which I think is a better fit.
No. Bean you passed as an example are beans from subkernel of root kernel and this root kernel should not be aware of them to make sure that there will be no easy way to mix them - ie. what if I would deploy 2 pubsub components named
Beans you mentioned are registered only if parent bean is
No, it was not considered to be removed as tasks may be registered from other beans (ie. subbeans) before component is fully initialized. |
|||
Andrzej Wójcik wrote:
side comment: As per discussion on IM - it was simply ignored and a direct call to |
|||
I decided to use different solution as it is not possible to remove entries from waitingTasks, so I modified PortConfigBean to delay initialization of port. I've checked and in my opinion now it works properly. %wojtek Please review my changes if now this works properly. |
|||
Andrzej Wójcik wrote:
I've run a quick check on our node1/2.xmpp-test.net and while opening of the ports is in fact delayed and listening it doesn't work correctly (due to exception the cluster connection is not even established):
|
|||
Thank you for reporting this. I was focused on testing delayed opening of ports and did not run a test with more than 1 node. I found a cause of this issue. It was caused by fact that I've also found that |
|||
Andrzej Wójcik wrote:
That was my initial fix more or less ;-) I've checked and now it looks it's working correctly. Only missing bit is the information that the port opening was (intentionally) delayed, which result in something like:
@started@? OK, I'll reference once more Startup Time - it has quite clear component lifecycle. currently
There is a |
|||
As suggested I renamed I also added warnings about delayed opening of ports (originally lost during merging changes from 7.1.0). |
|||
Now everything works. |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
4885
|
Version |
tigase-server-8.0.0
|
Spent time |
107h 30m
|