New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ha policy changes and refactoring #1872
Conversation
bfeed7f
to
04487a1
Compare
These are the failures: est Result (8 failures / ±0) |
you don't have a JIRA for such change? |
4942f04
to
08451ef
Compare
please retest this |
retest this please |
I have tried to add comments in-line but for some reason my browser was slog with a commit this big: so, instead let me add the nodes here... I will add one comment per point as I'm writing as I'm looking though. here's the first... ConfigurationImpl::isCheckForLiveServer / setCheckForLiveServer I think these two methods should be deprecated... and we should make sure that the AS integration is not using it. How bad would be to delete these deprecated methods? |
ConfigurationUtils:: It's just my taste here.... not strongly against it... but do you really need these many instanceofs? isn't there a way to be more polymorfic and have a method with implementations? |
I liked a lot the refactoring out of Activations (moving Activations as individual classes).. it seems why we didn't do it that way before now |
DefaultsFileConfigurationTest:: There's a big todo fix: I guess it's best to just remove that? if you intend to fix it I would raise a JIRA... or just leave removed? |
FileConfigurationTest: Big TODO fix.. same as DefaultFileConfigurationTest::
... fix it now.. or remove it with a JIRA? that kind of thing will stay there for years on my experience |
another reason to remove those (my last 2 comments on DefaultFileconfigurationTest and DefaultsFileconfigurationTest is that you added HAPolicyConfigurationTest) |
FailoverTest::testWithoutUsingTheBackup
...
Can't you just remove these if no longer valid? what's the reason for commenting out? I didn't get it now.. and I won't certainly get it later if I read this code |
PagingFailoverTest:: Why did you have to remove the waitforbackup on internalTestPage? I added it there. as far as I remember to avoid intermittent failures |
BindingsClusterTest:: public void setUp() throws Exception Don't we need to set failover on shutdown any longer? if not... then just remove this... if yes.. then why it's passing? |
That's it from me... overall nice job here.. just found these minor things... some of them may not be an issue at all. Sorry I couldn't add inline comments as it was not working.. it was being very slow on my browser |
08451ef
to
91bad82
Compare
Ive applied all you suggestions and rebased. Ive removed comments that are not needed and added back in anything that was accidently removed such as the PagingFailoverTest |
Thanks for updated @andytaylor. Ack from me providing that the tests pass. I'll leave it to @clebertsuconic to merge if he is happy. Cheers. |
https://issues.jboss.org/browse/HORNETQ-1418 This patch abstracts the different HA policy configurations into their own classes. This avoids having unrelated configuration elements in the same configuration class or xml chunk. Because of this the HornetQServerImpl class has been simplified by extracting the different Activations into their own class and moving into the Activation any code that is specific to the actual Activation. This should make it easier to extend or add any new Activation code.
91bad82
to
1aaa21b
Compare
ha policy changes and refactoring
This patch abstracts the different HA policy configurations into their own classes. This avoids having unrelated configuration elements in the same configuration class or xml chunk.
Because of this the HornetQServerImpl class has been simplified by extracting the different Activations into their own class and moving into the Activation any code that is specific to the actual Activation. This should make it easier to extend or add any new Activation code.