Skip to content

Remove delta.experimental.ignore-checkpoint-write-failures config #14108

Merged
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/delta_experimental_ignore_checkpoint_write_failures_property
Sep 14, 2022
Merged

Remove delta.experimental.ignore-checkpoint-write-failures config #14108
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/delta_experimental_ignore_checkpoint_write_failures_property

Conversation

@homar
Copy link
Copy Markdown
Member

@homar homar commented Sep 12, 2022

Description

In case of failure while writing checkpoint file error is logged.

Non-technical explanation

Release notes

() This is not user-visible and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# delta
* Failure while writing checkpoint will result in a try to undo the operation. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Sep 12, 2022
@ebyhr ebyhr requested a review from findepi September 13, 2022 07:02
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

writeCheckpointIfNeeded is called after the write has been "committed", i.e. the transaction log exists.
Let's assume it's an INSERT query. If we now fail it, it can be retried by the calling application, leading to duplicate rows.

IMO we should log unconditionally

@alexjo2144 wdyt?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What loggin buys us? If so I would make exception message (for which it is more probable that someone would actually read it) more explanatory (that data could have been (or have been) already persisted in the table even though query failed).

@losipiuk
Copy link
Copy Markdown
Member

If write was committed already then created files will be remained, otherwise they will be cleaned up.

Does "otherwise" ever happen? Look it does not, which makes RN text misleading iMO.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a @DefunctConfig annotation

@homar homar force-pushed the homar/delta_experimental_ignore_checkpoint_write_failures_property branch 2 times, most recently from 0c5d0ff to 88c68bd Compare September 13, 2022 20:43
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's capture the reasoning from our conversation, why we don't fail here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added

@homar homar force-pushed the homar/delta_experimental_ignore_checkpoint_write_failures_property branch from 88c68bd to a5e6d92 Compare September 13, 2022 21:52
@homar homar force-pushed the homar/delta_experimental_ignore_checkpoint_write_failures_property branch from a5e6d92 to 372e0f0 Compare September 13, 2022 22:56
@findepi findepi merged commit fb88b46 into trinodb:master Sep 14, 2022
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Sep 14, 2022
@github-actions github-actions bot added this to the 396 milestone Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

5 participants