packet sizes that exceed the default buffer send size result in disconnection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman Java |
Fix Released
|
High
|
Eric Lambert |
Bug Description
Submitting a packet to the jobserver who's total size exceeds the Default Socket Send Size (32,768), will result in the connection being dropped.
The problem is with the GearamanNIOJobS
The problem was that we are not correctly moving an pre-existing bits into the new buffer and thereby creating a corrupt message. When that message is sent to the server, the server rejects the corrupt message and drops the connection.
Related branches
Changed in gearman-java: | |
importance: | Undecided → High |
assignee: | nobody → Eric Lambert (elambert) |
milestone: | none → 0.03 |
status: | New → In Progress |
Changed in gearman-java: | |
status: | In Progress → Fix Committed |
Changed in gearman-java: | |
status: | Fix Committed → Fix Released |
I upgraded the library to gearman-java 0.03, and although I'm not getting the NIO error, I'm still getting an error of some type. I'll keep poking at this to see if I can figure it out.
22:49:21,798 DEBUG (com.xxx. gearman. ScreenerAdvance dFunction. executeFunction :111) - row = [ZUMZ, ZUMIEZ INC, $18.81] gearman. ScreenerAdvance dFunction. executeFunction :111) - row = [ZZ, SEALY CORP, $2.60] gearman. ScreenerAdvance dFunction. executeFunction :140) - Passing results of length 150159 to client worker. GearmanWorkerIm pl submitFunction NullPointerExce ption worker. AbstractGearman Function. call(AbstractGe armanFunction. java:125) worker. AbstractGearman Function. call(AbstractGe armanFunction. java:20) worker. GearmanWorkerIm pl.submitFuncti on(GearmanWorke rImpl.java: 483) worker. GearmanWorkerIm pl.work( GearmanWorkerIm pl.java: 171) gearman. RobotWorker. start(RobotWork er.java: 82) gearman. RobotWorker. main(RobotWorke r.java: 122) NullPointerExce ption worker. GearmanWorkerIm pl.submitFuncti on(GearmanWorke rImpl.java: 506) worker. GearmanWorkerIm pl.work( GearmanWorkerIm pl.java: 171) gearman. RobotWorker. start(RobotWork er.java: 82) gearman. RobotWorker. main(RobotWorke r.java: 122)
22:49:21,798 DEBUG (com.xxx.
22:49:21,798 WARN (com.xxx.
Jul 23, 2010 10:49:23 PM org.gearman.
WARNING: Exception while getting function results
java.lang.
at org.gearman.
at org.gearman.
at org.gearman.
at org.gearman.
at com.xxx.
at com.xxx.
Exception in thread "main" java.lang.
at org.gearman.
at org.gearman.
at com.xxx.
at com.xxx.