Uh oh!
There was an error while loading. Please reload this page.
Core: Set current snapshot with currentTimeMillis - #4088
Conversation
wypoon
commented
Feb 11, 2022
rdblue
commented
Feb 12, 2022
@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 |
wypoon
commented
Feb 12, 2022
@rdblue I have not investigated this issue and do not know the cause. Thanks for your explanation. |
rdblue
commented
Feb 14, 2022
wypoon
commented
Feb 15, 2022
@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 |
rdblue
commented
Feb 15, 2022
rdblue
commented
Feb 15, 2022
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. |
sririshindra
commented
Feb 15, 2022
rdblue
commented
Feb 15, 2022
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