Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Debugging zookeeper service dsicovery

Hi Scott,

I added in the listeners as suggested - results below.  It looks like the client discovers the second proxy, but never retrieves the second proxy.  Do you have a recommended breakpoint from this datapoint?

Bryan



Output from client:

ZooDiscovery> Service Discovered: Oct 5, 2010 10:18:37 AM. ServiceInfo[uri=9.41.188.106;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=9.41.188.106;full=_osgiservices._tcp.default._iana@9.41.188.106];priority=0;weight=0;props=ServiceProperties[{com.ibm.hdwb.jobs.common.monitor.port=9020, ecf.sp.ect=ecf.generic.server, com.ibm.hdwb.jobs.common.monitor.command=/afs/awd/projects/cte/tools/hdwb/prod/llmonitor/monitor.ksh, component.id=22, com.ibm.hdwb.jobs.common.monitor.host=tritium.austin.ibm.com, component.name=com.ibm.hdwb.ll.server.job_queue_service, ll_submit_command=, ecf.rsvc.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@313a313a, ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@2e9f2e9f, com.ibm.hdwb.jobs.common.pool.uuid=4ab60c63-c188-48e2-9db5-64d21063b01f, com.ibm.hdwb.jobs.common.monitor.submitter=bhunt, service.factoryPid=com.ibm.hdwb.ll.server.job_queue_service, service.pid=com.ibm.hdwb.ll.server.job_queue_service-1286291916914-0, com.ibm.hdwb.jobs.common.monitor.restlet.port=8080, osgi.remote.service.interfaces=com.ibm.hdwb.jobs.common.IJobQueueService, ecf.rsvc.ns=ecf.namespace.generic.remoteservice, ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, com.ibm.hdwb.jobs.common.monitor.restlet.host=tritium.austin.ibm.com}]]
Proxy discovery discovered: null
Proxy distribution retrieving: 0
Proxy distribution registering: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30001/server];containerRelativeID=0]
Proxy distribution registered: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30001/server];containerRelativeID=0]


ZooDiscovery> Service Discovered: Oct 5, 2010 10:20:16 AM. ServiceInfo[uri=9.41.188.106;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=9.41.188.106;full=_osgiservices._tcp.default._iana@9.41.188.106];priority=0;weight=0;props=ServiceProperties[{com.ibm.hdwb.jobs.common.monitor.port=9020, ecf.sp.ect=ecf.generic.server, com.ibm.hdwb.jobs.common.monitor.command=/afs/awd/projects/cte/tools/hdwb/prod/llmonitor/monitor.ksh, component.id=22, com.ibm.hdwb.jobs.common.monitor.host=tritium.austin.ibm.com, component.name=com.ibm.hdwb.ll.server.job_queue_service, ll_submit_command=, ecf.rsvc.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@2fc12fc1, ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@2e662e66, com.ibm.hdwb.jobs.common.pool.uuid=4ab60c63-c188-48e2-9db5-64d21063b01f, com.ibm.hdwb.jobs.common.monitor.submitter=bhunt, service.factoryPid=com.ibm.hdwb.ll.server.job_queue_service, service.pid=com.ibm.hdwb.ll.server.job_queue_service-1286292015780-0, com.ibm.hdwb.jobs.common.monitor.restlet.port=8080, osgi.remote.service.interfaces=com.ibm.hdwb.jobs.common.IJobQueueService, ecf.rsvc.ns=ecf.namespace.generic.remoteservice, ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, com.ibm.hdwb.jobs.common.monitor.restlet.host=tritium.austin.ibm.com}]]
Proxy discovery discovered: null



Output from server 1:

Host discovery publish: svc_X3RtmpkBZ991jRm1KJBed4xNURA=
ZooDiscovery> Service Published: Oct 5, 2010 10:18:37 AM. ServiceInfo[uri=osgiservices://9.41.188.106:30001/svc_X3RtmpkBZ991jRm1KJBed4xNURA=;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://9.41.188.106:30001/svc_X3RtmpkBZ991jRm1KJBed4xNURA=;full=_osgiservices._tcp.default._iana@osgiservices://9.41.188.106:30001/svc_X3RtmpkBZ991jRm1KJBed4xNURA=];priority=0;weight=0;props=ServiceProperties[{com.ibm.hdwb.jobs.common.monitor.port=9020, ecf.sp.ect=ecf.generic.server, com.ibm.hdwb.jobs.common.monitor.command=/afs/awd/projects/cte/tools/hdwb/prod/llmonitor/monitor.ksh, component.id=22, com.ibm.hdwb.jobs.common.monitor.host=tritium.austin.ibm.com, component.name=com.ibm.hdwb.ll.server.job_queue_service, ecf.rsvc.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@5ad05ad0, ll_submit_command=, ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@27412741, com.ibm.hdwb.jobs.common.pool.uuid=4ab60c63-c188-48e2-9db5-64d21063b01f, com.ibm.hdwb.jobs.common.monitor.submitter=bhunt, service.factoryPid=com.ibm.hdwb.ll.server.job_queue_service, service.pid=com.ibm.hdwb.ll.server.job_queue_service-1286291916914-0, com.ibm.hdwb.jobs.common.monitor.restlet.port=8080, osgi.remote.service.interfaces=com.ibm.hdwb.jobs.common.IJobQueueService, ecf.rsvc.ns=ecf.namespace.generic.remoteservice, ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, com.ibm.hdwb.jobs.common.monitor.restlet.host=tritium.austin.ibm.com}]]
Proxy discovery discovered: svc_X3RtmpkBZ991jRm1KJBed4xNURA=
Host distribution registered: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30001/server];containerRelativeID=0]
Proxy distribution retrieving: 0
Proxy distribution registering: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30001/server];containerRelativeID=0]
Proxy distribution registered: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30001/server];containerRelativeID=0]


