Naveen Joseph created FLINK-41696:
-------------------------------------

             Summary: RocksDB Memory Management e2e test never checks block 
cache usage because of metric filter mismatch
                 Key: FLINK-41696
                 URL: https://issues.apache.org/jira/browse/FLINK-41696
             Project: Flink
          Issue Type: Sub-task
          Components: Runtime / State Backends, Tests
    Affects Versions: 2.2.1, 2.3.0, 1.12.5
            Reporter: Naveen Joseph


test_rocksdb_state_memory_control.sh configures the slf4j reporter with
the filter "numRecordsIn,block-cache-usage". RocksDB native metrics are
registered as "rocksdb.<property>" (RocksDBProperty#ROCKS_DB_PROPERTY_FORMAT),
and DefaultMetricFilter requires a full match on the metric name, so
"rocksdb.block-cache-usage" is filtered out and never logged.

As a result find_max_block_cache_usage always returns 0 and the
EXPECTED_MAX_MEMORY_USAGE assertion has not been effective since the
filter was introduced in FLINK-21585. CI logs show
"Current block cache usage for RocksDB instance in slot was 0" on
passing runs.

Fix: include "rocksdb.block-cache-usage" in the filter. Verified locally
(release-1.20, Java 21): usage is now reported as ~125-129 MB per slot,
below the 200 MB limit, and the test passes in ~1 minute.

Found while investigating FLINK-41622.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to