-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Core: Set current snapshot with currentTimeMillis #4088
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
Conversation
|
@wypoon are you sure that's the cause? If the timestamp is set to I think the problem is that the call to roll back is using |
|
@rdblue I have not investigated this issue and do not know the cause. Thanks for your explanation. |
|
@rdblue we're testing Iceberg 0.13.0. You're right that the rollback is using I know that you're working on #4089, but that depends on the new work adding |
|
I just merged #4089, so I think this is fixed. If you want, feel free to port the fix over to the 0.13.x branch and I'll review it. |
|
Thanks, @sririshindra! |
While testing rollback_to_snaphot feature at Cloudera, we found that this is feature is failing in some cases.
In the setSetCurrentSnapshot method 'null' is being passed for timestamp which eventually causes the failure of the following precondition check. The timeStamp should also be passed along with the Snapshot just like here
This PR fixes this bug. I tested this with our internal tests and also by running the unit tests in Iceberg.
Steps to reproduce the rollback_to_snapshot bug in spark.
Each insert operation below is done separately in its own spark app.
launch a new spark shell and follow the following steps