-
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-33116 Suppress file check if invalid @compressedSize(0) #19354
HPCC-33116 Suppress file check if invalid @compressedSize(0) #19354
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-33116 Jirabot Action Result: |
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 a few picky comments. None are actually bugs.
dali/base/dadfs.cpp
Outdated
@@ -13807,6 +13807,39 @@ void configurePreferredPlanes() | |||
} | |||
} | |||
|
|||
static bool doesPhysicalMatchMeta(IPropertyTree &partProps, IFile &iFile, offset_t &expectedSize, offset_t &actualSize) |
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.
trivial: expectedSize should not be a reference for this function.
unsigned __int64 size = partProps.getPropInt64("@size", (unsigned __int64)-1); | ||
unsigned __int64 compressedSize = partProps.getPropInt64("@compressedSize", (unsigned __int64)-1); | ||
if ((0 == size) && (0 == compressedSize)) | ||
return true; |
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.
actualSize should be set to 0 (or unknownFileSize)
dali/base/dadfs.cpp
Outdated
{ | ||
// NB: temporary workaround for 'narrow' files publishing extra empty parts with the wrong @compressedSize(0) | ||
// causing a new check introduced in HPCC-33064 to be hit (fixed in HPCC-33113, but will continue to affect exiting files) | ||
unsigned __int64 size = partProps.getPropInt64("@size", (unsigned __int64)-1); |
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.
Picky: could use unknownFileSize
@ghalliday - please see 2nd commit. |
b1ed56c
to
5232a27
Compare
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.
Please squash
Signed-off-by: Jake Smith <[email protected]>
5232a27
to
b91afa5
Compare
@ghalliday - squashed. |
6b80b53
into
hpcc-systems:candidate-9.6.x
Jirabot Action Result: |
Type of change:
Checklist:
Smoketest:
Testing: