[Bug] Build Failure on main branch: RemoteStarletLocationProvider not a member of starrocks::lake
Version Info
Branch: main (upstream/main)
Describe the bug
I encountered a compilation error while building the Backend (BE) on the latest main branch. The build fails in lake_replication_txn_manager.h due to a missing class definition.
Steps to reproduce
- Sync with latest
main. - Run clean build:
build.sh --be -j 2(with default configuration).
Error Log
In file included from be/src/agent/agent_task.cpp:29: be/src/storage/lake/lake_replication_txn_manager.h:79:27: error: ‘RemoteStarletLocationProvider’ is not a member of ‘starrocks::lake’ 79 | std::unique_ptrlake::RemoteStarletLocationProvider _remote_location_provider; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Analysis
It seems like RemoteStarletLocationProvider is being used without proper #ifdef USE_STAROS guards or missing headers, causing build failures in environments where StarOS/SharedData might be disabled or not fully configured.