michaeljmarshall opened a new pull request, #20047:
URL: https://github.com/apache/pulsar/pull/20047

   ### Motivation
   
   The `/version` endpoint for functions currently returns 
`{"version":"version.number"}` instead of an actual version number. This PR 
fixes that.
   
   One observation is that the broker's `/version` endpoint returns a plain 
string:
   
   
https://github.com/apache/pulsar/blob/82237d3684fe506bcb6426b3b23f413422e6e4fb/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/BrokersBase.java#L527-L535
   
   ### Modifications
   
   * Return the actual version.
   * Use a static field to decrease the cost of this endpoint.
   
   ### Verifying this change
   
   This is a trivial change.
   
   ### Documentation
   
   - [x] `doc-not-needed`
   
   This fixes an endpoint, no docs are needed.
   
   ### Matching PR in forked repository
   
   PR in forked repository: Skipping PR since this is so trivial


-- 
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]

Reply via email to