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
[HUDI-289] Implement a test suite to support long running test for Hudi writing and querying end-end #1100
Conversation
yanghua
commented
Dec 12, 2019
- Flexible schema payload generation
- Different types of workload generation such as inserts, upserts etc
- Post process actions to perform validations
- Interoperability of test suite to use HoodieWriteClient and HoodieDeltaStreamer so both code paths can be tested
- Custom workload sequence generator
- Ability to perform parallel operations, such as upsert and compaction
I have rebased the old |
@yanghua great, thanks. Can you please take a pass at the current PR and leave any comments that we should address ? Also, lets start running the test suite (I'm doing that too) to see if it works as expected in a longer duration. |
* An example of how to generate a workflow dag programmatically. This is also used as the default workflow dag if | ||
* none is provided. | ||
*/ | ||
public class WorkflowDagGenerator { |
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.
Since this is an example generator. Shall we rename the class name to SimpleWorkflowDagGenerator
or DefaultWorkflowDagGenerator
? WDYT? @n3nash
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.
+1 for SimpleWorkflowDagGenerator
import java.util.List; | ||
import java.util.function.Function; | ||
|
||
public class TestComplexDag extends WorkflowDagGenerator { |
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.
IMO, For these classes which do not contain test methods, it would be better to remove the Test
prefix. For this class, it could be ComplexDagGenerator
. WDYT? @n3nash
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.
+1
Will create an issue in Jira and open a PR to address these changes. |
@yanghua Can you check why the build is failing now ? |
dcfbab1
to
1d2ecbc
Compare
@yanghua thanks for fixing the build. Were you able to give the test-suite a try ? That is :
|
OK, will try to run the suite later. I am trying to integrate it with azure pipelines. Here is a demo: https://dev.azure.com/vinoyang/Hudi/_build |
@yanghua Left a comment in the other PR |
09c34a0
to
3dc85eb
Compare
@n3nash This PR has conflicts, I have rebased. |
3dc85eb
to
0456214
Compare
@yanghua please take a look at this PR once you are back from the new year holidays, we should merge this very soon |
@yanghua merged the pom PR, can you rebase this so we can merge this PR ? I think we have gone through it multiple times, let's have the first version committed so we can come up with more action items around this |
Or is it this PR? |
OK, will rebase with the master branch. |
Yes |
sg. In that case, I would like to re-ask my intiial questions again.. How have we validated the framework? are there real tests now? How/when are they run? :) |
In my opinion, we will trigger it with azure-pipelines after it merges into master branch. |
7a0794a
to
b04b037
Compare
Can you also please answer these? |
We validate the test suite via running the unit tests and e2e tests( |
b04b037
to
3063cd7
Compare
ff13b2a
to
839c1a4
Compare
5cdfbe0
to
8980e09
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.
hudi-hadoop-mr/pom.xml
Outdated
@@ -125,6 +125,10 @@ | |||
<artifactId>mockito-junit-jupiter</artifactId> | |||
<scope>test</scope> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.mockito</groupId> | |||
<artifactId>mockito-junit-jupiter</artifactId> |
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.
yes.. lets remove this.. may be a rebase/merge thing?
7cc6c55
to
9e9f930
Compare
f651091
to
aadba78
Compare
aadba78
to
bf59232
Compare