-
Notifications
You must be signed in to change notification settings - Fork 301
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-31410 DFU superfile copy test #18382
base: candidate-9.8.x
Are you sure you want to change the base?
Conversation
https://track.hpccsystems.com/browse/HPCC-31410 |
testing/regress/ecl/dfucopy.ecl
Outdated
|
||
d1 := DISTRIBUTE(NORMALIZE(v1, 1000, addCount(LEFT, COUNTER)), HASH32(id)); | ||
d2 := DISTRIBUTE(NORMALIZE(v2, 1000, addCount(LEFT, COUNTER)), HASH32(id)); | ||
d3 := DISTRIBUTE(NORMALIZE(v3, 1000, addCount(LEFT, COUNTER)), HASH32(id)); |
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.
let's simply the test, it doesn't need JOIN's and DISTRIBUTE's (which are well tested elsewhere) in it afaics, to test copy copying a superfile ?
You can use ", DISTRIBUTED" on the inline datasets to ensure they are spread over parts.
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.
@shamser - see comment re. simplifying the test so only/specifically testing a file copy.
Also the JIRA and commit message, don't make it clear this is to adding a test specifically to test super file copies.
testing/regress/ecl/dfucopy.ecl
Outdated
FileServices.AddSuperFile(prefix + 'superdata',prefix + 'subdata2'), | ||
FileServices.AddSuperFile(prefix + 'superdata',prefix + 'subdata3'), | ||
FileServices.FinishSuperFileTransaction(), | ||
FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup:= 'mythor', destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := 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.
trivial: missing space after 'destinationGroup'
Not a high priority, but just noticed this seems to have stalled. |
f74a525
to
7227950
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.
@shamser - there are some pre-existing copy tests in filecompcopy, but those are specifically for testing copying compressed logical files.
This test is specifically for testing copying a superfile?
If so, I think it would be better to rename to dfusupercopy.ecl for clarity.
Also, can you add a description to the JIRA.
testing/regress/ecl/dfucopy.ecl
Outdated
FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata2'), | ||
FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata3'), | ||
FileServices.FinishSuperFileTransaction(), | ||
FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup := 'mythor', destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := 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.
would be more portable if didn't explicitly specify destinationGroup. It will use the source file's by default.
testing/regress/ecl/dfucopy.ecl
Outdated
FileServices.FinishSuperFileTransaction(), | ||
FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup := 'mythor', destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := true), | ||
FileServices.DeleteLogicalFile(prefix + 'super_copy', true), | ||
FileServices.DeleteOwnedSubFiles(prefix + 'superdata'), |
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.
not really necessary, if you reorder the lines below, and 1st delete the prefix + 'superdata'.
testing/regress/ecl/dfucopy.ecl
Outdated
STRING20 user; | ||
END; | ||
|
||
layout_names := RECORD |
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.
unused
testing/regress/ecl/dfucopy.ecl
Outdated
//noroxie | ||
//nohthor | ||
|
||
import Std.System; |
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.
unused
Signed-off-by: Shamser Ahmed <shamser.ahmed@lexisnexis.com>
Signed-off-by: Shamser Ahmed <shamser.ahmed@lexisnexis.com>
Signed-off-by: Shamser Ahmed <shamser.ahmed@lexisnexis.com>
FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata2'), | ||
FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata3'), | ||
FileServices.FinishSuperFileTransaction(), | ||
FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup := Thorlib.group(), destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := 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.
destinationGroup := Thorlib.group()
is there any reason to define this at all?
thorlib.group() in k8s doesn't make sense - destinationPlane should be used..
But, neither needs to be defined afaics, defaults would be good.
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.
If the destinationPlane is not defined, an error is reported and it fails to compile. @jakesmith
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.
@shamser - 1 follow on comment
@shamser - tagged myself for review - to remind myself to look at this. |
Type of change:
Checklist:
Smoketest:
Testing: