naveencodet opened a new pull request, #30157:
URL: https://github.com/apache/flink/pull/30157

   ## What is the purpose of the change
   
   The `RocksDB Memory Management end-to-end test` is meant to verify that 
RocksDB stays within its managed memory budget by checking the 
`rocksdb.block-cache-usage` metric against `EXPECTED_MAX_MEMORY_USAGE`. Since 
FLINK-21585 introduced a metric filter for the slf4j reporter, that metric is 
filtered out: the filter includes `block-cache-usage`, but RocksDB native 
metrics are registered as `rocksdb.<property>` and the reporter filter requires 
a full name match. `find_max_block_cache_usage` therefore never finds a value, 
falls back to `0`, and the memory assertion cannot fail.
   
   Found while investigating FLINK-41622.
   
   ## Brief change log
   
     - Include `rocksdb.block-cache-usage` instead of `block-cache-usage` in 
the slf4j reporter filter of `test_rocksdb_state_memory_control.sh`.
   
   ## Verifying this change
   
   This change is already covered by existing tests: 
`test_rocksdb_state_memory_control.sh` itself. Verified locally on master (Java 
21):
   
   | | Reported block cache usage (slot 0 / slot 1) | Result |
   |---|---|---|
   | Before | `0` / `0` | PASS (assertion ineffective) |
   | After | `108442651` / `110067722` | PASS, ~1 min, below the 200 MB limit |
   
   The same values are now visible in CI logs. Note that FLINK-17511 previously 
observed usage slightly above 200 MB when this check was still effective, so 
reviewers may want to keep an eye on this test after re-enabling the check.
   
   ## 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to