余 欣怀
abd6ce9be3
调用Close后不再向JobServer获取任务
vor 1 Jahr
余 欣怀
97187ecbf9
等待执行中的任务完成后再退出进程
vor 1 Jahr
Xing
2a518e8661
Merge pull request #96 from floringavrila/add-support-for-own-ids
add support for own ids (coalescing)
vor 2 Jahren
gavrila florin
fa71d7a37a
add support for own ids
vor 2 Jahren
Xing
d36dcb7fc2
Merge pull request #94 from cameronpm/client_race
Fix two race conditions in client.Do
vor 3 Jahren
Paul Cameron
a8f0a04c3d
Fix two race conditions in client.Do
* Common race condition is fixed by identifying that Client.respHandler
can be completely removed since all respHandler operations (get, put
and invocation) can be moved into the Client.processLoop goroutine,
meaning that zero locking is required. This race condition resulted
in a deadlock that was resolved by the response timeout at the
end of client.Do, returning ErrLostConn
* Rare race condition is fixed by changing responseHandlerMap.get
to .getAndRemove. This race condition resulted in the innerHandler
for a new dtJobCreated assigned in client.Do overriding a stale older
dtJobCreated request, and the newer innerHandler being removed by an
older dtJobCreated in client.processLoop > client.handleInner. When
the newer dtJobCreated response was received, the handler for it had
already been deleted. This was resolved by the response timeout at the
end of client.Do, returning ErrLostConn
vor 3 Jahren
galih rivanto
81d00aa9ce
add synchronization to prevent race condition on worker shutdown ( #89 )
* add synchronization to prevent race condition on worker shutdown
* fix incorrect synchronization and add race unit test
* fix race while broadcasting outpack
vor 5 Jahren
Christoffer Fjellström
b902646ce8
Merge pull request #87 from CodeLingoBot/rewrite
Fix function comments based on best practices from Effective Go
vor 5 Jahren
CodeLingo Bot
133dd3716f
Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
vor 5 Jahren
Christoffer Fjellström
f333ba6102
Fix job register with timeout set
Fixed issue where timeout is sent as binary encoded uint but server
expects a string
vor 5 Jahren
Md. Ashiquzzaman
d0e6ec4878
Fix Odd use of time.Duration ( #29 )
Ref - https://github.com/appscode/g2/issues/28
vor 7 Jahren
Sadlil Rhythom
f2f0349d2d
Remove lastcall.
vor 7 Jahren
Sadlil Rhythom
5c665de2d6
fix worker reconnect errors, send cando after reconnection.
* fix worker reconnect errors, send cando after reconnection.
vor 7 Jahren
Christoffer Fjellström
2fba865e37
Merge pull request #81 from Detectify/master
Fix race condition in client.Do()
vor 6 Jahren
Christoffer Fjellström
0ca6dc2c6f
Remove duplicate locking
Fixes duplicated code after merge
vor 6 Jahren
No-ops
7b6215604e
Merge remote-tracking branch 'upstream/master'
vor 6 Jahren
No-ops
8a7ac5b450
Merge branch 'develop'
vor 6 Jahren
No-ops
a2eb7ba410
Remove unused imports
vor 6 Jahren
No-ops
53bb686b76
Merge branch 'develop'
vor 6 Jahren
Christoffer Fjellström
e701107e40
Remove broken test suite
OS and configuration specific integration test
vor 6 Jahren
Christoffer Fjellström
99d317427f
Add skipping for integration tests when running unit tests
Run integration tests with the -integration flag
vor 6 Jahren
Sadlil Rhythom
d8cb3883ad
Merge pull request #79 from John-Lin/fixed-typo
fixed typo on WorkComplete
vor 6 Jahren
Christoffer Fjellström
d9ad23413d
Merge pull request #1 from Detectify/develop
Add lock on job handler assignment
vor 6 Jahren
Christoffer Fjellström
2dbf199260
Add lock on job handler assignment
Fixes race condition on jobs being done before handler is set.
vor 6 Jahren
John-Lin
e1224a8c20
fixed typo and keep WorkComplate for downward compatibility
vor 6 Jahren
Christoffer Fjellström
9735b2e54f
Merge pull request #75 from No-ops/patch-1
Add sync lock to create job functions
vor 7 Jahren
Christoffer Fjellström
27942f55cd
Add sync lock on do() to avoid race conditions when creating jobs
vor 7 Jahren
Christoffer Fjellström
d6791e2e42
Add sync lock to create job functions
Add sync lock to make create job calls thread safe.
vor 7 Jahren
Xing
b79fee2965
Merge pull request #70 from JessonChan/master
concurrent map bug fixed #70
vor 8 Jahren
JessonChan
dd82e211a3
concurrent map bug fixed
vor 8 Jahren
Xing
68777318f9
Merge pull request #65 from JessonChan/master
fixed #65
vor 8 Jahren
JessonChan
99c8032384
fix a bug when high qps
vor 8 Jahren
Xing
21cc8de64f
Merge pull request #63 from kujohn/pool-custom-handler
Allow built in selectionHandlers to be reused outside of package
vor 8 Jahren
John Ku
9d99accce2
Allow built in selectionHandlers to be reused outside of package
vor 8 Jahren
Xing
6d9b2fba51
Merge pull request #62 from kujohn/pool-custom-handler
Export SelectionHandler
vor 8 Jahren
John Ku
1c4b8aa000
Export pool.clients for custom Pool instantiation
vor 8 Jahren
John Ku
d20c3c7bd1
Allow custom Pool without constructor
vor 8 Jahren
Xing Xing
c6c6c9cac2
don't use sigillum
vor 8 Jahren
Xing
503d523dbf
Merge pull request #60 from micmac/master
Replace mutex in client.do() with a channel to avoid deadlock and int…
vor 8 Jahren
Endre Hirling
c615e74af8
Replace mutex in client.do() with a channel to avoid deadlock and introduce command timeout
vor 8 Jahren
Xing Xing
df1af4f8cb
80 chars/line
vor 9 Jahren
Xing Xing
b612b80f80
complete the list of contributors
vor 9 Jahren
Xing Xing
2c9d82830c
merge, update README to the newest API design.
vor 9 Jahren
C.R. Kirkwood-Watts
37db439a4a
Update README.md
Updated to reflect new type names.
vor 9 Jahren
Xing Xing
bc80b2f853
fixed signal method
vor 9 Jahren
Xing Xing
939189448e
golib/signal upgrade
vor 9 Jahren
Xing Xing
9dbb3ea3fc
added lock-write to co-ordinate package sequence #56
vor 9 Jahren
Xing Xing
c01a2e22c0
upgrade travis to Go 1.4
vor 9 Jahren
Xing Xing
ad9b3cb988
go fmt
vor 9 Jahren
Xing Xing
a003eac543
fixed the closing method
vor 9 Jahren