Skip to content

[FLINK-XXXXX][state-backends] Migrate RocksDB state backend tests to … - #29111

Open
Alwaysgaurav1 wants to merge 1 commit into
apache:masterfrom
Alwaysgaurav1:test-modernize-rocksdb-statebackend
Open

[FLINK-XXXXX][state-backends] Migrate RocksDB state backend tests to …#29111
Alwaysgaurav1 wants to merge 1 commit into
apache:masterfrom
Alwaysgaurav1:test-modernize-rocksdb-statebackend

Conversation

@Alwaysgaurav1

Copy link
Copy Markdown

What is the purpose of the change

This pull request migrates legacy JUnit 4 and Hamcrest test assertions in flink-statebackend-rocksdb to JUnit 5 (Jupiter) and AssertJ in accordance with Apache Flink test standards.

Brief change log

  • Migrated RocksDBMemoryControllerUtilsTest to JUnit 5 (@TempDir, @BeforeAll) and AssertJ assertions.
  • Migrated RocksDBResourceContainerTest to JUnit 5 and AssertJ assertions.
  • Migrated RocksDBWriteBatchWrapperTest to JUnit 5 and assertThatThrownBy(...) / AssertJ assertions.
  • Migrated RocksDBNativeMetricOptionsTest to JUnit 5 and AssertJ assertions.

Verifying this change

This change is a code refactoring of test suites without any changes to existing production runtime logic.

  • Run maven tests:
    mvn test -pl flink-state-backends/flink-statebackend-rocksdb -am -Dfast -Dtest=RocksDBMemoryControllerUtilsTest,RocksDBResourceContainerTest,RocksDBWriteBatchWrapperTest,RocksDBNativeMetricOptionsTest -Dsurefire.failIfNoSpecifiedTests=false
  • All 30 tests pass cleanly with 0 failures and 0 errors.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

@Alwaysgaurav1
Alwaysgaurav1 force-pushed the test-modernize-rocksdb-statebackend branch from 34882bb to d9052e3 Compare September 5, 2026 08:33
@spuru9

spuru9 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Hi @Alwaysgaurav1
Looks like a duplicate to #28943 and https://issues.apache.org/jira/browse/FLINK-29775

@flinkbot

flinkbot commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

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