File tree Expand file tree Collapse file tree 3 files changed +2
-30
lines changed
solrj/src/java/org/apache/solr Expand file tree Collapse file tree 3 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ Deprecation Removals
133
133
134
134
* SOLR-17698: Removed deprecated EnumField field type. (Eric Pugh, David Smiley)
135
135
136
+ * SOLR-17778: Removed no-op core admin operation FORCEPREPAREFORLEADERSHIP and its SolrJ peer OverrideLastPublished. (Pierre Salagnac)
137
+
136
138
Dependency Upgrades
137
139
---------------------
138
140
Original file line number Diff line number Diff line change @@ -411,34 +411,6 @@ public void setCollection(String collection) {
411
411
}
412
412
}
413
413
414
- public static class OverrideLastPublished extends CoreAdminRequest {
415
- protected String state ;
416
-
417
- public OverrideLastPublished () {
418
- action = CoreAdminAction .FORCEPREPAREFORLEADERSHIP ;
419
- }
420
-
421
- @ Override
422
- public SolrParams getParams () {
423
- if (action == null ) {
424
- throw new RuntimeException ("no action specified!" );
425
- }
426
- ModifiableSolrParams params = new ModifiableSolrParams ();
427
- params .set (CoreAdminParams .ACTION , action .toString ());
428
- params .set (CoreAdminParams .CORE , core );
429
- params .set ("state" , state );
430
- return params ;
431
- }
432
-
433
- public String getState () {
434
- return state ;
435
- }
436
-
437
- public void setState (String state ) {
438
- this .state = state ;
439
- }
440
- }
441
-
442
414
public static class MergeIndexes extends CoreAdminRequest {
443
415
protected List <String > indexDirs ;
444
416
protected List <String > srcCores ;
Original file line number Diff line number Diff line change @@ -176,8 +176,6 @@ public enum CoreAdminAction {
176
176
OVERSEEROP ,
177
177
REQUESTSTATUS (true ),
178
178
REJOINLEADERELECTION ,
179
- // internal API used by force shard leader election
180
- FORCEPREPAREFORLEADERSHIP ,
181
179
// Internal APIs to back up and restore a core
182
180
BACKUPCORE ,
183
181
RESTORECORE ,
You can’t perform that action at this time.
0 commit comments