Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13664

GridCommandHandlerTest.testPersistenceCleanCorruptedCachesCommand fails on Windows platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.10
    • None
    • None

    Description

      This test fails to start Ignite node due to the following exception:

      [2020-11-03 18:02:02,044][ERROR][test-runner-#1%gridCommandHandlerTest%][IgniteKernal%gridCommandHandlerTest1] Exception during start processors, node will be stopped and close connections
      java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
      \
      	at java.util.regex.Pattern.error(Pattern.java:1969)
      	at java.util.regex.Pattern.compile(Pattern.java:1708)
      	at java.util.regex.Pattern.<init>(Pattern.java:1352)
      	at java.util.regex.Pattern.compile(Pattern.java:1028)
      	at java.lang.String.split(String.java:2380)
      	at java.lang.String.split(String.java:2422)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.startMemoryRestore(GridCacheDatabaseSharedManager.java:1601)
      	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1282)
      	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2096)
      	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1748)
      	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1143)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:641)
      	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:1231)
      	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:1152)
      	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:1128)
      	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:997)
      	at org.apache.ignite.util.GridCommandHandlerTest.testPersistenceCleanCorruptedCachesCommand(GridCommandHandlerTest.java:414)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.apache.ignite.testframework.junits.GridAbstractTest$7.run(GridAbstractTest.java:2375)
      	at java.lang.Thread.run(Thread.java:748)
      

      The root cause of this failure is that File.separator on Windows platform is slash, which is interpreted as an erroneous regular expression by String.split().

      Attachments

        Issue Links

          Activity

            People

              sergeychugunov Sergey Chugunov
              slava.koptilin Vyacheslav Koptilin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m