Commit ef249be 1 parent b1c4b5c commit ef249be Copy full SHA for ef249be
File tree 1 file changed +6
-3
lines changed
hadoop/src/main/java/water/hadoop
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,12 @@ public String fetchFlatfile() throws Exception {
171
171
msg .write (s );
172
172
DriverToMapperMessage msg2 = new DriverToMapperMessage ();
173
173
msg2 .read (s );
174
- if (msg2 .getType () != DriverToMapperMessage .TYPE_FETCH_FLATFILE_RESPONSE ) {
175
- Log .err ("DriverToMapperMessage type unrecognized" );
176
- throw new Exception ("DriverToMapperMessage type unrecognized" );
174
+ char type = msg2 .getType ();
175
+ if (type != DriverToMapperMessage .TYPE_FETCH_FLATFILE_RESPONSE ) {
176
+ int typeAsInt = (int )type & 0xff ;
177
+ String str = new String ("DriverToMapperMessage type unrecognized (" + typeAsInt + ")" );
178
+ Log .err (str );
179
+ throw new Exception (str );
177
180
}
178
181
s .close ();
179
182
String flatfile = msg2 .getFlatfile ();
You can’t perform that action at this time.
0 commit comments