mlbiscoc commented on PR #2916:
URL: https://github.com/apache/solr/pull/2916#issuecomment-2558290502

   > Uh oh; a back-compat problem is dawning on me. Any SolrJ consumer of this 
API (especially using the default "javabin" format) is going to break here. The 
change to BaseHttpClusterStateProvider should have made this glaringly obvious 
but I overlooked its implication earlier (face-palm).
   > 
   > I wouldn't mind if we do this only for V2 (which doesn't yet have 
back-compatibility concerns) but V2 only has one collection status list 
returning API (/cluster) and I've debated against the very existence of 
/cluster for V2. There's not yet a proposal for an alternative. Furthermore V2 
raises the bigger question of coalescing on a single DocCollection 
serialization method.
   > 
   > If we forge ahead anyway (not waiting for V2), we'll have to work around 
this compatibility. I had a couple ideas but whittled down to one:
   > 
   > * detect the response format in this handler.  If it's Javabin, we write 
to a NamedList (or better, SimpleOrderedMap), defeating the point of this PR 
_for that format_.  If JSON/XML is used, this PR will accomplish its goal. Need 
to write a little test for JSON that at least partially sanity checks the 
result.  Such a test should pass without this PR.
   
   Well thats unfortunate... I'm not too familiar with SolrJ (I'll maybe play 
with it more to catch stuff like this) but I am assuming now the API is going 
to return a `Map` and no longer a `NamedList` to the client thus breaking them 
now?
   
   I'll continue with this and add in your ideas to keep this backwards 
compatible.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to