You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Resolve critical bugs in cache, MySQL, and concurrency handling
## Cache Configuration
- Change CacheConfig from int max_memory_mb to size_t max_memory_bytes
for precise byte-level memory control and overflow prevention
- Convert MB to bytes at config load time, bytes to MB at display time
- Fix LRUEvictionCleansUpMetadata test with byte-precision cache sizing
## Resource Management
- Add RAII pattern for MySQL result sets to prevent memory leaks
(MysqlResultGuard in connection.cpp)
## Thread Safety & Concurrency
- Fix InvalidationManager::ClearTable deadlock by using lock_guard
- Add comprehensive test coverage for concurrent scenarios
## Test Reliability
- Add RESOURCE_LOCK to HTTP server tests to prevent port conflicts
during parallel execution
This commit resolves critical issues including:
- Deadlock risks in cache invalidation
- Memory leaks in MySQL connection handling
- Race conditions in concurrent operations
- Test flakiness in parallel execution
0 commit comments