-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Dispatcher: keeps a stack of tracked objects. (#14573) Dispatcher will now keep a stack of tracked objects; on crash it'll "unwind" and have those objects dump their state. Moreover, it'll invoke fatal actions with the tracked objects. This allows us to dump more information during crash. See related PR: #14509 Will follow up with another PR dumping information at the codec/parser level. Signed-off-by: Kevin Baichoo <kbaichoo@google.com> Signed-off-by: Christoph Pakulski <christoph@tetrate.io> * cluster: destroy on main thread (#14954) Signed-off-by: Yuchen Dai <silentdai@gmail.com> Signed-off-by: Christoph Pakulski <christoph@tetrate.io> * Updated release notes. Signed-off-by: Christoph Pakulski <christoph@tetrate.io> Co-authored-by: Kevin Baichoo <kbaichoo@google.com> Co-authored-by: Yuchen Dai <silentdai@gmail.com>
- Loading branch information
1 parent
8f83d63
commit b961323
Showing
40 changed files
with
707 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include <memory> | ||
|
||
namespace Envoy { | ||
namespace Event { | ||
|
||
/** | ||
* If an object derives from this class, it can be passed to the destination dispatcher who | ||
* guarantees to delete it in that dispatcher thread. The common use case is to ensure config | ||
* related objects are deleted in the main thread. | ||
*/ | ||
class DispatcherThreadDeletable { | ||
public: | ||
virtual ~DispatcherThreadDeletable() = default; | ||
}; | ||
|
||
using DispatcherThreadDeletableConstPtr = std::unique_ptr<const DispatcherThreadDeletable>; | ||
|
||
} // namespace Event | ||
} // namespace Envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.