-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-31559 Add option to avoid renames (spray and thor for now) #18485
HPCC-31559 Add option to avoid renames (spray and thor for now) #18485
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-31559 Jirabot Action Result: |
59c3aae
to
1b76e7e
Compare
1b76e7e
to
33b94a3
Compare
@ghalliday @mckellyln - please review. NB: I haven't been able to properly test the spray side on k8s (local machine problems)., but believe it's correct |
{ | ||
if (-1 == avoidRename) | ||
{ | ||
CriticalBlock b(avoidRenameCS); |
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.
very minor, could check atomic value again after getting lock.
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.
Looks ok to me.
But I don't know the details and implications elsewhere of going down this direct file write path.
One minor comment.
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.
Approved.
Good to squash.
Introduce an option expert/avoidRename that components can use to avoid writing to a temp file, and renaming, and instead write directly to the target filename. This is an experiment in relation to HPCC-31427. Signed-off-by: Jake Smith <[email protected]>
9ab0653
to
6f7f709
Compare
I have now tested spraying with the option on in k8s. |
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.
@jakesmith how about thindexwriteslave.cpp(~214)?
createWriteMultiple (called on 215) is where the option is used and the flags are manipulated, so this case is covered as well. |
72701f1
into
hpcc-systems:candidate-9.4.x
Introduce an option expert/avoidRename that components can use to avoid writing to a temp file, and renaming, and instead write directly to the target filename.
This is an experiment in relation to HPCC-31427.
Type of change:
Checklist:
Smoketest:
Testing: