Commit 90ce7e3
committed
store: Exit with an error if the notification listener loses its connection
Events we listen for are important for the overall correctness of the
system; for example, if we miss the assignment event for a subgraph, we
will not index it, leaving the user to scratch their head why a newly
deployed subgraph is not making progress.
Because of this, the safest and most robust thing is to immediately exit
the process (with an error) if a notification listener ever loses its db
connection. A process supervisor should be used to restart the process as
is appropriate for the environment we are running in.
Fixes #12791 parent 5024a3c commit 90ce7e3
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
0 commit comments