mirror of
https://github.com/wassname/ray.git
synced 2026-08-08 11:25:28 +08:00
Fix valgrind tests. (#1037)
* Comment out local scheduler valgrind test. * Fix free/delete error. * More free -> delete errors * One more free -> delete and also clean up callback state in plasma manager. * Add set -x to run_valgrind scripts. * Fix valgrind error in CreateLocalSchedulerInfoMessage.
This commit is contained in:
committed by
Philipp Moritz
parent
ba153adc4c
commit
ce278aa06a
@@ -561,6 +561,7 @@ void PlasmaManagerState_free(PlasmaManagerState *state) {
|
||||
|
||||
ARROW_CHECK_OK(state->plasma_conn->Disconnect());
|
||||
delete state->plasma_conn;
|
||||
destroy_outstanding_callbacks(state->loop);
|
||||
event_loop_destroy(state->loop);
|
||||
delete state;
|
||||
}
|
||||
@@ -671,7 +672,7 @@ void send_queued_request(event_loop *loop,
|
||||
conn->pending_object_transfers.erase(buf->object_id);
|
||||
}
|
||||
conn->transfer_queue.pop_front();
|
||||
free(buf);
|
||||
delete buf;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -727,7 +728,7 @@ void process_data_chunk(event_loop *loop,
|
||||
conn->manager_state->plasma_conn->Release(buf->object_id.to_plasma_id()));
|
||||
/* Remove the request buffer used for reading this object's data. */
|
||||
conn->transfer_queue.pop_front();
|
||||
free(buf);
|
||||
delete buf;
|
||||
/* Switch to listening for requests from this socket, instead of reading
|
||||
* object data. */
|
||||
event_loop_remove_file(loop, data_sock);
|
||||
@@ -749,7 +750,7 @@ void ignore_data_chunk(event_loop *loop,
|
||||
}
|
||||
|
||||
free(buf->data);
|
||||
free(buf);
|
||||
delete buf;
|
||||
/* Switch to listening for requests from this socket, instead of reading
|
||||
* object data. */
|
||||
event_loop_remove_file(loop, data_sock);
|
||||
@@ -1444,7 +1445,7 @@ void ClientConnection_free(ClientConnection *client_conn) {
|
||||
/* Close the manager connection and free the remaining state. */
|
||||
close(client_conn->fd);
|
||||
free(client_conn->ip_addr_port);
|
||||
free(client_conn);
|
||||
delete client_conn;
|
||||
}
|
||||
|
||||
void handle_new_client(event_loop *loop,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
# Cause the script to exit if a single command fails.
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user