Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Protocol Layer Refactor #1445

Open
wants to merge 60 commits into
base: master
Choose a base branch
from

Conversation

tli2
Copy link
Contributor

@tli2 tli2 commented Jun 29, 2018

Protocol handler and traffic cop, as it stands currently, are completely intertwined, and rank very high on my "worst code ever seen" list. There is so much duct tape and coat hangers here, it pretty wrecks testability and extensibility of the code. We will have to refactor this in phases.

This PR will separate out all the components like they should be. @ChTimTsubasa is working on another PR based on this to fix the broken transaction handling logic.

tli2 and others added 30 commits June 12, 2018 15:38
…u-refactor-debug

# Conflicts:
#	src/include/network/service/connection_manager.h
#	src/include/network/service/message_queue.h
#	src/include/network/service/peloton_client.h
#	src/include/network/service/peloton_endpoint.h
#	src/include/network/service/peloton_service.h
#	src/include/network/service/rpc_channel.h
#	src/include/network/service/rpc_client.h
#	src/include/network/service/rpc_method.h
#	src/include/network/service/rpc_server.h
#	src/include/network/service/rpc_type.h
#	src/include/network/service/rpc_utils.h
#	src/include/network/service/tcp_connection.h
#	src/include/network/service/tcp_listener.h
#	src/network/service/connection_manager.cpp
#	src/network/service/peloton_service.cpp
#	src/network/service/rpc_channel.cpp
#	src/network/service/rpc_client.cpp
#	src/network/service/rpc_server.cpp
#	src/network/service/rpc_utils.cpp
#	src/network/service/tcp_connection.cpp
#	src/network/service/tcp_listener.cpp
#	test/codegen/csv_scan_translator_test.cpp
…u-protocol-refactor

# Conflicts:
#	src/include/common/notifiable_task.h
#	src/include/network/connection_dispatcher_task.h
#	src/include/network/connection_handle.h
#	src/include/network/marshal.h
#	src/include/network/network_io_wrapper_factory.h
#	src/include/network/network_io_wrappers.h
#	src/include/network/peloton_server.h
#	src/network/connection_handle.cpp
#	src/network/network_io_wrapper_factory.cpp
#	src/network/network_io_wrappers.cpp
#	src/network/postgres_protocol_handler.cpp
ChTimTsubasa
ChTimTsubasa previously approved these changes Jul 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants