Fwd: Remote Querying DSL Design Discussion
by Mircea Markus
Some more client feedback on the query DSL/functionality.
Begin forwarded message:
>> Thanks for sending this through. We have a few suggestions around functionality that we've found very useful in the past, but otherwise it looks promising.
>>
>> 1. Query on keys or portion of keys
>>
>> 2. Ability to query on unindexed attributes
We had this in mind, but I don't think this functionality will make it in the first release (ISPN 6.0)/
>>
>> 3. the ability to specify a custom filter is potentially useful to implement missing or business logic, although in practice you may be able to construct these with the given filters.
>> Example: Filter out currency values older than X if the time is between 10am and 11am
something to consider.
>>
>> 4. The ability to specify a custom extractor which could be used to extract a portion of stored data or manipulate it before comparison.
>> Example : data is being stored as an array and we're interested in the Nth value in the array -> this is a requirement from a previous project
>>
>> 5. equality and range filters should also include the "andEquals" options: lessThanEquals, greaterThanEquals
+1
>>
>> 6. all(List) and any(List) functions are easier to use than chaining together and() and or() statements
+1
>>
>> 7. I'd suggest with() rather than having() as this is closer to SQL syntax, which has a different meaning for HAVING
>>
>> Do queries require that the entire object be deserialised before the filter can be evaluated or do you compare on deserialised index values?
>> This is potentially quite slow, and requires that matching Java classes are provided on the server side even if the client is .NET
>>
>> Rob
>>
>>
Cheers,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
11 years, 3 months
not able to start infinispan server
by Raihan Jamal
I am trying to start Infinispan server in my Ubuntu machine. Below is my
machine-
rkost@rj-vm9-14105:~/infinispan/infinispan-server-6.0.0.Alpha1/bin$* uname
-a *
* Linux rj-vm9-14105 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19*
* 20:48:58 UTC 2010 x86_64 GNU/Linux*
I was going through this (
https://docs.jboss.org/author/display/ISPN/Infinispan+Server) and I
downloaded Infinispan Server distribution 6.0 (Infinispan servers (HotRod,
REST, Memcached)) from this (http://www.jboss.org/infinispan/downloads).
After downloading it, I started running it from my Ubuntu machine like this-
root@rj-vm9-14105:/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/bin#
sh standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/rkost/infinispan/infinispan-server-6.0.0.Alpha1
JAVA: java
JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m -Xmx512m
-XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
18:11:23,417 INFO [org.jboss.modules] (main) JBoss Modules version
1.2.0.CR1
18:11:23,748 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
18:11:23,851 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015899:
JBoss Infinispan Server 6.0.0.Alpha1 (AS 7.2.0.Final) starting
18:11:24,998 INFO [org.xnio] (MSC service thread 1-1) XNIO Version
3.0.7.GA
18:11:25,003 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO
Implementation Version 3.0.7.GA
18:11:25,010 INFO [org.jboss.as.server] (Controller Boot Thread)
JBAS015888: Creating http management service using socket-binding
(management-http)
18:11:25,020 INFO [org.jboss.remoting] (MSC service thread 1-1) JBoss
Remoting version 3.2.14.GA
18:11:25,097 INFO [org.jboss.as.naming] (ServerService Thread Pool --
21) JBAS011800: Activating Naming Subsystem
18:11:25,116 INFO [org.jboss.as.clustering.infinispan] (ServerService
Thread Pool -- 17) JBAS010280: Activating Infinispan subsystem.
18:11:25,143 INFO [org.jboss.as.connector.logging] (MSC service thread
1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.15.Final)
18:11:25,144 INFO [org.jboss.as.security] (ServerService Thread Pool
-- 23) JBAS013171: Activating Security Subsystem
18:11:25,386 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 27)
JBAS012605: Activated the following JSF Implementations: [main, 1.2]
18:11:25,408 INFO [org.jboss.as.naming] (MSC service thread 1-2)
JBAS011802: Starting Naming Service
18:11:25,413 INFO [org.jboss.as.security] (MSC service thread 1-1)
JBAS013170: Current PicketBox version=4.0.15.Final
18:11:26,025 INFO [org.apache.coyote.ajp] (MSC service thread 1-1)
JBWEB003046: Starting Coyote AJP/1.3 on ajp-/127.0.0.1:8009
18:11:26,030 INFO [org.apache.coyote.http11] (MSC service thread 1-1)
JBWEB003001: Coyote HTTP/1.1 initializing on : http-/127.0.0.1:8080
18:11:26,064 INFO [org.apache.coyote.http11] (MSC service thread 1-1)
JBWEB003000: Coyote HTTP/1.1 starting on: http-/127.0.0.1:8080
18:11:26,594 INFO [org.infinispan.server.endpoint] (MSC service thread
1-1) JDGS010000: HotRodServer starting
18:11:26,596 INFO [org.infinispan.server.endpoint] (MSC service thread
1-1) JDGS010001: HotRodServer listening on 127.0.0.1:11222
18:11:26,686 INFO [org.infinispan.server.endpoint] (MSC service thread
1-2) JDGS010000: WebSocketServer starting
18:11:26,686 INFO [org.infinispan.server.endpoint] (MSC service thread
1-2) JDGS010001: WebSocketServer listening on 127.0.0.1:8181
18:11:27,223 INFO [org.infinispan.factories.GlobalComponentRegistry]
(MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan '<TBD>'
6.0.0.Alpha1
18:11:27,883 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC
service thread 1-1) ISPN000031: MBeans were successfully registered to the
platform MBean server.
18:11:27,892 INFO [org.jboss.as.clustering.infinispan] (MSC service
thread 1-1) JBAS010281: Started default cache from local container
18:11:28,165 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-2) MSC00001: Failed to start service
jboss.endpoint.websocket.websocket-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.websocket.websocket-connector: JDGS010004: Failed to start
WebSocketServer
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:106)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
Caused by: org.jboss.netty.channel.ChannelException: Failed to create a
selector.
at
org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:337)
at
org.jboss.netty.channel.socket.nio.AbstractNioSelector.<init>(AbstractNioSelector.java:95)
at
org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:51)
at
org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:45)
at
org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:45)
at
org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:28)
at
org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.newWorker(AbstractNioWorkerPool.java:99)
at
org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.init(AbstractNioWorkerPool.java:69)
at
org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:39)
at
org.infinispan.server.core.transport.NettyTransport.<init>(NettyTransport.scala:51)
at
org.infinispan.server.core.AbstractProtocolServer.startTransport(AbstractProtocolServer.scala:44)
at
org.infinispan.server.core.AbstractProtocolServer.start(AbstractProtocolServer.scala:39)
at
org.infinispan.server.websocket.WebSocketServer.start(WebSocketServer.java:63)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.startProtocolServer(ProtocolServerService.java:123)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:100)
... 5 more
Caused by: java.io.IOException: Too many open files
at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
[rt.jar:1.6.0_20]
at
sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:87)
[rt.jar:1.6.0_20]
at
sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:70)
[rt.jar:1.6.0_20]
at
sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
[rt.jar:1.6.0_20]
at java.nio.channels.Selector.open(Selector.java:226)
[rt.jar:1.6.0_20]
at
org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:335)
... 19 more
18:11:28,181 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-1) MSC00001: Failed to start service
jboss.endpoint.hotrod.hotrod-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.hotrod.hotrod-connector: JDGS010004: Failed to start
HotRodServer
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:106)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
Caused by: org.jboss.netty.channel.ChannelException: Failed to open a
server socket.
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:57)
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:205)
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:85)
at
org.jboss.netty.bootstrap.ServerBootstrap.bindAsync(ServerBootstrap.java:329)
at
org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:266)
at
org.infinispan.server.core.transport.NettyTransport.start(NettyTransport.scala:83)
at
org.infinispan.server.core.AbstractProtocolServer.startTransport(AbstractProtocolServer.scala:49)
at
org.infinispan.server.hotrod.HotRodServer.startTransport(HotRodServer.scala:67)
at
org.infinispan.server.core.AbstractProtocolServer.start(AbstractProtocolServer.scala:39)
at
org.infinispan.server.hotrod.HotRodServer.start(HotRodServer.scala:51)
at
org.infinispan.server.hotrod.HotRodServer.start(HotRodServer.scala:27)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.startProtocolServer(ProtocolServerService.java:123)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:100)
... 5 more
Caused by: java.net.SocketException: Too many open files
at sun.nio.ch.Net.socket0(Native Method) [rt.jar:1.6.0_20]
at sun.nio.ch.Net.serverSocket(Net.java:119) [rt.jar:1.6.0_20]
at
sun.nio.ch.ServerSocketChannelImpl.<init>(ServerSocketChannelImpl.java:91)
[rt.jar:1.6.0_20]
at
sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:51)
[rt.jar:1.6.0_20]
at
java.nio.channels.ServerSocketChannel.open(ServerSocketChannel.java:92)
[rt.jar:1.6.0_20]
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:55)
... 17 more
18:11:28,252 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC
service thread 1-1) ISPN000031: MBeans were successfully registered to the
platform MBean server.
18:11:28,251 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC
service thread 1-2) ISPN000031: MBeans were successfully registered to the
platform MBean server.
18:11:28,256 INFO [org.jboss.as.clustering.infinispan] (MSC service
thread 1-1) JBAS010281: Started other cache from security container
18:11:28,263 INFO [org.jboss.as.clustering.infinispan] (MSC service
thread 1-2) JBAS010281: Started jboss-web-policy cache from security
container
18:11:28,267 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC
service thread 1-2) ISPN000031: MBeans were successfully registered to the
platform MBean server.
18:11:28,268 INFO [org.jboss.as.clustering.infinispan] (MSC service
thread 1-2) JBAS010281: Started memcachedCache cache from local container
18:11:28,271 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-2) MSC00001: Failed to start service
jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication:
org.jboss.msc.service.StartException in service
jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication:
JBAS015228: Unable to load properties
at
org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:81)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
Caused by: java.io.FileNotFoundException:
/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/standalone/configuration/mgmt-users.properties
(Too many open files)
at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_20]
at java.io.FileInputStream.<init>(FileInputStream.java:137)
[rt.jar:1.6.0_20]
at
org.jboss.as.domain.management.security.PropertiesFileLoader.getProperties(PropertiesFileLoader.java:108)
at
org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:79)
... 5 more
18:11:28,272 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-1) MSC00001: Failed to start service
jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication:
org.jboss.msc.service.StartException in service
jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication:
JBAS015228: Unable to load properties
at
org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:81)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
Caused by: java.io.FileNotFoundException:
/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/standalone/configuration/application-users.properties
(Too many open files)
at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_20]
at java.io.FileInputStream.<init>(FileInputStream.java:137)
[rt.jar:1.6.0_20]
at
org.jboss.as.domain.management.security.PropertiesFileLoader.getProperties(PropertiesFileLoader.java:108)
at
org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:79)
... 5 more
18:11:28,284 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC
service thread 1-1) ISPN000031: MBeans were successfully registered to the
platform MBean server.
18:11:28,284 INFO [org.jboss.as.clustering.infinispan] (MSC service
thread 1-1) JBAS010281: Started namedCache cache from local container
18:11:28,285 INFO [org.infinispan.server.endpoint] (MSC service thread
1-1) JDGS010000: REST starting
18:11:28,287 ERROR [stderr] (MSC service thread 1-1) ZoneInfo:
/usr/share/javazi/ZoneInfoMappings (Too many open files)
18:11:28,289 WARN [org.jboss.modules] (MSC service thread 1-1) Failed
to define class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
in Module "org.jboss.resteasy.resteasy-jaxrs:main" from local module loader
@19e3118a (finder: local module finder @a94884d (roots:
/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/modules,/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/modules/system/layers/base)):
org.jboss.modules.ModuleLoadError: No module.xml file found at
/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/modules/system/layers/base/org/apache/commons/codec/main/module.xml
at
org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78)
[jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.Module.getPathsUnchecked(Module.java:1180)
[jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.Module.loadModuleClass(Module.java:513)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
[jboss-modules.jar:1.2.0.CR1]
at java.lang.ClassLoader.defineClass1(Native Method)
[rt.jar:1.6.0_20]
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
[rt.jar:1.6.0_20]
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[rt.jar:1.6.0_20]
at
org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:338)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:402)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:254)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
[jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.Module.loadModuleClass(Module.java:518)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
[jboss-modules.jar:1.2.0.CR1]
at
org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:133)
[infinispan-server-endpoints-6.0.0.Alpha1.jar:6.0.0.Alpha1]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
18:11:28,291 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-1) MSC00001: Failed to start service jboss.endpoint.rest.rest-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.rest.rest-connector: Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
Caused by: java.lang.NoClassDefFoundError:
org/jboss/resteasy/plugins/server/servlet/ResteasyBootstrap
at
org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:133)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
... 3 more
Caused by: java.lang.ClassNotFoundException:
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap from [Module
"org.infinispan.server.endpoint:main" from local module loader @19e3118a
(finder: local module finder @a94884d (roots:
/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/modules,/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/modules/system/layers/base))]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[jboss-modules.jar:1.2.0.CR1]
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
[jboss-modules.jar:1.2.0.CR1]
... 6 more
18:11:28,293 INFO [org.infinispan.server.endpoint] (MSC service thread
1-2) JDGS010000: MemcachedServer starting
18:11:28,294 INFO [org.infinispan.server.endpoint] (MSC service thread
1-2) JDGS010001: MemcachedServer listening on 127.0.0.1:11211
18:11:28,295 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-2) MSC00001: Failed to start service
jboss.endpoint.memcached.memcached-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.memcached.memcached-connector: JDGS010004: Failed to start
MemcachedServer
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:106)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_20]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
Caused by: org.jboss.netty.channel.ChannelException: Failed to create a
selector.
at
org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:337)
at
org.jboss.netty.channel.socket.nio.AbstractNioSelector.<init>(AbstractNioSelector.java:95)
at
org.jboss.netty.channel.socket.nio.NioServerBoss.<init>(NioServerBoss.java:49)
at
org.jboss.netty.channel.socket.nio.NioServerBossPool.newBoss(NioServerBossPool.java:55)
at
org.jboss.netty.channel.socket.nio.NioServerBossPool.newBoss(NioServerBossPool.java:26)
at
org.jboss.netty.channel.socket.nio.AbstractNioBossPool.init(AbstractNioBossPool.java:65)
at
org.jboss.netty.channel.socket.nio.NioServerBossPool.<init>(NioServerBossPool.java:40)
at
org.infinispan.server.core.transport.NettyTransport.<init>(NettyTransport.scala:39)
at
org.infinispan.server.core.AbstractProtocolServer.startTransport(AbstractProtocolServer.scala:44)
at
org.infinispan.server.core.AbstractProtocolServer.start(AbstractProtocolServer.scala:39)
at
org.infinispan.server.memcached.MemcachedServer.start(MemcachedServer.scala:30)
at
org.infinispan.server.memcached.MemcachedServer.start(MemcachedServer.scala:17)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.startProtocolServer(ProtocolServerService.java:123)
at
org.infinispan.server.endpoint.subsystem.ProtocolServerService.start(ProtocolServerService.java:100)
... 5 more
Caused by: java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method) [rt.jar:1.6.0_20]
at
sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:67)
[rt.jar:1.6.0_20]
at
sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
[rt.jar:1.6.0_20]
at java.nio.channels.Selector.open(Selector.java:226)
[rt.jar:1.6.0_20]
at
org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:335)
... 18 more
18:11:28,935 ERROR [org.jboss.as.controller.client] (Controller Boot
Thread) JBAS014781: Step handler
org.jboss.as.logging.LoggingOperations$CommitOperationStepHandler@3c9076dfor
operation add at address [("subsystem" => "logging")] failed handling
operation rollback -- JBAS011565: Failed to write configuration file
/home/rkost/infinispan/infinispan-server-6.0.0.Alpha1/standalone/configuration/logging.properties
18:11:28,937 INFO [org.jboss.as.controller] (Controller Boot Thread)
JBAS014774: Service status report
JBAS014777: Services which failed to start: service
jboss.endpoint.rest.rest-connector: org.jboss.msc.service.StartException in
service jboss.endpoint.rest.rest-connector: Failed to start service
service
jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication:
org.jboss.msc.service.StartException in service
jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication:
JBAS015228: Unable to load properties
service jboss.endpoint.memcached.memcached-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.memcached.memcached-connector: JDGS010004: Failed to start
MemcachedServer
service jboss.endpoint.hotrod.hotrod-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.hotrod.hotrod-connector: JDGS010004: Failed to start
HotRodServer
service jboss.endpoint.websocket.websocket-connector:
org.jboss.msc.service.StartException in service
jboss.endpoint.websocket.websocket-connector: JDGS010004: Failed to start
WebSocketServer
service
jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication:
org.jboss.msc.service.StartException in service
jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication:
JBAS015228: Unable to load properties
18:11:28,945 ERROR [org.jboss.as.server] (Controller Boot Thread)
JBAS015956: Caught exception during boot: java.lang.NullPointerException
at
org.jboss.as.controller.persistence.ConfigurationFile.createHistoryDirectory(ConfigurationFile.java:482)
[jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.controller.persistence.ConfigurationFile.successfulBoot(ConfigurationFile.java:306)
[jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.controller.persistence.BackupXmlConfigurationPersister.successfulBoot(BackupXmlConfigurationPersister.java:65)
[jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.controller.AbstractControllerService.finishBoot(AbstractControllerService.java:234)
[jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.server.ServerService.boot(ServerService.java:310)
[jboss-as-server-7.2.0.Final.jar:7.2.0.Final]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188)
[jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]
18:11:28,945 FATAL [org.jboss.as.server] (Controller Boot Thread)
JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See
previous messages for details.
18:11:28,959 INFO [org.jboss.as.controller] (MSC service thread 1-1)
JBAS014774: Service status report
Does anyone know why I am getting the exception? And what I should do to
fix the problem? I have spend whole one day to figure this thing out.
11 years, 3 months
Memory consumption of ISPN 5.3 in compatibility mode
by Martin Gencur
Hey,
so I've updated my tests for measuring memory consumption so as to work
in a compatibility mode and the results are following (extending latest
Galder's report with my results):
Infinispan memory overhead, used in library mode:
Infinispan 5.2.0.Final: ~151 bytes
Infinispan 5.3.0.Final: ~135 bytes
Infinispan 5.3.0.Final (compat. mode): ~135 bytes
Infinispan memory overhead, for the Hot Rod server:
Infinispan 5.2.0.Final: ~174 bytes
Infinispan 5.3.0.Final: ~151 bytes
Infinispan 5.3.0.Final (compat. mode): ~175 bytes
Infinispan memory overhead, for the REST server:
Infinispan 5.2.0.Final: ~208 bytes
Infinispan 5.3.0.Final: ~172 bytes
Infinispan 5.3.0.Final (compat. mode): ~173 bytes
Infinispan memory overhead, for the Memcached server:
Infinispan 5.2.0.Final: ~184 bytes
Infinispan 5.3.0.Final: ~180 bytes
Infinispan 5.3.0.Final (compat. mode): ~224 bytes
Notable differences are for HotRod and Memcached clients. The tests for
Memcached are (and have always been) using SpyMemcached client to store
the entries into the server. For the compatibility mode, I had to
register a custom marshaller that would be able to marshall/unmarshall
data sent by SpyMemcached. I used this marshaller:
https://github.com/infinispan/infinispan/blob/master/integrationtests/com...
. That might be a partial cause of the bigger footprint.
Martin
11 years, 3 months
Re: [infinispan-dev] Reproduce repl sync cache locking issue
by Mircea Markus
Thanks Ray!
I think the issue is: https://issues.jboss.org/browse/JGRP-1659
Bela the test is attached to the JIRA.
Ray, I think your harness can be pretty useful as a general purpose tool for reporting issues, I think it's worth cleaning it up a bit + doc and add it to the infinispan repo. Wdyt?
On 16 Jul 2013, at 20:11, Ray Tsang <rtsang(a)redhat.com> wrote:
> Hi All,
>
> Please see attached test.
>
> It generates random payloads of different sizes according to a distribution.
> At client, the actual payload size ranges from 10k to 2mb. However, this test only simulates btwn 10 bytes to 50k bytes - and locking still occurs.
>
> Do not run unit tests - those tests are for other things ;) To run the actual test, do:
>
> mvn -e exec:exec -Dnode=n // where n is the node number 1 to 4 etc.
>
> What I do is open 3 terminals/tabs/screens, whichever you prefer, each run:
> mvn -e exec:exec -Dnode=1
> mvn -e exec:exec -Dnode=2
> mvn -e exec:exec -Dnode=3
> ...
>
> It'll prompt you to press a key when ready. When you confirm cluster has formed, press any key to continue on all the nodes.
>
> Thanks,
>
> <replication-test.zip>
Cheers,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
11 years, 3 months
ProtoStream and ease of use
by Emmanuel Bernard
Mircea, Adrian and I had an IRC chat on ProtoStream and ProtoStuff.
check out
http://transcripts.jboss.org/channel/irc.freenode.org/%23infinispan/2013/...
starting at 11:00 and finishing at 12:30
A short summary of what has been discussed:
- ProtoStream is a good cross-platform solution but
- complicated for the simple pure Java case
- encourages a technical superclass (EJB 2 !!!!!)
- ProtoStuff convention + annotation based approach
https://code.google.com/p/protostuff/wiki/ProtostuffRuntime is nice
for the pure Java case
- ProtoStuff is many things and has a non ProtoBuf compliant format for
cycle ref and polymorphism
- ProtoStream supports unknown fields (future version of a schema),
ProtoBuf does not
- we could build a convention based solution atop ProtoStream
- assuming UnknownFieldSet and BaseMessage are optional
- using (cross platform) conventions
- with metadata to go beyond conventions (annotation, programmatic
API, XML...)
public long size; //uses fixed64 by default
@PSType(UINT64) long size; //override protobuf type
- Infinispan will/could(?) have a repo of schema that can be queries
- we are talking about how the schema is resolved / generated
- what we send through the wire is independent of the Proto*
A ProtoBuf vs ProtoStream comparison points
https://gist.github.com/mmarkus/5999646
Emmanuel
11 years, 3 months
Re: [infinispan-dev] staggered_get Question
by Mircea Markus
(Adding -dev)
On 12 Jul 2013, at 05:04, Hammad Said <hsaid(a)redhat.com> wrote:
> I have implemented the change for address ordering in and created the topic branch optimize_staggered-get in:
> https://github.com/hsaid4327/infinispan.git
which branch do you want me to look at?
Or better can you please issue a pull request with your change?
>
> The next part is the configuration change. For the configuration change, there are certain design decisions that need to be made:
> a) We need to introduce two configuration params staggered_get_flag and staggered_get_timeout. Where exactly are these params specified in the cache configuration file. At the global or the cache level and under what element. Are they be implemented as attributes of clustering element, separate element as a child of clustering or cache.
What about something like:
<cluseter>
<remoteReads policy="ALL|STAGGER|MAIN_OWNER" staggerTimeout="50"/>
</cluster>
What others think?
> b) once we read the properties second big question is how to pass them on to the dispatcher in question i.e CommandAwareRpcDispatacher. There are two choices here:
> 1- We change the method signature of invokeRemoteCommands and pass on these two params. This choice involves making up the calling stack in the classes that invoke this method namele JGroupsTransport and possible up the calling stream.
> 2- Another option is to set it on the ResponseFilter which is passed to CommandAwareRpcDispatcher.
I'm not sure the CARD needs to be aware of the staggering. I'd think it is the responsibility of the caller (DistributionInterceptor) to orchestrate staggering..
>
> Also, would the changes in configuration would require making a change in XSD schema file?
>
> Thanks!
> Hammad
>
>
> `
Cheers,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
11 years, 3 months