You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/10/31 18:32:03 UTC

[GitHub] [solr] gerlowskija commented on pull request #1115: SOLR-11028: Created V2 equivalent of REPLACENODE

gerlowskija commented on PR #1115:
URL: https://github.com/apache/solr/pull/1115#issuecomment-1297503312

   > The error received is 500.
   
   Make sure you register `CatchAllExceptionMapper.class` in your JerseyTest's `configure()` method...that makes it much easier to see what's going on here.  When I add that to your test class, put a debugger break-point in CatchAllExceptionMapper and re-run, I get the following error:
   
   ```
   Solr instance is not running in SolrCloud mode.
   ```
   
   Which makes sense - one of the first things that ReplaceNodeAPI does is call `fetchAndValidateZooKeeperAwareCoreContainer`, and the `mockCoreContainer` your test uses isn't configured to say that it's ZK-aware.  I fixed that by adding the line:
   
   ```
           when(mockCoreContainer.isZooKeeperAware()).thenReturn(true);
   ```
   to the test, which lets us get further until we hit a different mock related error later on.  But, that's progress.
   
   Anyway, hope that helps!


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org