fix: unnecessary YAML Config reloads#9065
Conversation
|
Test cases is needed, you could follow this: https://github.com/apache/apisix/blob/master/t/config-center-yaml/plugin.t |
|
Hey @monkeyDluffy6017, On a related not after reading https://apenwarr.ca/log/20181113 I'm thinking that we should add |
|
hi @boekkooi-lengoo, try to follow the following test cases: |
|
ping @boekkooi-lengoo |
f8e1377 to
a04cf84
Compare
Show how a reload is triggered when it's not needed.
In order to avoid unnecessary reloading of the yaml configuration. The time used to detect the last change to the config file is changed from `change` which is the time of the last file status change to the `modification` time wich is the time of the last data modification. For more information also checkou http://lunarmodules.github.io/luafilesystem/manual.html#reference and https://linux.die.net/man/2/stat Fixes: apache#9051
a04cf84 to
c3c014b
Compare
|
please merge the master |
|
@monkeyDluffy6017 Created merge commit 684c78d as requested |
Description
In order to avoid unnecessary reloading of the yaml configuration. The time used to detect the last change to the config file is changed from
changewhich is the time of the last file status change to themodificationtime wich is the time of the last data modification.For more information also checkout http://lunarmodules.github.io/luafilesystem/manual.html#reference and https://linux.die.net/man/2/stat
Fixes: #9051
Checklist