rediscommandexecutionexception:由于以前的错误而丢弃ExecutAbort事务(错误)

k7fdbhmy  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(320)

将数据写入redis(在aws示例中运行的redislab)时出现上述错误。我使用springdataredis和莴苣5.x连接到集群。在spring boot应用程序中
stacktrace:`“transactionsynchronization.aftercompletion抛出异常”,“lgr”:“org.springframework.transaction.support.transactionsynchronizationutils”,“trd”:“grpc-default-executor-40”,“lvl”:“error”,“stacktrace”:“org.springframework.data.redis.redisystemexception:执行错误;嵌套异常为io.莴苣.core.rediscommandexecutionexception:由于以前的错误,ExecutAbort事务被丢弃。\n\t org.springframework.data.redis.connection.莴苣.lettuceexceptionconverter.convert(lettuceexceptionconverter)。java:54)\否\torg.springframework.data.redis.connection.莴苣.lettuceexceptionconverter.convert(lettuceexceptionconverter。java:52)\n\t org.springframework.data.redis.connection.莴苣.lettuceexceptionconverter.convert(lettuceexceptionconverter。java:41)\否\torg.springframework.data.redis.passthroughceptiontranslationstrategy.translate(passthroughceptiontranslationstrategy。java:44)\n\t org.springframework.data.redis.fallbackexceptiontranslationstrategy.translate(fallbackexceptiontranslationstrategy。java:42)\否\torg.springframework.data.redis.connection.莴苣.lettuceconnection.convertlettuceaccessexception(lettuceconnection。java:268)\n\t org.springframework.data.redis.connection.莴苣.lettuceconnection.exec(lettuceconnection。java:653)\否\tio.opentracing.contrib.redis.spring.data2.connection.tracingredisconnection.lambda$exec$151(tracingredisconnection。java:983)\n\t io.opentracing.contrib.redis.common.tracinghelper.activateandclosespan(tracinghelper。java:314)\n\t io.opentracing.contrib.redis.common.tracinghelper.doinscope(tracinghelper。java:293)\否\tio.opentracing.contrib.redis.spring.data2.connection.tracingredisconnection.exec(tracingredisconnection。java:983)\n\tat jdk.internal.reflect.generatedmethodaccessor498.invoke(未知源)\n\tat java.base/jdk.internal.reflect.delegatingmethodaccessorimpl.invoke(未知源)\n\tat java.base/java.lang.reflect.method.invoke(未知源)\n\tatorg.springframework.data.redis.core.redisconnectionutils$connectionsplitinginterceptor.invoke(redisconnectionutils。java:351)\n\t org.springframework.data.redis.core.redisconnectionutils$connectionsplitinginterceptor.intercept(redisconnectionutils)。java:329)\否\torg.springframework.data.redis.core.redisconnectionutils$connectionsplitinginterceptor.invoke(redisconnectionutils。java:359)\n\t org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation)。java:186)\n\t org.springframework.aop.framework.jdkdynamicaopproxy.invoke(jdkdynamicaopproxy。java:212)\否\tcom.sun.proxy.$proxy280.exec(未知源)\n\t org.springframework.data.redis.core.redisconnectionutils$redistransactionsynchronizer.aftercompletion(redisconnectionutils)。java:284)\n\tat org.springframework.transaction.support.transactionsynchronizationutils.invokeaftercompletion(transactionsynchronizationutils)。java:171)\否\torg.springframework.transaction.support.abstractplatformtransactionmanager.invokeaftercompletion(abstractplatformtransactionmanager)。java:992)\n\t org.springframework.transaction.support.abstractplatformtransactionmanager.triggeraftercompletion(abstractplatformtransactionmanager)。java:967)\否\torg.springframework.transaction.support.abstractplatformtransactionmanager.processcommit(abstractplatformtransactionmanager)。java:788)\n\t org.springframework.transaction.support.abstractplatformtransactionmanager.commit(abstractplatformtransactionmanager)。java:714)\否\torg.springframework.transaction.interceptor.transactionspectsupport.committransactionafterreturning(transactionspectsupport。java:534)\n\t org.springframework.transaction.interceptor.transactionspectsupport.invokewithintransaction(transactionspectsupport)。java:305)\否\torg.springframework.transaction.interceptor.transactioninterceptor.invoke(transactioninterceptor。java:98)\n\t org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation)。java:186)\否\torg.springframework.security.access.intercept.aopalliance.methodsecurityinterceptor.invoke(methodsecurityinterceptor。java:69)\n\t org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation)。java:186)\否\torg.springframework.aop.framework.cglibaopproxy$dynamicadvisedinterceptor.intercept(cglibaopproxy。java:688)\n\tat com.techapp.gateway.organizationgrpcservice$$enhancerbyspringcglib$$261d1da9.updateorganization()\n\tat com.techapp.organization.v2.organizationservicegrpc$methodhandlers.invoke(organizationservicegrpc)。java:1280)\否\tio.grpc.stub.servercalls$unaryservercallhandler$unaryservercalllistener.onhalfclose(服务器调用)。java:171)\n\t io.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener)。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\否\tio.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\n\t com.techapp.commons.interceptor.jpasystemexceptioninterceptor$1.onhalfclose(jpasystemexceptioninterceptor)。java:33)\否\tio.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\n\tat io.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\否\tcom.techapp.commons.interceptors.security.techappservercalllistener.onhalfclose(techappservercalllistener)。java:48)\n\t io.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener)。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\否\tio.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\n\t位于com.techapp.commons.interceptors.security.organizationContextManagementInterceptor$organizationServerCallListener.onhalfclose(organizationContextManagementInterceptor)。java:208)\否\tio.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\n\tat io.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\否\tcom.techapp.commons.interceptors.security.headercontextmanagementservercalllistener.onhalfclose(headercontextmanagementservercalllistener)。java:36)\n\t io.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener)。java:35)\否\tio.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\n\tat io.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\否\tnet.devh.boot.grpc.server.security.interceptors.abstractAuthenticationServerCallListener.onhalfclose(abstractAuthenticationServerCallListener)。java:103)\n\tat net.devh.boot.grpc.server.security.interceptors.DefaultAuthenticationServerInterceptor$AuthenticationServerCallListener.onhalfclose(DefaultAuthenticationServerInterceptor)。java:154)\否\tio.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\n\tat io.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\否\tcom.techapp.commons.interceptor.exceptiontranslationinterceptor$1.onhalfclose(exceptiontranslationinterceptor。java:76)\n\t io.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener)。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\否\tio.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\n\tat net.devh.boot.grpc.server.security.interceptors.exceptiontranslatingserverinterceptor$exceptiontranslatorservercalllistener.onhalfclose(exceptiontranslatingserverinterceptor)。java:120)\否\tio.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\n\tat io.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\否\tio.grpc.partialforwardingservercalllistener.onhalfclose(partialforwardingservercalllistener。java:35)\n\t io.grpc.forwardingservercalllistener.onhalfclose(forwardingservercalllistener。java:23)\n\tat io.grpc.forwardingservercalllistener$simpleforwardingservercalllistener.onhalfclose(forwardingservercalllistener)。java:40)\否\tio.grpc.contexts$contextualizedservercalllistener.onhalfclose(上下文。java:86)\n\tat datadog.trace.instrumentation.grpc.server.tracingserverinterceptor$tracingservercalllistener.onhalfclose(tracingserverinterceptor)。java:165)\n\t io.grpc.internal.servercallimpl$serverstreamlistenerimpl.half closed(servercallimpl。java:331)\否\tio.grpc.internal.serverimpl$跳转到应用程序readserverstreamlistener$1半关闭。runincontext(serverimpl。java:808)\n\tat io.grpc.internal.contextrunnable.run(contextrunnable。java:37)\n\tat io.grpc.internal.serializingexecutor.run(serializingexecutor。java:123)\n\t java.base/java.util.concurrent.threadpoolexecutor.runworker(未知)source)\n\tat java.base/java.util.concurrent.threadpoolexecutor$worker.run(未知源)\n\tat java.base/java.lang.thread.run(未知源)\n原因:io.莴苣.core.rediscommandexecutionexception:execabort由于以前的错误而丢弃事务。\n\tatio.莴苣.core.exceptionfactory.createexecutionexception(exceptionfactory。java:135)\n\tat io.莴苣.core.exceptionfactory.cr

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题