步骤: 1.开启事务 start transaction 当我们开启一个事务的时候,我们对sql的操作都发生在内存中,但是没有真正的反馈到数据库磁盘的文件中! 2.回滚 rollback 回滚,就是恢复到事务开启之前的最原始的状态! 注意:回滚操作会自动的关闭一个事务,如果想再次执行事务,需要重新开 ...
分类:
数据库 时间:
2017-11-23 11:04:16
阅读次数:
201
最近碰到“TOO DEEP OR LONG SEARCH IN THE LOCK TABLE WAITS-FOR GRAPH, WE WILL ROLL BACK FOLLOWING TRANSACTION”。 重新温习下受益良多,其中死锁的判定规则,其实我们早在5年前解决秒杀场景的第一个版本就已经 ...
分类:
数据库 时间:
2017-11-21 20:53:33
阅读次数:
241
上个版本的chaincode有很多功能不完备,所以要部署新版本的chaincode。Fabric支持在保留现有状态的前提对chaincode进行升级。 一.新版chaincode 新版本的chaincode增加的功能如下: 1.增加了数据追溯功能,在社区用户发起transaction时,chainc ...
分类:
其他好文 时间:
2017-11-21 18:50:28
阅读次数:
128
ACID,指数据库事务正确执行的四个基本要素的缩写。包含:原子性(Atomicity)、一致性(Consistency)、隔离性(Isolation)、持久性(Durability)。一个支持事务(Transaction)的数据库,否则在事务过程当中无法保证数据的正确性,交易过程极可能达不到交易方的 ...
分类:
其他好文 时间:
2017-11-20 17:39:57
阅读次数:
121
1、Errors(错误统计) 每秒错误数:数值越小越好,通过这个图可以知道,当负载增加的时候,定位何时系统在负载下开始不稳定甚至出错。 2、Transaction(事务) average transaction response time(评价事务响应时间) 时间越短越好,可以和负载图合并查看 tr ...
分类:
其他好文 时间:
2017-11-20 15:09:34
阅读次数:
127
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction ...
分类:
其他好文 时间:
2017-11-20 14:30:55
阅读次数:
124
错误出现场景: hibernate+struts2整合时,hibernate+struts2+spring(SSH)框架整合时出现 解决方案:在我们使用hibernate框架与其他框架进行整合时,会遇到“不能在没有活动的事务中执行(org.hibernate.HibernateException: ...
分类:
数据库 时间:
2017-11-20 13:06:52
阅读次数:
163
在Fedora20上使用 yum install vim 命令安装vim时,提示软件包冲突,现象如下: Transaction check error: file /usr/share/man/man1/vim.1.gz from install of vim-common-2:7.4.475-2. ...
分类:
系统相关 时间:
2017-11-19 23:47:03
阅读次数:
413
1.修改jboss-6.simple\server\default\deploy\transaction-jboss-beans.xml 配置文件 <bean name="CoreEnvironmentBean" class="com.arjuna.ats.arjuna.common.CoreEnv ...
分类:
其他好文 时间:
2017-11-16 17:24:46
阅读次数:
126
编辑 删除 如果在JBoss中同时使用俩个数据源就会发生如下异常: 编辑 删除 Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fe8b:f52:4cd284ca:9b status: ActionStat ...
分类:
其他好文 时间:
2017-11-16 17:13:36
阅读次数:
147