草庐IT

transaction

全部标签

单元测试 报 Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions

 单元测试:org.springframework.transaction.CannotCreateTransactionException:CouldnotopenJDBCConnectionfortransaction;nestedexceptioniscom.mysql.jdbc.exceptions.jdbc4.CommunicationsException:CommunicationslinkfailureThelastpacketsentsuccessfullytotheserverwas0millisecondsago.Thedriverhasnotreceivedanypack

eclipse - 如何解决 SVN 错误 "E200030: There are unfinished transactions detected in ' <CHECKOUT_DIRECTORY >'"?

我已经安装了一个带有Windows10、EclipseMars、Subversive插件、SVNKit1.8.11的虚拟盒子,并尝试在我已经在其他几个环境中成功完成的配置中设置一些存储库。SVN服务器是Debian7系统,Subversion1.6.17。仅在我设置上述系统后才出现以下问题:退房:e。G。SVN-Repositories->展开RepositoryX->右键单击​​trunk->check-out->Erroroccurs:"Checkoutoperationfor'svn://host/X/trunk'failed.svn:E200030:Thereareunfini

解决docker安装过程报错——Transaction check error: file /usr/bin/docker from install of docker-ce-cli-1:23.0

 在安装docker中报出如下错误(则说明此虚拟机之间安装过docker且没卸载干净),则按照如下操作即可重新安装好docker:Transactioncheckerror:file/usr/bin/dockerfrominstallofdocker-ce-cli-1:23.0.4-1.el7.x86_64conflictswithfilefrompackagedocker-common-2:1.13.1-209.git7d71120.el7.centos.x86_64file/usr/bin/dockerdfrominstallofdocker-ce-3:23.0.4-1.el7.x86_6

transactions - 集群模式下spring data redis是否支持事务(multi,exec)?

我已经在单个REDIS实例中成功地使用multi和exec功能在Redis中实现(并测试)了事务操作。但是,在集群设置中运行的相同代码会出错并显示以下异常消息。我正在使用spring-data-redis-1.8.1.RELEASE和jedis-2.9.0。Exceptioninthread"main"org.springframework.dao.InvalidDataAccessApiUsageException:MUTLIiscurrentlynotsupportedinclustermode.atorg.springframework.data.redis.connection

redis - 为什么 StackExchange.Redis 在 transaction.ExecuteAsync() 中频繁抛出 "Unexpected response to EXEC: MultiBulk: 0"异常?

我尝试通过代码进行调试,它似乎主要在多个客户端试图修改事务中的同一个key时重现。重试事务通常可以消除错误,但是首先抛出异常有什么原因吗?我要执行的代码非常简单:varexistingValue=db.HashGetAsync(hashKey,field);vart=db.CreateTransaction();t.AddCondition(Condition.HashEqual(hashKey,field,existingValue));t.HashSetAsync(hashKey,field,newValue,flags:CommandFlags.FireAndForget);bo

transactions - Redis原子事务通过交集搜索并使用返回的数据进行更新

Redis专家,我想通过某种类型的资源搜索空闲数据,然后将其标记为非空闲,所有这些都在一个命令中(原子)。我正在使用Redis来记录不同类型的事件资源。我应该如何解决我的这个问题,我需要通过查询一些字段值来获取哈希数据,我已经创建了自己的集合并使用sinter然后更新它以将其标记为正在使用。这是引用如何使用sethttp://robots.thoughtbot.com/redis-set-intersection-using-sets-to-filter-data在redis中进行过滤假设我想找到一个类型为X且属性为A的空闲资源的ID,我通过在type集和attributeA上使用in

php - 预测 : Passing value to anonymous transaction function

我正在使用Predis进行交易,但我不知道如何将我自己的变量传递到匿名交易函数中。$options=array();$x=13;$transaction=$predis->multiExec($options,function($transaction){//ineed$xhere});我试图将它添加到选项数组,但它在匿名函数中受到保护。我该怎么做? 最佳答案 我找到了解决方案。PHP支持使用use关键字将变量导入闭包。所以这是可行的:$options=array();$x=13;$transaction=$predis->mult

mongodb - 文档DB和模拟ACID

见最后的结果我想使用文档数据库(出于各种原因)-可能是couchdb或mongodb。但是,我还需要acid处理多个文档事务。但是,我确实计划使用“仅添加”模型-更改将作为新文档添加(添加是添加,更新是添加副本+转换数据,删除是添加具有相同ID+删除标志的空文档)。我将定期对数据库运行压缩以删除非当前文档。有鉴于此,以下观点是否存在漏洞:维护当前正在进行的事务的集合。此集合将保存具有正在进行的事务的事务ID(guid+时间戳)的文档。Atomicity:Onatransaction:Addadocumenttothetransactionsinprogresscollection.Ad

transactions - 使用 MongoDB 进行两阶段提交

这就是我的想法。当使用像MongoDB这样的每个操作都是原子的并且不支持除此之外的事务时,您是否看到此解决方法有任何问题来模拟2阶段提交?transaction_scope:readmessagefromservicebus-UpdateCustomerAddressgetcustomeraggregatefromdocdb,replayeventswherecommited=1callcustomer.updateAddressvalidatescreatescustomeraddressupdatedeventapplyeventeventstoreasuncommittedeve

MongoDB 索引

我们有一个包含近4000万条记录的MongoDB集合。该集合的当前大小为5GB。此集合中存储的数据包含以下字段:_id:"MongoDBid"userid:"userid"(int)mobile:"usersmobilenumber"(int)transaction:"transactionid"(int)sms:"messagesenttousermobile"(text)created_dt:"unixtimestampofthetransaction"除了_id上的索引(默认创建)之外,我们还在移动和交易字段上定义了单独的索引。但是,以下查询需要60到120秒才能完成:{mobi