You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by rm...@apache.org on 2020/11/18 06:25:02 UTC

[flink] 01/03: [hotfix][runtime] Fixed wrong HTTP error code used in exception handling of MultipartUploadResource.

This is an automated email from the ASF dual-hosted git repository.

rmetzger pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 21e2f3522fcd2b7b14ff484ca437760575c95abd
Author: Matthias Pohl <ma...@ververica.com>
AuthorDate: Mon Nov 16 14:23:57 2020 +0100

    [hotfix][runtime] Fixed wrong HTTP error code used in exception handling of MultipartUploadResource.
---
 .../java/org/apache/flink/runtime/rest/MultipartUploadResource.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadResource.java b/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadResource.java
index 6c1bea3..fe47f98 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadResource.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadResource.java
@@ -343,7 +343,7 @@ public class MultipartUploadResource extends ExternalResource {
 				}
 			} catch (Exception e) {
 				// return 505 to differentiate from common BAD_REQUEST responses in this test
-				throw new RestHandlerException("Test verification failed.", HttpResponseStatus.INTERNAL_SERVER_ERROR, e);
+				throw new RestHandlerException("Test verification failed.", HttpResponseStatus.HTTP_VERSION_NOT_SUPPORTED, e);
 			}
 		}