Sentinel
Sentinel copied to clipboard
修复使用FileRefreshableDataSource作为规则数据源时,初始化空规则文件会导致StringIndexOutOfBoun…
…dsException异常
Describe what this PR does / why we need it
在使用FileRefreshableDataSource作为规则数据源时,发现如果初始化空规则文件会导致StringIndexOutOfBoundsException异常
Does this pull request fix one issue?
Describe how you did it
判断规则文件是否有数据
Describe how to verify it
加载空的规则文件看是否有异常打印
Special notes for reviews
Please switch the base branch to 1.8
1.8与master之间有较大的差异,当前的主分支是1.8,建议基于1.8修复该问题后提交新的PR,这个PR我就暂时关闭了