Output from server 2:

Host discovery publish: svc_VFGjr0XPp/FyTwDrcYMaYDdETwY=
ZooDiscovery> Service Published: Oct 5, 2010 10:20:16 AM. ServiceInfo[uri=osgiservices://9.41.188.106:30002/svc_VFGjr0XPp/FyTwDrcYMaYDdETwY=;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://9.41.188.106:30002/svc_VFGjr0XPp/FyTwDrcYMaYDdETwY=;full=_osgiservices._tcp.default._iana@osgiservices://9.41.188.106:30002/svc_VFGjr0XPp/FyTwDrcYMaYDdETwY=];priority=0;weight=0;props=ServiceProperties[{com.ibm.hdwb.jobs.common.monitor.port=9020, ecf.sp.ect=ecf.generic.server, com.ibm.hdwb.jobs.common.monitor.command=/afs/awd/projects/cte/tools/hdwb/prod/llmonitor/monitor.ksh, component.id=22, com.ibm.hdwb.jobs.common.monitor.host=tritium.austin.ibm.com, component.name=com.ibm.hdwb.ll.server.job_queue_service, ecf.rsvc.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@1c701c70, ll_submit_command=, ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@e090e09, com.ibm.hdwb.jobs.common.pool.uuid=4ab60c63-c188-48e2-9db5-64d21063b01f, com.ibm.hdwb.jobs.common.monitor.submitter=bhunt, service.factoryPid=com.ibm.hdwb.ll.server.job_queue_service, service.pid=com.ibm.hdwb.ll.server.job_queue_service-1286292015780-0, com.ibm.hdwb.jobs.common.monitor.restlet.port=8080, osgi.remote.service.interfaces=com.ibm.hdwb.jobs.common.IJobQueueService, ecf.rsvc.ns=ecf.namespace.generic.remoteservice, ecf.sp.cns=org.eclipse.ecf.core.identity.StringID, com.ibm.hdwb.jobs.common.monitor.restlet.host=tritium.austin.ibm.com}]]
Proxy discovery discovered: svc_VFGjr0XPp/FyTwDrcYMaYDdETwY=
Host distribution registered: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30002/server];containerRelativeID=0]
Proxy distribution retrieving: 0
Proxy distribution registering: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30002/server];containerRelativeID=0]
Proxy distribution registered: org.eclipse.ecf.remoteservice.RemoteServiceID[containerID=StringID[ecftcp://tritium.austin.ibm.com:30002/server];containerRelativeID=0]




On Oct 4, 2010, at 1:00 PM, Scott Lewis wrote:

Hi Bryan,

In addition to breakpoints, it might be useful to use these listeners:

(on host side)
org.eclipse.ecf.osgi.services.discovery.IHostDiscoveryListener
org.eclipse.ecf.osgi.services.distribution.IHostDistributionListener

(on consumer side)
org.eclipse.ecf.osgi.services.discovery.IProxyDiscoveryListener
org.eclipse.ecf.osgi.services.distribution.IProxyDistributionListener

Each of these use the OSGi whiteboard pattern...i.e. create an implementer of these interfaces and register them as OSGi services.  Then when things happen in the discovery and/or distribution implementations, the appropriate methods are called back.

Examples of usage exist in the hello examples projects (i.e. in org.eclipse.ecf.examples.remoteservices.hello.host and org.eclipse.ecf.examples.remoteservices.hello.consumer)...i.e. in the HelloHostApplication and HelloConsumerApplication.

Scott

On 10/4/2010 10:07 AM, Bryan Hunt wrote:
Wim,

I need to start debugging the problem where a remote service is discovered by zookeeper, but no proxy is created when I run multiple servers on the same machine exporting the same service.  Where should I be setting breakpoints to track down this problem?

Bryan
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev


Back to the top