-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
特性增强增加物理连接关键操作信息#5407 #5408
Merged
Merged
特性增强增加物理连接关键操作信息#5407 #5408
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ValidConnectionChecker子类生成toString方法,方便输出日志的时候,把成员变量输出,用于快速定位问题
mvn validate 提示少了个空格
增加getDataSourceId方便获取信息,输出日志的时候用得到,不必做类型转换
增加日志,方便分析数据源初始化之后的validConnectionChecker信息,每个数据源初始化只打一次,所以使用info级别
重命名connectedTime变量名,错开getConnectedTime的返回类型,以满足javabean规范
增加辅助信息记录用于分析物理连接的创建和关闭
记录创建连接时所触发的调用方法来源
增加方法用于记录物理连接被关闭时的触发方法
记录最近一次归还连接的时间,方便分析问题
切换关闭连接的调用方法,辅助定位问题用
创建和关闭物理连时记录触发的方法,记录最近执行连接校验的时间,优化JDBC4ValidConnectionChecker执行失败后的出错描述,与抛异常区分开
记录创建和关闭物理连接的触发方法,记录连接被借出的使用次数和最近时间
修复mvn validate 错误
把触发物理连接关闭的时间戳也记录下来
优化关闭物理连接时候触发方法的信息,便于更精准分析连接被关闭的原因
还原代码,使用新思路来增强
还原代码,想到新思路来解决
还原代码,想到新思路解决
还原代码,想到新思路解决
还原代码,只增加记录连接执行最近一次valiate的时间戳
没有validatechecker的时候执行validatequery也更新最近校验时间戳
还原代码,使用新思路解决
还原代码,使用新思路解决
lastRunValidateTimeMillis调整为lastValidateTimeMillis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
特性增强增加物理连接关键操作信息 #5407