I tried three different scenarios: In the first, I updated both test projects to act as servers (setClientMode is commented out), but the two nodes do not seem to see each other and it results in conflicting primary keys at the database level, leading to errors.
Second, I setClientMode on just one of the two test applications, and the stack trace shows the client deadlocks in getOrCreateCache, as before. The server completes without issue. The final test I created a third application that just starts Ignite with the code you sent, and I made sure it included the jar files from the other two clients so it had all the classes. The other two applications are clients (setClientMode(true)). I started this third server class and then started the two clients. The clients both deadlock as before in getOrCreateCache. I'm attaching the maven test projects. I'm very surprised that you're not seeing this with the test code I'm sending when I'm seeing 100% reproducibility. I think I must be missing something very basic...? Matt On Wed, Feb 22, 2017 at 6:21 AM, Matt Warner <[email protected]> wrote: > I will try this in about 2 hours and let you know. > > On Feb 22, 2017, at 5:43 AM, Nikolai Tikhonov <[email protected]> > wrote: > > Could you try start to server from java code and look at results? > > Thanks, > Nikolay > > On Wed, Feb 22, 2017 at 4:36 PM, Matt Warner <[email protected]> > wrote: > >> I am using the default configuration for the server and starting it with >> ignite.sh. >> >> Yes, the Store classes are being deployed into the Ignite libs directory >> as well as part of the both testIgnite1 and testIgnite2. >> >> I feel like I'm missing something? >> >> Matt >> >> On Wed, Feb 22, 2017 at 4:50 AM, Nikolai Tikhonov-2 [via Apache Ignite >> Users] <[hidden email] >> <http:///user/SendEmail.jtp?type=node&node=10798&i=0>> wrote: >> >>> Hi Matt! >>> >>> I've run your test and didn't faced with the issue. I used the following >>> code for start server node (placed in your project): >>> >>> public class Server { >>> public static void main(String[] args) throws Exception { >>> TcpDiscoverySpi spi = new TcpDiscoverySpi(); >>> TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder(); >>> ipFinder.setAddresses(Arrays.asList("127.0.0.1")); >>> spi.setIpFinder(ipFinder); >>> IgniteConfiguration cfg = new IgniteConfiguration(); >>> cfg.setDiscoverySpi(spi); >>> >>> Ignition.start(cfg); >>> } >>> } >>> >>> Which configuration you used for start server node? For your case you >>> should deploy Store classes on all nodes in cluster. >>> >>> Thanks, >>> Nikolay >>> >>> On Wed, Feb 22, 2017 at 1:27 AM, Matt Warner <[hidden email] >>> <http:///user/SendEmail.jtp?type=node&node=10795&i=0>> wrote: >>> >>>> There were some coding errors in the previous attachment. The previous >>>> code >>>> still illustrates the deadlock, but the attached correctly stores data >>>> in >>>> tables. >>>> >>>> I've also included the test input file, for completeness. testCode.gz >>>> <http://apache-ignite-users.70518.x6.nabble.com/file/n10770/testCode.gz >>>> > >>>> >>>> >>>> >>>> -- >>>> View this message in context: http://apache-ignite-users.705 >>>> 18.x6.nabble.com/getOrCreateCache-hang-tp10737p10770.html >>>> Sent from the Apache Ignite Users mailing list archive at Nabble.com. >>>> >>> >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the discussion >>> below: >>> http://apache-ignite-users.70518.x6.nabble.com/getOrCreateCa >>> che-hang-tp10737p10795.html >>> To unsubscribe from getOrCreateCache hang, click here. >>> NAML >>> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>> >> >> >> ------------------------------ >> View this message in context: Re: getOrCreateCache hang >> <http://apache-ignite-users.70518.x6.nabble.com/getOrCreateCache-hang-tp10737p10798.html> >> >> Sent from the Apache Ignite Users mailing list archive >> <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com. >> > >
testCode.tar.gz
Description: GNU Zip compressed data
