digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

摘要: 一致性读,又称为快照读。使用的是MVCC机制读取undo中的已经提交的数据。所以它的读取是非阻塞的。相关文档:http://dev.mysql.com/doc/refman/5.6/en/innodb-consistent-read.htmlA consistent read means that ... 阅读全文
posted @ 2015-11-08 17:38 digdeep 阅读(20831) 评论(5) 推荐(10) 编辑

摘要: MySQL5.5 中引入了 metadata lock. 顾名思义,metadata lock 不是为了保护表中的数据的,而是保护 database objects(元数据)的。包括表结构、schema、存储过程、函数、触发器、mysql的调度事件(events). 要理解 metadata loc... 阅读全文
posted @ 2015-10-19 00:27 digdeep 阅读(3245) 评论(1) 推荐(4) 编辑

摘要: XSS 防御方法总结 阅读全文
posted @ 2015-08-03 11:25 digdeep 阅读(88058) 评论(6) 推荐(7) 编辑

摘要: Spring, MyBatis 多数据源的配置和管理 阅读全文
posted @ 2015-05-18 17:06 digdeep 阅读(122057) 评论(32) 推荐(14) 编辑

摘要: ThreadLocal 源码剖析 阅读全文
posted @ 2015-05-17 23:39 digdeep 阅读(5404) 评论(2) 推荐(2) 编辑

摘要: Java多线程中的死锁问题 阅读全文
posted @ 2015-04-22 17:34 digdeep 阅读(12836) 评论(7) 推荐(3) 编辑

摘要: Java并发基础框架AbstractQueuedSynchronizer初探 ReentrantLock的实现分析 阅读全文
posted @ 2015-04-21 23:37 digdeep 阅读(744) 评论(0) 推荐(0) 编辑

摘要: PriorityQueue和Queue的一种变体的实现 LinkedBlockingQueue PriorityBlockingQueue 阅读全文
posted @ 2015-04-18 22:19 digdeep 阅读(1449) 评论(0) 推荐(0) 编辑

摘要: HttpSession 线程安全问题 阅读全文
posted @ 2015-04-15 16:59 digdeep 阅读(10990) 评论(4) 推荐(2) 编辑

摘要: Java原子变量和原子引用与volatile 阅读全文
posted @ 2015-04-06 11:26 digdeep 阅读(5839) 评论(0) 推荐(0) 编辑

摘要: 使用Java实现单线程模式 阅读全文
posted @ 2015-03-28 15:29 digdeep 阅读(16167) 评论(0) 推荐(1) 编辑

摘要: 从08年毕业工作开始写博客,这些年前前后后在不少网站留下过痕迹。由于各种原因,从这里搬到那里,又从那里搬到这里,折腾来折腾去,无非是想找到个既舒服,有方便,而且灵活,又有人气的地方。现在又来到了博客园,希望是我的最后一次搬家^_^我使用过和还在使用的博客地址:0) itpub: http://blo... 阅读全文
posted @ 2014-12-09 20:46 digdeep 阅读(590) 评论(0) 推荐(0) 编辑

2024年4月21日

摘要: 内存不足,导致Java 进程被杀掉。 [ 1534.300650] Kernel panic - not syncing: Out of memory: system-wide panic_on_oom is enabled[ 1534.301803] CPU: 5 PID: 2930 Comm: 阅读全文
posted @ 2024-04-21 18:50 digdeep 阅读(3) 评论(0) 推荐(0) 编辑

2024年3月21日

摘要: mysql -uroot -p 连接MySQL8.0时报错: ERROR 2059 (HY000): Plugin caching_sha2_password could not be loaded 原因是,MySQL 8.0默认用的密码加密插件是 caching_sha2_password ,原来 阅读全文
posted @ 2024-03-21 22:32 digdeep 阅读(6) 评论(0) 推荐(0) 编辑

2023年12月12日

摘要: 使用 gh-ost 对表在线加索引时,第一次发生了下面的报错(使用gh-ost很长时间了,第一次遇到这个报错): [2023/12/12 11:48:08] [error] binlogstreamer.go:77 close sync with err: ERROR 1236 (HY000): A 阅读全文
posted @ 2023-12-12 11:59 digdeep 阅读(44) 评论(0) 推荐(0) 编辑

2023年10月10日

摘要: 来源: https://plantegg.github.io/2020/07/03/MySQL%20JDBC%20StreamResult%20%E5%92%8C%20net_write_timeout/ MySQL JDBC StreamResult 和 net_write_timeout MyS 阅读全文
posted @ 2023-10-10 10:09 digdeep 阅读(189) 评论(0) 推荐(0) 编辑

摘要: 来源:https://zhuanlan.zhihu.com/p/191395766 问题描述 在 JavaScript 中整数和浮点数都属于 Number 数据类型,所有数字都是以 64 位浮点数形式储存,即便整数也是如此。 所以我们在打印 1.00 这样的浮点数的结果是 1 而非 1.00 。在一 阅读全文
posted @ 2023-10-10 10:06 digdeep 阅读(150) 评论(0) 推荐(0) 编辑

2022年9月5日

摘要: mysql从库复制报错: Last_IO_Errno: 1236Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'event read from binlog did not pas 阅读全文
posted @ 2022-09-05 11:19 digdeep 阅读(286) 评论(0) 推荐(0) 编辑

2022年6月20日

摘要: 因为安全问题,把tomcat升级到8.5系列的最新版,发现静态资源文件出现400错误。 问题重现: curl -voa "https://xxxxx/images/notice.png" --resolve xxxxxx:443:xxxxxx -H 'If-None-Match: "16368598 阅读全文
posted @ 2022-06-20 17:12 digdeep 阅读(707) 评论(0) 推荐(0) 编辑

2022年4月9日

摘要: 转自:https://www.jianshu.com/p/c8b9852dcef9 实验场景 GreatSQL 8.0.25 InnoDB 1.备份单表, test.t_user /usr/bin/xtrabackup -uroot -p'GreatSQL' -S /data/GreatSQL/my 阅读全文
posted @ 2022-04-09 15:38 digdeep 阅读(81) 评论(0) 推荐(0) 编辑

2022年3月26日

摘要: 问题:通过浏览器输入https://www.xxx.com,request.getScheme()获取到的确实http而不是https,通过request.getRequestURL()拿到的也是http://www.xxx.com 分析原因:是因为用nginx+tomcat部署web服务,tomc 阅读全文
posted @ 2022-03-26 22:26 digdeep 阅读(1698) 评论(0) 推荐(0) 编辑

2021年9月12日

摘要: 现象: 导入一个insert 语句sql文件到数据库中时,老是报错:“Error Code: 1205 - Lock wait timeout exceeded; try restarting transaction”。 我们使用 innodb_trx innodb_lock_waits innod 阅读全文
posted @ 2021-09-12 16:31 digdeep 阅读(1270) 评论(0) 推荐(0) 编辑

不懂数据库和Web安全的架构师不是一个好的程序员。