[ https://issues.apache.org/jira/browse/GEODE-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kirk Lund closed GEODE-741. --------------------------- > NotificationListener getSource() method does not return useful information > -------------------------------------------------------------------------- > > Key: GEODE-741 > URL: https://issues.apache.org/jira/browse/GEODE-741 > Project: Geode > Issue Type: Improvement > Components: jmx > Reporter: Jens Deppe > > {noformat} > Host name: w2-gst-pnq-01 > OS name: Linux > Architecture: amd64 > OS version: 2.6.32-220.el6.x86_64 > Java version: 1.7.0_72 > Java vm name: Java HotSpot(TM) 64-Bit Server VM > Java vendor: Oracle Corporation > Java home: /export/gcm/where/jdk/1.7.0_72/x86_64.linux/jre > ##################################################### > > GemFire Version 9.0.0-SNAPSHOT > Source Date: 2015-08-23 21:04:58 -0700 > Source Revision: eeb7ae1778d6af454526d1daba79422f903b5f06 > Source Repository: develop > > Build Id: lynn 082515 > Build Date: 2015-08-25 15:34:15 -0700 > Build Version: 9.0.0-SNAPSHOT lynn 082515 2015-08-25 15:34:15 -0700 javac > 1.7.0_72 > Build JDK: Java 1.7.0_72 > Build Platform: Linux 2.6.32-220.el6.x86_64 amd64 > > ##################################################### > Test was run from batt.bt > Test: > asyncMsg/concBurst.conf > A=JMXClient > B=peer > JMXClientHosts=1 > JMXClientThreadsPerVM=1 > JMXClientVMsPerHost=1 > hydra.numHosts=5 > locatorHosts=1 > locatorThreadsPerVM=1 > locatorVMsPerHost=1 > peerHosts=10 > peerThreadsPerVM=5 > peerVMsPerHost=1 > No local.conf for this run > //randomSeed extracted from test: > hydra.Prms-randomSeed=1440543431332; > This test passed, but logs jmx notifications using a NotificationListener. > This listener just logs the information > in the notification object. The "source" (obtained by calling > Notification.getSource()) always logs as > "DistributedSystem(-1)", which doesn't really give any useful information. > The java docs say the source is the object on which the event occurred. But > the returned string is always the same, > no matter which member the event came from. > We need have this return useful information. We also need a unit test for > this. > Note that this is a new test and is currently checked in only on branch > wip-remove-deprecated. > [info 2015/08/25 16:08:20.739 PDT <ClientNotifForwarder-1> tid=0x15] Invoked > util.NotificationLogListener. in JMXClient1 > notification: > javax.management.Notification[source=DistributedSystem(-1)][type=system.alert][message=15 > seconds have elapsed while waiting for replies: > <DistributedCacheOperation$CacheOperationReplyProcessor 75 waiting for 9 > replies from > [w2-gst-pnq-01(peergemfire8_w2-gst-pnq-01_11510:11510)<v2>:32066, > w2-gst-pnq-01(peergemfire9_w2-gst-pnq-01_11537:11537)<v2>:38847, > w2-gst-pnq-01(peergemfire7_w2-gst-pnq-01_11488:11488)<v2>:55130, > w2-gst-pnq-01(peergemfire2_w2-gst-pnq-01_11357:11357)<v2>:56822, > w2-gst-pnq-01(peergemfire10_w2-gst-pnq-01_11334:11334)<v1>:59949, > w2-gst-pnq-01(peergemfire4_w2-gst-pnq-01_11408:11408)<v2>:10401, > w2-gst-pnq-01(peergemfire6_w2-gst-pnq-01_11460:11460)<v1>:7746, > w2-gst-pnq-01(peergemfire5_w2-gst-pnq-01_11432:11432)<v2>:8911, > w2-gst-pnq-01(peergemfire1_w2-gst-pnq-01_11311:11311)<v2>:56168]> on > w2-gst-pnq-01(peergemfire3_w2-gst-pnq-01_11380:11380)<v1>:48369 whose current > membership list is: > [[w2-gst-pnq-01(peergemfire9_w2-gst-pnq-01_11537:11537)<v2>:38847, > w2-gst-pnq-01(peergemfire8_w2-gst-pnq-01_11510:11510)<v2>:32066, > w2-gst-pnq-01(peergemfire7_w2-gst-pnq-01_11488:11488)<v2>:55130, > w2-gst-pnq-01(peergemfire2_w2-gst-pnq-01_11357:11357)<v2>:56822, > w2-gst-pnq-01(peergemfire10_w2-gst-pnq-01_11334:11334)<v1>:59949, > w2-gst-pnq-01(peergemfire4_w2-gst-pnq-01_11408:11408)<v2>:10401, > w2-gst-pnq-01(locatorgemfire1_w2-gst-pnq-01_11306:11306)<v0>:2275, > w2-gst-pnq-01(peergemfire6_w2-gst-pnq-01_11460:11460)<v1>:7746, > w2-gst-pnq-01(peergemfire5_w2-gst-pnq-01_11432:11432)<v2>:8911, > w2-gst-pnq-01(peergemfire1_w2-gst-pnq-01_11311:11311)<v2>:56168, > w2-gst-pnq-01(peergemfire3_w2-gst-pnq-01_11380:11380)<v1>:48369]]] > source: DistributedSystem(-1) > handback: null > timestamp: 1440544100736 > sequence number: 489 > type: system.alert > message: 15 seconds have elapsed while waiting for replies: > <DistributedCacheOperation$CacheOperationReplyProcessor 75 waiting for 9 > replies from > [w2-gst-pnq-01(peergemfire8_w2-gst-pnq-01_11510:11510)<v2>:32066, > w2-gst-pnq-01(peergemfire9_w2-gst-pnq-01_11537:11537)<v2>:38847, > w2-gst-pnq-01(peergemfire7_w2-gst-pnq-01_11488:11488)<v2>:55130, > w2-gst-pnq-01(peergemfire2_w2-gst-pnq-01_11357:11357)<v2>:56822, > w2-gst-pnq-01(peergemfire10_w2-gst-pnq-01_11334:11334)<v1>:59949, > w2-gst-pnq-01(peergemfire4_w2-gst-pnq-01_11408:11408)<v2>:10401, > w2-gst-pnq-01(peergemfire6_w2-gst-pnq-01_11460:11460)<v1>:7746, > w2-gst-pnq-01(peergemfire5_w2-gst-pnq-01_11432:11432)<v2>:8911, > w2-gst-pnq-01(peergemfire1_w2-gst-pnq-01_11311:11311)<v2>:56168]> on > w2-gst-pnq-01(peergemfire3_w2-gst-pnq-01_11380:11380)<v1>:48369 whose current > membership list is: > [[w2-gst-pnq-01(peergemfire9_w2-gst-pnq-01_11537:11537)<v2>:38847, > w2-gst-pnq-01(peergemfire8_w2-gst-pnq-01_11510:11510)<v2>:32066, > w2-gst-pnq-01(peergemfire7_w2-gst-pnq-01_11488:11488)<v2>:55130, > w2-gst-pnq-01(peergemfire2_w2-gst-pnq-01_11357:11357)<v2>:56822, > w2-gst-pnq-01(peergemfire10_w2-gst-pnq-01_11334:11334)<v1>:59949, > w2-gst-pnq-01(peergemfire4_w2-gst-pnq-01_11408:11408)<v2>:10401, > w2-gst-pnq-01(locatorgemfire1_w2-gst-pnq-01_11306:11306)<v0>:2275, > w2-gst-pnq-01(peergemfire6_w2-gst-pnq-01_11460:11460)<v1>:7746, > w2-gst-pnq-01(peergemfire5_w2-gst-pnq-01_11432:11432)<v2>:8911, > w2-gst-pnq-01(peergemfire1_w2-gst-pnq-01_11311:11311)<v2>:56168, > w2-gst-pnq-01(peergemfire3_w2-gst-pnq-01_11380:11380)<v1>:48369]] > user data: {AlertLevel=warning, > Thread=vm_5_thr_21_peer3_w2-gst-pnq-01_11380 tid=0x12b, > Member=peergemfire3_w2-gst-pnq-01_11380} > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)