Skip to content

Conversation

@dcapwell
Copy link
Contributor

No description provided.

{
for (ColumnFamilyStore cfs : toPause)
{
successfullyPaused.ensureCapacity(successfullyPaused.size() + 1); // to avoid OOM after pausing the strategies
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it not be safe to just fail hard on OOME?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

prob, this was mostly copy/paste to keep inline with w/e the reasoning was. I thought about making the methods public and marked as for tests vs copying... I don't think ColumnFamilyStore is a public API or consumed by a public API... but given that we really don't document whats public i didn't really want to take the risk

Copy link
Contributor

@nitsanw nitsanw left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jyothsnakonisa jyothsnakonisa left a comment

Choose a reason for hiding this comment

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

Looks good, just a minor comment.

*
* @param name the SSTable format name (e.g., "big" or "bti")
*/
public static void setUnsafeSelectedSSTableFormat(String name)
Copy link
Contributor

Choose a reason for hiding this comment

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

documentation says this Sets the global SSTable format after safely pausing all compactions., but the name has "unsafe" in it, should we update documentation or rename the method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i left it as unsafe as its doing something not actually supported yet. I can rename as its in test DD (I had it in DD before but didn't like it)

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.

3 participants