Skip to content

Conversation

@k-rus
Copy link

@k-rus k-rus commented Feb 17, 2025

Fixes #13004

What is the issue

When a compaction controller config options are being written or read for a table with long keyspace + table names, FileSystemException happens.

What does this PR fix and why was it fixed

This commit fixes that such exception is caught and logged. Thus existing table with long name will continue to function. Tests are added.
Also it catches other exceptions.

@github-actions
Copy link

github-actions bot commented Feb 17, 2025

Checklist before you submit for review

  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits

@k-rus k-rus requested a review from jtgrabowski February 17, 2025 19:50
@k-rus
Copy link
Author

k-rus commented Feb 17, 2025

@eolivelli I found another related bug and extended the fix with it. It's in AdaptiveController. To my understanding it's not used in CNDB.
The fix is added to this PR.

@k-rus k-rus changed the title CNDB-13004 don't fail on writing config options for long name CNDB-13004 don't fail on too long file name for options Feb 18, 2025
When a compaction controller config options are being written for a
table with long keyspace + table names, FileSystemException happens.
This commit fixes that such exception is caught and logged. Thus
existing table with long name will continue to function.
@k-rus k-rus force-pushed the rf-cndb-13004-store-options-write branch from 47b95a5 to 0152e0a Compare February 18, 2025 15:15
@k-rus k-rus requested a review from jtgrabowski February 18, 2025 15:16
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
53.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@cassci-bot
Copy link

❌ Build ds-cassandra-pr-gate/PR-1576 rejected by Butler


1 new test failure(s) in 6 builds
See build details here


Found 1 new test failures

Test Explanation Branch history Upstream history
o.a.c.u.b.BinLogTest.testTruncationReleasesLogS... regression 🔴🔴🔴🔴🔵🔵 🔵🔵🔵🔵🔵🔵🔵

Found 14 known test failures

@k-rus k-rus merged commit ada48ad into main Feb 18, 2025
462 of 477 checks passed
@k-rus k-rus deleted the rf-cndb-13004-store-options-write branch February 18, 2025 17:40
k-rus added a commit that referenced this pull request Feb 18, 2025
When a compaction controller config options are being written or read
for a table with long keyspace + table names, FileSystemException
happens.

This commit fixes that such exception is caught and logged. Thus
existing table with long name will continue to function. Tests are
added.

Also it catches other exceptions.
k-rus added a commit that referenced this pull request Feb 19, 2025
When a compaction controller config options are being written or read
for a table with long keyspace + table names, FileSystemException
happens.

This commit fixes that such exception is caught and logged. Thus
existing table with long name will continue to function. Tests are
added.

Also it catches other exceptions.
djatnieks pushed a commit that referenced this pull request Mar 11, 2025
When a compaction controller config options are being written or read
for a table with long keyspace + table names, FileSystemException
happens.

This commit fixes that such exception is caught and logged. Thus
existing table with long name will continue to function. Tests are
added.

Also it catches other exceptions.
djatnieks pushed a commit that referenced this pull request May 18, 2025
When a compaction controller config options are being written or read
for a table with long keyspace + table names, FileSystemException
happens.

This commit fixes that such exception is caught and logged. Thus
existing table with long name will continue to function. Tests are
added.

Also it catches other exceptions.
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.

5 participants