[JBoss JIRA] (ISPN-5473) Replace printStackTrace with logging in the test suite
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5473?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño resolved ISPN-5473.
------------------------------------
Resolution: Done
> Replace printStackTrace with logging in the test suite
> ------------------------------------------------------
>
> Key: ISPN-5473
> URL: https://issues.jboss.org/browse/ISPN-5473
> Project: Infinispan
> Issue Type: Task
> Components: Test Suite - Core
> Affects Versions: 7.2.1.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 8.0.0.Alpha1
>
>
> Other logging issues in the test suite:
> * Some tests use System.out for output
> * ClusteredSecureCacheTest.clearContent() writes a stack trace on System.err:
> {noformat}
> java.lang.NoSuchFieldException: componentRegistry
> at java.lang.Class.getDeclaredField(Class.java:2070)
> at org.infinispan.test.TestingUtil.extractField(TestingUtil.java:186)
> at org.infinispan.test.TestingUtil.extractField(TestingUtil.java:166)
> at org.infinispan.test.TestingUtil.extractComponentRegistry(TestingUtil.java:857)
> at org.infinispan.test.TestingUtil.extractComponent(TestingUtil.java:1022)
> at org.infinispan.test.TestingUtil.getTransactionManager(TestingUtil.java:1035)
> at org.infinispan.test.TestingUtil.clearRunningTx(TestingUtil.java:720)
> at org.infinispan.test.TestingUtil.clearContent(TestingUtil.java:677)
> at org.infinispan.test.TestingUtil.clearContent(TestingUtil.java:666)
> at org.infinispan.test.MultipleCacheManagersTest.clearContent(MultipleCacheManagersTest.java:98)
> at org.infinispan.security.ClusteredSecureCacheTest.access$301(ClusteredSecureCacheTest.java:22)
> at org.infinispan.security.ClusteredSecureCacheTest$3.run(ClusteredSecureCacheTest.java:61)
> at org.infinispan.security.ClusteredSecureCacheTest$3.run(ClusteredSecureCacheTest.java:57)
> at org.infinispan.security.Security.doAs(Security.java:143)
> at org.infinispan.security.ClusteredSecureCacheTest.clearContent(ClusteredSecureCacheTest.java:57)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-4190) Use Message.Flag.DONT_LOOPBACK instead of RequestOptions.setExclusionList
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-4190?page=com.atlassian.jira.plugin.... ]
Dan Berindei reassigned ISPN-4190:
----------------------------------
Assignee: Dan Berindei
> Use Message.Flag.DONT_LOOPBACK instead of RequestOptions.setExclusionList
> -------------------------------------------------------------------------
>
> Key: ISPN-4190
> URL: https://issues.jboss.org/browse/ISPN-4190
> Project: Infinispan
> Issue Type: Task
> Components: Core
> Affects Versions: 7.0.0.Alpha2
> Reporter: Dan Berindei
> Assignee: Dan Berindei
>
> We are currently using {{RequestOptions.setExclusionList(channel.getAddress())}} in CommandAwareRpcDispatcher, to prevent the sender of an RPC to receive that message. We can't use {{Channel.setDiscardOwnMessages(true)}}, because TO requires messages to be delivered to self.
> JGroups 3.5.0.Beta2 has added a {{DONT_LOOPBACK}} flag, which should be a lot more efficient than using the exclusion list. We should start using it.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months