在Spring Boot项目中运行Redis相关的单元测试时,发生异常,消息为MISCONF Redis is configured to save RDB snapshots…

1、异常信息

"D:\Program Files\Java\jdk1.8.0_301\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Program Files\ideaIU-2020.3.2.win\lib\idea_rt.jar=59364:D:\Program Files\ideaIU-2020.3.2.win\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\ideaIU-2020.3.2.win\lib\idea_rt.jar;C:\Users\liuzh\.m2\repository\org\junit\platform\junit-platform-launcher\1.7.2\junit-platform-launcher-1.7.2.jar;C:\Users\liuzh\.m2\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;C:\Users\liuzh\.m2\repository\org\junit\platform\junit-platform-engine\1.7.2\junit-platform-engine-1.7.2.jar;C:\Users\liuzh\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\liuzh\.m2\repository\org\junit\platform\junit-platform-commons\1.7.2\junit-platform-commons-1.7.2.jar;D:\Program Files\ideaIU-2020.3.2.win\plugins\junit\lib\junit5-rt.jar;D:\Program Files\ideaIU-2020.3.2.win\plugins\junit\lib\junit-rt.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\deploy.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\access-bridge-64.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\cldrdata.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\dnsns.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\jaccess.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\jfxrt.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\localedata.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\nashorn.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunec.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunjce_provider.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunmscapi.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunpkcs11.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\zipfs.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\javaws.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\jfxswt.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\management-agent.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\plugin.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8.0_301\jre\lib\rt.jar;F:\U\U20190220\004-CourseCase\Java\SpringBoot\SpringBoot0307Redis\target\test-classes;F:\U\U20190220\004-CourseCase\Java\SpringBoot\SpringBoot0307Redis\target\classes;E:\Repository-Maven\org\springframework\boot\spring-boot-starter-web\2.4.11\spring-boot-starter-web-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-starter\2.4.11\spring-boot-starter-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-starter-logging\2.4.11\spring-boot-starter-logging-2.4.11.jar;E:\Repository-Maven\ch\qos\logback\logback-classic\1.2.6\logback-classic-1.2.6.jar;E:\Repository-Maven\ch\qos\logback\logback-core\1.2.6\logback-core-1.2.6.jar;E:\Repository-Maven\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;E:\Repository-Maven\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;E:\Repository-Maven\org\slf4j\jul-to-slf4j\1.7.32\jul-to-slf4j-1.7.32.jar;E:\Repository-Maven\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\Repository-Maven\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-starter-json\2.4.11\spring-boot-starter-json-2.4.11.jar;E:\Repository-Maven\com\fasterxml\jackson\core\jackson-databind\2.11.4\jackson-databind-2.11.4.jar;E:\Repository-Maven\com\fasterxml\jackson\core\jackson-annotations\2.11.4\jackson-annotations-2.11.4.jar;E:\Repository-Maven\com\fasterxml\jackson\core\jackson-core\2.11.4\jackson-core-2.11.4.jar;E:\Repository-Maven\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.4\jackson-datatype-jdk8-2.11.4.jar;E:\Repository-Maven\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.4\jackson-datatype-jsr310-2.11.4.jar;E:\Repository-Maven\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.4\jackson-module-parameter-names-2.11.4.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-starter-tomcat\2.4.11\spring-boot-starter-tomcat-2.4.11.jar;E:\Repository-Maven\org\apache\tomcat\embed\tomcat-embed-core\9.0.53\tomcat-embed-core-9.0.53.jar;E:\Repository-Maven\org\glassfish\jakarta.el\3.0.4\jakarta.el-3.0.4.jar;E:\Repository-Maven\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.53\tomcat-embed-websocket-9.0.53.jar;E:\Repository-Maven\org\springframework\spring-web\5.3.10\spring-web-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-beans\5.3.10\spring-beans-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-webmvc\5.3.10\spring-webmvc-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-aop\5.3.10\spring-aop-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-context\5.3.10\spring-context-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-expression\5.3.10\spring-expression-5.3.10.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-devtools\2.4.11\spring-boot-devtools-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot\2.4.11\spring-boot-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-autoconfigure\2.4.11\spring-boot-autoconfigure-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-configuration-processor\2.4.11\spring-boot-configuration-processor-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-starter-test\2.4.11\spring-boot-starter-test-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-test\2.4.11\spring-boot-test-2.4.11.jar;E:\Repository-Maven\org\springframework\boot\spring-boot-test-autoconfigure\2.4.11\spring-boot-test-autoconfigure-2.4.11.jar;E:\Repository-Maven\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;E:\Repository-Maven\net\minidev\json-smart\2.3.1\json-smart-2.3.1.jar;E:\Repository-Maven\net\minidev\accessors-smart\2.3.1\accessors-smart-2.3.1.jar;E:\Repository-Maven\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;E:\Repository-Maven\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;E:\Repository-Maven\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;E:\Repository-Maven\org\assertj\assertj-core\3.18.1\assertj-core-3.18.1.jar;E:\Repository-Maven\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;E:\Repository-Maven\org\junit\jupiter\junit-jupiter\5.7.2\junit-jupiter-5.7.2.jar;E:\Repository-Maven\org\junit\jupiter\junit-jupiter-api\5.7.2\junit-jupiter-api-5.7.2.jar;E:\Repository-Maven\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;E:\Repository-Maven\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;E:\Repository-Maven\org\junit\platform\junit-platform-commons\1.7.2\junit-platform-commons-1.7.2.jar;E:\Repository-Maven\org\junit\jupiter\junit-jupiter-params\5.7.2\junit-jupiter-params-5.7.2.jar;E:\Repository-Maven\org\junit\jupiter\junit-jupiter-engine\5.7.2\junit-jupiter-engine-5.7.2.jar;E:\Repository-Maven\org\junit\platform\junit-platform-engine\1.7.2\junit-platform-engine-1.7.2.jar;E:\Repository-Maven\org\mockito\mockito-core\3.6.28\mockito-core-3.6.28.jar;E:\Repository-Maven\net\bytebuddy\byte-buddy\1.10.22\byte-buddy-1.10.22.jar;E:\Repository-Maven\net\bytebuddy\byte-buddy-agent\1.10.22\byte-buddy-agent-1.10.22.jar;E:\Repository-Maven\org\objenesis\objenesis\3.1\objenesis-3.1.jar;E:\Repository-Maven\org\mockito\mockito-junit-jupiter\3.6.28\mockito-junit-jupiter-3.6.28.jar;E:\Repository-Maven\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;E:\Repository-Maven\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;E:\Repository-Maven\org\springframework\spring-core\5.3.10\spring-core-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-jcl\5.3.10\spring-jcl-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-test\5.3.10\spring-test-5.3.10.jar;E:\Repository-Maven\org\xmlunit\xmlunit-core\2.7.0\xmlunit-core-2.7.0.jar;E:\Repository-Maven\org\springframework\data\spring-data-redis\2.4.13\spring-data-redis-2.4.13.jar;E:\Repository-Maven\org\springframework\data\spring-data-keyvalue\2.4.13\spring-data-keyvalue-2.4.13.jar;E:\Repository-Maven\org\springframework\data\spring-data-commons\2.4.13\spring-data-commons-2.4.13.jar;E:\Repository-Maven\org\springframework\spring-tx\5.3.10\spring-tx-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-oxm\5.3.10\spring-oxm-5.3.10.jar;E:\Repository-Maven\org\springframework\spring-context-support\5.3.10\spring-context-support-5.3.10.jar;E:\Repository-Maven\io\netty\netty-common\4.1.68.Final\netty-common-4.1.68.Final.jar;E:\Repository-Maven\io\netty\netty-handler\4.1.68.Final\netty-handler-4.1.68.Final.jar;E:\Repository-Maven\io\netty\netty-resolver\4.1.68.Final\netty-resolver-4.1.68.Final.jar;E:\Repository-Maven\io\netty\netty-buffer\4.1.68.Final\netty-buffer-4.1.68.Final.jar;E:\Repository-Maven\io\netty\netty-codec\4.1.68.Final\netty-codec-4.1.68.Final.jar;E:\Repository-Maven\io\netty\netty-transport\4.1.68.Final\netty-transport-4.1.68.Final.jar;E:\Repository-Maven\io\projectreactor\reactor-core\3.4.10\reactor-core-3.4.10.jar;E:\Repository-Maven\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;E:\Repository-Maven\redis\clients\jedis\3.5.2\jedis-3.5.2.jar;E:\Repository-Maven\org\slf4j\slf4j-api\1.7.32\slf4j-api-1.7.32.jar;E:\Repository-Maven\org\apache\commons\commons-pool2\2.9.0\commons-pool2-2.9.0.jar;E:\Repository-Maven\org\projectlombok\lombok\1.18.20\lombok-1.18.20.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 com.company.project.config.RedisConfigurationTest,ping
13:43:24.354 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
13:43:24.377 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
13:43:24.449 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.company.project.config.RedisConfigurationTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
13:43:24.466 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.company.project.config.RedisConfigurationTest], using SpringBootContextLoader
13:43:24.471 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.company.project.config.RedisConfigurationTest]: class path resource [com/company/project/config/RedisConfigurationTest-context.xml] does not exist
13:43:24.472 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.company.project.config.RedisConfigurationTest]: class path resource [com/company/project/config/RedisConfigurationTestContext.groovy] does not exist
13:43:24.472 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.company.project.config.RedisConfigurationTest]: no resource found for suffixes {-context.xml, Context.groovy}.
13:43:24.473 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.company.project.config.RedisConfigurationTest]: RedisConfigurationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
13:43:24.532 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.company.project.config.RedisConfigurationTest]
13:43:24.643 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [F:\U\U20190220\004-CourseCase\Java\SpringBoot\SpringBoot0307Redis\target\classes\com\company\project\Application.class]
13:43:24.644 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.company.project.Application for test class com.company.project.config.RedisConfigurationTest
13:43:24.805 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.company.project.config.RedisConfigurationTest]: using defaults.
13:43:24.806 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
13:43:24.837 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@63376bed, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4145bad8, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@d86a6f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2892d68, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5ab956d7, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3646a422, org.springframework.test.context.transaction.TransactionalTestExecutionListener@750e2b97, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3e27aa33, org.springframework.test.context.event.EventPublishingTestExecutionListener@2e385cce, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@2ddc9a9f, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@298a5e20, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@2a7f1f10, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@46cdf8bd, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@f0c8a99, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@740cae06]
13:43:24.844 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@6e9175d8 testClass = RedisConfigurationTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@7d0b7e3c testClass = RedisConfigurationTest, locations = '{}', classes = '{class com.company.project.Application}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@64cd705f, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6a400542, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@3d74bf60, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@31c88ec8, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@20deea7f, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@4fccd51b], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].
13:43:24.911 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}.   ____          _            __ _ _/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/  ___)| |_)| | | | | || (_| |  ) ) ) )'  |____| .__|_| |_|_| |_\__, | / / / /=========|_|==============|___/=/_/_/_/:: Spring Boot ::               (v2.4.11)2021-10-13 13:43:25.437  INFO 16784 --- [           main] c.c.p.config.RedisConfigurationTest      : Starting RedisConfigurationTest using Java 1.8.0_301 on GOLDENUNION with PID 16784 (started by liuzh in F:\U\U20190220\004-CourseCase\Java\SpringBoot\SpringBoot0307Redis)
2021-10-13 13:43:25.451  INFO 16784 --- [           main] c.c.p.config.RedisConfigurationTest      : No active profile set, falling back to default profiles: default
2021-10-13 13:43:26.311  INFO 16784 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-10-13 13:43:26.315  INFO 16784 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-10-13 13:43:26.590  INFO 16784 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 260 ms. Found 1 Redis repository interfaces.
2021-10-13 13:43:28.414  INFO 16784 --- [           main] c.c.p.config.RedisConfigurationTest      : Started RedisConfigurationTest in 3.492 seconds (JVM running for 5.08)redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.at redis.clients.jedis.Protocol.processError(Protocol.java:132)at redis.clients.jedis.Protocol.process(Protocol.java:166)at redis.clients.jedis.Protocol.read(Protocol.java:220)at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:283)at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:220)at redis.clients.jedis.Connection.getBulkReply(Connection.java:210)at redis.clients.jedis.Jedis.ping(Jedis.java:158)at com.company.project.config.RedisConfigurationTest.ping(RedisConfigurationTest.java:26)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.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)at java.util.ArrayList.forEach(ArrayList.java:1259)at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)at java.util.ArrayList.forEach(ArrayList.java:1259)at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71)at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)Process finished with exit code -1

