DBZ-720 Avoiding race condition where we tried to commit an offset to an already closed xout server
This commit is contained in:
parent
70d91e1ba5
commit
8ad452d60f
@ -71,8 +71,10 @@ public void execute(ChangeEventSourceContext context) throws InterruptedExceptio
|
||||
}
|
||||
finally {
|
||||
// 3. disconnect
|
||||
if (xsOut != null) {
|
||||
if (this.xsOut != null) {
|
||||
try {
|
||||
XStreamOut xsOut = this.xsOut;
|
||||
this.xsOut = null;
|
||||
xsOut.detach(XStreamOut.DEFAULT_MODE);
|
||||
}
|
||||
catch (StreamsException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user