File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/jvm/backtype/storm/drpc Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,14 @@ private StormTopology createTopology(DRPCSpout spout) {
91
91
if (i ==0 && component .declarations .size ()==0 ) {
92
92
declarer .noneGrouping (PREPARE_ID , PrepareRequest .ARGS_STREAM );
93
93
} else {
94
+ String prevId ;
95
+ if (i ==0 ) {
96
+ prevId = PREPARE_ID ;
97
+ } else {
98
+ prevId = boltId (i -1 );
99
+ }
94
100
for (InputDeclaration declaration : component .declarations ) {
95
- declaration .declare (boltId ( i - 1 ) , declarer );
101
+ declaration .declare (prevId , declarer );
96
102
}
97
103
}
98
104
if (i >0 ) {
Original file line number Diff line number Diff line change 9
9
import backtype .storm .tuple .Values ;
10
10
import java .util .Map ;
11
11
import java .util .Random ;
12
+ import backtype .storm .utils .Utils ;
12
13
13
14
14
15
public class PrepareRequest implements IBasicBolt {
15
- public static final String ARGS_STREAM = "args" ;
16
+ public static final String ARGS_STREAM = Utils . DEFAULT_STREAM_ID ;
16
17
public static final String RETURN_STREAM = "ret" ;
17
18
public static final String ID_STREAM = "id" ;
18
19
You can’t perform that action at this time.
0 commit comments