[fix](meta) add sync new image timeout#25768
Conversation
Add timeout config for sync
|
Have you try it? can it really solve the timeout issue? |
| "adjust by the size of image file in the ${meta_dir}/image and the network environment between nodes. " + | ||
| "The default values is 3000 ms." | ||
| }) | ||
| public static int sync_new_image_timeout = 30000; |
There was a problem hiding this comment.
| public static int sync_new_image_timeout = 30000; | |
| public static int sync_new_image_timeout_s = 300; |
| String filename = Storage.IMAGE + "." + version; | ||
| File dir = new File(this.imageDir); | ||
| MetaHelper.getRemoteFile(url, HTTP_TIMEOUT_SECOND * 1000, MetaHelper.getFile(filename, dir)); | ||
| MetaHelper.getRemoteFile(url, Config.sync_new_image_timeout, MetaHelper.getFile(filename, dir)); |
There was a problem hiding this comment.
| MetaHelper.getRemoteFile(url, Config.sync_new_image_timeout, MetaHelper.getFile(filename, dir)); | |
| MetaHelper.getRemoteFile(url, Config.sync_new_image_timeout_s * 1000, MetaHelper.getFile(filename, dir)); |
Add timeout config for sync
We found this bug by adding new follower to our doris cluster. By tracing this bug, we found the sync image timeout is only 5s and no way to modify it. After fixing and deploying to our cluster, it fix the problem. Here are the success log
refer to issue #25764 |
Add timeout config for sync
Add timeout config for sync
| + "adjust by the size of image file in the ${meta_dir}/image and the network environment between nodes. " | ||
| + "The default values is 300s." | ||
| }) | ||
| public static int sync_new_image_timeout_s = 300; |
There was a problem hiding this comment.
sync_image_timeout_second is a better name.
|
run buildall |
Please review again, chore code for checkstyle |
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
The image file of our cluster reaches 2.3G. After the checkpoint, Followers synchronize the image timeout, resulting in the continuous increase of the bdb directory. related pr: #25768
Add timeout config for sync
…#26003) The image file of our cluster reaches 2.3G. After the checkpoint, Followers synchronize the image timeout, resulting in the continuous increase of the bdb directory. related pr: apache#25768
Add timeout config for sync
Add timeout config for sync
Add timeout config for sync
Add timeout config for sync
…#26003) The image file of our cluster reaches 2.3G. After the checkpoint, Followers synchronize the image timeout, resulting in the continuous increase of the bdb directory. related pr: apache#25768

Add timeout config for sync
Proposed changes
Issue Number: close #25764
Add sync_new_image_timeout config, for adjusting synchronize image timeout from master
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...