-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix a failing test case intermittenly in TestMergeOnRead due to incorrect prev commit time #448
Conversation
…rect prev commit time
@vinothchandar pinging to re-surface |
Will add a test case soon to concretely add this case : #450 |
@@ -235,7 +235,6 @@ public WriteStatus close() { | |||
if (writer != null) { | |||
writer.close(); | |||
} | |||
writeStatus.getStat().setPrevCommit(commitTime); |
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.
@n3nash : Can you provide some context here around this and why this needs to be removed?
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.
@bvaradar Yes, so essentially 2 reasons :
- For inserts we always have PREV_COMMIT set to NULL as you can see in HoodieCreateHandle, I want to keep the same semantics
- Say a log file was created with commit = 101. Now, when an update comes along for this log file at commit = 102, the write status will be set PREV_COMMIT = 102. Now, any rollback will try to write to a log file with commit = 102 which is incorrect. This got introduced in the inserts to log files diff.
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.
thanks. makes sense
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.
@vinothchandar : looks good to me.
@@ -235,7 +235,6 @@ public WriteStatus close() { | |||
if (writer != null) { | |||
writer.close(); | |||
} | |||
writeStatus.getStat().setPrevCommit(commitTime); |
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.
thanks. makes sense
@vinothchandar This should fix the failing test case in dependency removal.