2、原因分析

MISCONF Redis配置为保存RDB快照,但目前无法在磁盘上持久化。因为权限不足,是在目录Redis根目录D:\Program Files\Redis-x64-3.2.100打开和保存dump.rdb文件。

3、解决方案

1.给予Users用户组在Redis根目录的完全控制权限。

2.在Spring项目中再次运行保存数据到Redis的代码,发现Redis Server界面提示保存成功。

[16000] 13 Oct 13:50:45.061 * 1 changes in 3600 seconds. Saving...
[16000] 13 Oct 13:51:32.324 * Background saving started by pid 5672
[16000] 13 Oct 13:51:32.429 # fork operation complete
[16000] 13 Oct 13:51:32.429 * Background saving terminated with success

3.在Redis根目录中看到已新增了一个RDB快照文件dump.rdb

4、参考资料

https://blog.csdn.net/weixin_41866960/article/details/89608666

Exception: MISCONF Redis is configured to save RDB snapshots...相关推荐

  1. MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

    MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. ...

  2. 解决MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk

    1.起因 使用jeecgboot验证码登陆后台时,一直报验证码错误,看控制台发现是redis报错了,具体如下: Error in execution; nested exception is io.l ...

  3. Redis - MISCONF Redis is configured to save RDB snapshots 报RDB快照错误

    完整的报错信息: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MIS ...

  4. 解决Redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist

    解决Redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on ...

  5. MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.

    一.错误信息 今天运行Redis时发生错误,错误信息如下: (error) MISCONF Redis is configured to save RDB snapshots, but is curr ...

  6. 解决Redis之MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d

    2018-1-31 解决Redis之MISCONF Redis is configured to save RDB snapshots, but is currently not able to pe ...

  7. redis报错解决,MISCONF Redis is configured to save RDB snapshots

    报错记录 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on d ...

  8. MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist

    Redis问题 MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d ...

  9. Redis报错#MISCONF Redis is configured to save RDB snapshots, but is currently not

    错误信息 MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk ...

