Commit f60d021
committed
Reorganize ReceiverTracker to use an event loop for lock free
1. Add fields into ReceiverTrackingInfo to contain all necessary information for ReceiverInfo. When sending ReceiverInfo to StreamingListener, create ReceiverInfo from ReceiverTrackingInfo directly.
2. Move methods that use ReceiverTrackingInfo into ReceiverTrackerEndpoint so that we can maintain all ReceiverTrackingInfos in an event loop.
3. Move ReceiverTrackingInfo to a separate file ReceiverTrackingInfo.scala.
4. Address some code style issues1 parent 105037e commit f60d021
File tree
8 files changed
+362
-415
lines changed- streaming/src
- main/scala/org/apache/spark/streaming
- receiver
- scheduler
- test/scala/org/apache/spark/streaming
- scheduler
- ui
8 files changed
+362
-415
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | 185 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
Lines changed: 8 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 22 | | |
44 | 23 | | |
45 | 24 | | |
| |||
65 | 44 | | |
66 | 45 | | |
67 | 46 | | |
68 | | - | |
| 47 | + | |
69 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
70 | 53 | | |
71 | 54 | | |
72 | 55 | | |
| |||
80 | 63 | | |
81 | 64 | | |
82 | 65 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 66 | + | |
87 | 67 | | |
88 | 68 | | |
89 | 69 | | |
90 | 70 | | |
91 | 71 | | |
92 | 72 | | |
93 | | - | |
| 73 | + | |
94 | 74 | | |
95 | 75 | | |
96 | 76 | | |
| |||
0 commit comments