You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "kirklund (GitHub)" <gi...@apache.org> on 2020/01/28 17:29:44 UTC

[GitHub] [geode] kirklund opened pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

* Rewrite test with standard Geode and JMX APIs
* Rewrite CountingCqListener with AtomicIntegers
* Replace if-else with enum


[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] mhansonp commented on pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

Posted by "mhansonp (GitHub)" <gi...@apache.org>.
I am don't like the duplication, but I think this way is easier to read. I think it doesn't matter a lot in this case. if the test were getting duplicated a lot or if this was in core (not test) code, I might object more.

[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
Okay, good to know this... so, as the rule of thumb, we should use `DisributedRule` and `CacheRule` for distributed tests, and `ServerStarterRule` / `LocatorStarterRule` for integration tests, is that right?.

[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] kirklund commented on pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

Posted by "kirklund (GitHub)" <gi...@apache.org>.
It's possible that changing to Geode and JMX APIs may have contributed to fixing the flakiness.

[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] kirklund commented on pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

Posted by "kirklund (GitHub)" <gi...@apache.org>.
I can restore this. The reason I did this was because the JUnitParams parameter methods are always detected as unused by the IDE, so then you have to mark it with `SuppressWarnings("unused")`.

[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] kirklund commented on pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

Posted by "kirklund (GitHub)" <gi...@apache.org>.
The fix: Use new inner class with AtomicIntegers instead of TestCqListener which is not thread safe.

[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on pull request #4641: GEODE-7604: Fix QueryConfigurationServiceConstraintsDistributedTest

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
I thought we were encouraging people to use the `ClusterStartupRule` instead of `DistributedRule`... did that change?.

[ Full content available at: https://github.com/apache/geode/pull/4641 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org