最新文章

  1. 1分钟、2束光,3D打印出一座“柏林地标”,精度高于发丝 | Nature
  2. Android不使用支持库请求运行时权限
  3. linux运维必学python吗_linux运维一定要学python吗?
  4. linux中权限分离,linux多项目资源分离权限问题
  5. python第二版第六章课后答案_《Python编程》第六章部分课后练习题
  6. 单边指数信号的特点_今日股市分析:上证指数若能守住3400,蓄力反弹就有戏...
  7. Leetcode-3 无重复字符的最长子串【c语言】
  8. 监督学习 | 决策树之Sklearn实现
  9. 解析Node.js v6.9.5官方文档的第一个例子的知识点
  10. cad脚本合适_CAD脚本学习
  11. 中华文明探源工程初步结果----DNA数据 中国人种源头分布一览表
  12. 3D打印机的优势到底在哪
  13. 引言-知识技能树(数据分析相关)
  14. web前端工程师简历
  15. 从泛孪生到小场景,数字孪生如何破“皮”
  16. MySQL8.0.27安装后,使用CMD无法启动mysql服务
  17. svpwm之先把电机转起来
  18. 抖音小店无货源玩法分享(一)开店前准备,核心思路奉上
  19. 华为ma5800兼容 三方 光猫 已测试
  20. SAP QM 创建ROS维护检验工序,系统报错:Work center NMDC_QA plant NMDC does not exist for task list type S

热门文章

  1. 技术培训|青云 QingCloud 资源编排服务预告
  2. Sublime Text总在新窗口打开一个文件夹
  3. python连接wifi_树莓派利用PYTHON脚本自动连接WIFI无线
  4. idea创建spring boot项目初始时pom报错解决
  5. linux系统怎么安装爱奇艺_爱奇艺插件化之Neptune
  6. Oracle Golden Gate - 概念和机制(OGG)
  7. Oracle基础 之 最基础提要
  8. android 辅助功能原理,Android辅助功能原理与基本使用详解-AccessibilityService
  9. 科技和互联网教育带来的好处就是尽可能给学生带去机会,带来公平
  10. 解决Linux服务器Debian9.9执行source命令不生效问题