XComp commented on code in PR #25050:
URL: https://github.com/apache/flink/pull/25050#discussion_r1668880762
##########
flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServer.java:
##########
@@ -354,10 +354,12 @@ public void close() throws IOException {
if (shutdownRequested.compareAndSet(false, true)) {
Exception exception = null;
- try {
- this.serverSocket.close();
- } catch (IOException ioe) {
- exception = ioe;
+ if (serverSocket != null) { // can be null if shut down before
constructor completion
Review Comment:
we would need another `null` check in further down in the `closeAsync`
method (see
[BlobServer:401](https://github.com/apache/flink/blob/2d524cf16224834ef4b8c3fd7f4c63caabdf43ba/flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServer.java#L401))
to prevent the `NullPointerPointerException` to be thrown there, instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]