-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-6366] Separate WebSocket max message size into a dedicated REST API #5099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 5 commits
bb1d389
5b11d3c
3e5933e
f4969a2
6025ab1
36dade4
f1de090
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ | |
| import org.apache.zeppelin.service.AuthenticationService; | ||
|
|
||
| /** Configurations Rest API Endpoint. */ | ||
| @Path("/configurations") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have changed the path of the API class here. Probably so that the call is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Reamer Please feel free to let me know if you have any other suggestions. 🤔
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Reamer
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @seung-00 , As I see it, we have the following options.
What bothers me about 1) is that potentially new frontend configuration options would also have to be added to the What do you think about creating a general endpoint for frontend configurations? With this pull request, it's Either way, this change would be a breaking change, since the |
||
| @Path("/") | ||
| @Produces("application/json") | ||
| @Singleton | ||
| public class ConfigurationsRestApi extends AbstractRestApi { | ||
|
|
@@ -47,7 +47,19 @@ public ConfigurationsRestApi( | |
| } | ||
|
|
||
| @GET | ||
| @Path("all") | ||
| @Path("wsMaxMessageSize") | ||
| @ZeppelinApi | ||
| public Response getWsMaxMessageSize() { | ||
| try { | ||
| int maxMessageSize = configurationService.getWsMaxMessageSize(); | ||
| return new JsonResponse<>(Status.OK, "", maxMessageSize).build(); | ||
| } catch (Exception e) { | ||
| return new JsonResponse<>(Status.INTERNAL_SERVER_ERROR, "Fail to get max message size", e).build(); | ||
| } | ||
| } | ||
|
|
||
| @GET | ||
| @Path("configurations/all") | ||
| @ZeppelinApi | ||
| public Response getAll() { | ||
| try { | ||
|
|
@@ -60,7 +72,7 @@ public Response getAll() { | |
| } | ||
|
|
||
| @GET | ||
| @Path("prefix/{prefix}") | ||
| @Path("configurations/prefix/{prefix}") | ||
| @ZeppelinApi | ||
| public Response getByPrefix(@PathParam("prefix") final String prefix) { | ||
| try { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.