Skip to content

fixes bug with bulk import RPC failure and retry#4000

Merged
keith-turner merged 2 commits intoapache:2.1from
keith-turner:bulk_bug_2
Nov 30, 2023
Merged

fixes bug with bulk import RPC failure and retry#4000
keith-turner merged 2 commits intoapache:2.1from
keith-turner:bulk_bug_2

Conversation

@keith-turner
Copy link
Contributor

The bulk import code had a bug where if an exception was thrown in a certain place in the tablet code that it would mark the bulk import as complete. After the exception, other code would retry and see the bulk import was complete even though it was not. This commit changes the behavior to only note success when there is no exception. In addition test were added that recreated this bug. These test set a constraint on the metadata table that cause bulk import writes to fail.

The bulk import code had a bug where if an exception was thrown in a
certain place in the tablet code that it would mark the bulk import as
complete.  After the exception, other code would retry and see the bulk
import was complete even though it was not.  This commit changes the
behavior to only note success when there is no exception. In addition
test were added that recreated this bug.  These test set a constraint on
the metadata table that cause bulk import writes to fail.
@keith-turner
Copy link
Contributor Author

While working on this I also noticed #4001, but was a slightly uncertain about the fix.

@keith-turner keith-turner merged commit 751a110 into apache:2.1 Nov 30, 2023
@keith-turner keith-turner deleted the bulk_bug_2 branch November 30, 2023 21:13
@ctubbsii ctubbsii modified the milestones: 3.1.0, 2.1.3 Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants