KNOX-2773 - Log replay buffer size with info level#604
KNOX-2773 - Log replay buffer size with info level#604smolnar82 merged 1 commit intoapache:masterfrom
Conversation
|
Code change looks good. Did you manage to trace back the caller of this function in the code? It should originate from an |
|
Thanks, @MrtnBalazs for the detailed description above! |
Maybe invoking the same curl command 2-3 times could prove that, right? |
There might be another code path. It would be good to see it in the code level as well. |
|
I tried invoking the same curl command multiple times, and it logged only the first time. I could'n t trace it back to an init() function. |
Yes it's non trivial. I think this can be a good exercise to find out how that works. |
|
I managed to trace it back to GatewayDispatchFilter.java
|
…yBufferSize log (apache#604) Change-Id: I92fee4fccc49cbdb1d36260c5c6d9f03b8caf1cb
…r replayBufferSize log (apache#604)" into cdpd-master
What changes were proposed in this pull request?
The replayBufferSize log level was changed from debug to info, to prevent confusion on what value was used, since it can be configured in two places (topology file and service.xml). Now the client can see what value was configured as replayBufferSize in the log after the first request after deploying a topology.
How was this patch tested?
I tested it manually, using the following curl command
curl -k -u tom:tom-password https://localhost:8443/gateway/sandbox/hiveThe log output was:
Configuration:
Log output:
Service.xml configuration:
Topology configuration:
Log output:
We can see that the topology file overrides the service.xml if they are configured differently.