-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-26842 fix TestSnapshotProcedure for branch-2 #4225
Conversation
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 wait for the pre commit result.
And we should also file an issue to forward port the test change to master branch.
Ok. I'll start this work as soon as possible. Thanks for your great advise Duo. @Apache9 |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
There are five tests failing. The two tests in TestSnapshotFromAdmin fail because that they are designed for the old synchronous implementation, which is polling result from server periodically, now we use a new implementation, which is blocking on the future until timeout. So I think we can move these two tests directly. The two tests for testing AsyncFlushSnapshot fail because that we always choose to using SnapshotProcedure to take snapshot. If SnapshotProcedure is enabled, master will run a SnapshotProcedure and return a procid to the client, then the client will pull result by the procid. If SnapshotProcedure is disabled, then master will take a zk-coordinated snapshot and the client will keep asking master if the snapshot is finished by calling isSnapshotDone method. So The isSnapshotDone method is only used for zk-coordinated snapshots but in these two tests, we actually run a SnapshotProcedure, which will trigger an UnknownSnapshotException. I'll try to fix these problems as soon as possible. The last failing test org.apache.hadoop.hbase.master.cleaner.TestSnapshotFromMaster.testSnapshotHFileArchiving is not very stable. I haven't find the reason why it failed yet. I'll keep trying. Thanks. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
It looks like the unit tests failed because we set java.io.tmpdir to a relative path on mvn command when running jenkins job in HBASE-26848. I tried to set java.io.tmpdir to an absolute path when running local tests on my computer and it worked. I am not sure what should I do about this problem. Would you mind giving me some suggestions? @Apache9 Thanks. |
I'm currently working on solve the problem. Will kick a new build after the problem is solved. |
Thanks, Duo. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Closes #4225 Signed-off-by: Duo Zhang <zhangduo@apache.org>
Pushed to branch-2 after fixing the checkstyle issues. |
No description provided.