-
Notifications
You must be signed in to change notification settings - Fork 6
[HWORKS-2117] Make rondb-helm works for RonDB 24.10 #46
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,32 @@ do | |
ln -s ${RONDB_VOLUME}/${dir} ${BASE_DIR}/${dir} | ||
done | ||
|
||
LOG_DIR="${BASE_DIR}/log/" | ||
echo "[K8s Entrypoint ndbmtd] check log dir: ${LOG_DIR}" | ||
if [ -d "$LOG_DIR" ]; then | ||
ls -al "$LOG_DIR" | ||
|
||
# Double-checked config.ini: | ||
# DataDir = ${BASE_DIR}/log | ||
# So ndb_* will move the generated error and trace log files from this directory. | ||
# | ||
# CAUTION: | ||
# If additional files are configured to be stored in this directory in the future, | ||
# be careful with this move operation — it may affect unrelated files. | ||
files=($(find "$LOG_DIR" -maxdepth 1 -type f -name 'ndb_*')) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a common suffix we can filter tracefiles? I'm thinking of your comment in case we/somebody adds more files under log directory. If not, then that's good enough There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here are the log file names I got from the test env: They don’t have a common suffix.. maybe ndb_*log* There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I think filter just the logs is safer, in case something else accidentally ends in this directory There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HWORKS-2117] Make rondb-helm work with RonDB 24.10 [PATCH 3] Update regex from |
||
|
||
if [ "${#files[@]}" -gt 0 ]; then | ||
timestamp=$(date +%Y%m%d_%H%M%S) | ||
target_dir="$LOG_DIR/issue_at_$timestamp" | ||
mkdir -p "$target_dir" | ||
|
||
echo "[K8s Entrypoint ndbmtd] $target_dir generated in ${LOG_DIR}" | ||
for file in "${files[@]}"; do | ||
mv "$file" "$target_dir/" | ||
done | ||
fi | ||
fi | ||
|
||
INITIAL_START= | ||
# This is the first file that is read by the ndbmtd | ||
# WARNING: This env var needs to be aware of symlinks created here | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A general comment, are we planning to create a branch for rondb-helm to be based on 22.10 since i assume we might need to do some fixes in the future for 4.2 which uses the rondb-helm chart 0.6.5 . If so, i think we should adapt the version of the rondb-helm chart to reflect that as well @kouzant @KernelMaker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discussed with Antonios last week, and the conclusion was that there will be a standalone branch for 22.10 in the future. The default branch will serve as the main development branch for 24.10 going forward.
We haven’t finalized when or where exactly to create the new branch for 22.10 yet, but I assume it should start from the last commit before this patch is merged? @kouzant @maismail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah exactly. As @KernelMaker said we'll create the 0.6 branch. We waited until Serverless migration in case we had to do some changes so we don't need to backport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, make sense, thanks!