Skip to content

Remove TODOs from RootTabletMutatorImpl.java - #6494

Draft
Amemeda wants to merge 4 commits into
apache:mainfrom
Amemeda:mutator-todos
Draft

Remove TODOs from RootTabletMutatorImpl.java#6494
Amemeda wants to merge 4 commits into
apache:mainfrom
Amemeda:mutator-todos

Conversation

@Amemeda

@Amemeda Amemeda commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Removed the following TODOs:

  • RootTabletMutatorImpl.java: // TODO examine implementation of getZooReaderWriter().mutate(): This TODO may be outdated, current version of code does not use context.getZooReaderWriter(), uses context.getZooSession() instead
  • RootTabletMutatorImpl.java: // TODO for efficiency this should maybe call mutateExisting: Updated line 103 to use mutateExisting() instead of mutateOrCreate()
  • RootTabletMutatorImpl.java: // TODO this is racy... . Added Thread.sleep() after the first call to clear() as a makeshift wait to check that the ZROOT_TABLET is empty before calling clear() again a few lines later to avoid race condition.
  • RootConditionalWriter.java: // TODO this is racy... . Same as above

This pr resolves 4 TODOs from #2699


Need more information on what is going on here / what an alternative would be. Both occurrences of this TODO are preceded by the exact same clear() a few lines beforehand, could this be why it is racy?

image

@Amemeda Amemeda changed the title Remove TODO's from RootTabletMutatorImpl.java Remove TODOs from RootTabletMutatorImpl.java Jul 29, 2026
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.

1 participant