mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
NIFI-1863 extended caught exception in cleaning task for HTTPContextMap
Signed-off-by: Matt Burgess <mattyb149@apache.org> This closes #428
This commit is contained in:
parent
cb67520129
commit
887648c86f
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.apache.nifi.http;
|
package org.apache.nifi.http;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -177,8 +176,8 @@ public class StandardHttpContextMap extends AbstractControllerService implements
|
|||||||
final AsyncContext async = entry.getValue().getAsync();
|
final AsyncContext async = entry.getValue().getAsync();
|
||||||
((HttpServletResponse) async.getResponse()).sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
|
((HttpServletResponse) async.getResponse()).sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
|
||||||
async.complete();
|
async.complete();
|
||||||
} catch (final IOException ioe) {
|
} catch (final Exception e) {
|
||||||
// we are trying to indicate that we are unavailable. If we have an IOException and cannot respond,
|
// we are trying to indicate that we are unavailable. If we have an exception and cannot respond,
|
||||||
// then so be it. Nothing to really do here.
|
// then so be it. Nothing to really do here.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user