Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ protected void runAfterCatalogReady() {
ImmutableMap<Long, Backend> backends = Env.getCurrentSystemInfo().getIdToBackend();
long start = System.currentTimeMillis();
taskPool.submit(() -> {
backends.values().parallelStream().forEach(backend -> {
// no need to get tablet stat if backend is not alive
backends.values().stream().filter(Backend::isAlive).parallel().forEach(backend -> {
BackendService.Client client = null;
TNetworkAddress address = null;
boolean ok = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ protected void runAfterCatalogReady() {
int pullRecordSize = 0;
Map<Long, Long> beIdToLastStreamLoad = Maps.newHashMap();
for (Backend backend : backends.values()) {
if (!backend.isAlive()) {
continue;
}
BackendService.Client client = null;
TNetworkAddress address = null;
boolean ok = false;
Expand Down