Skip to content

Commit 407d501

Browse files
authored
fix unmappable character for encoding US-ASCII (#738)
* fix unmappable character for encoding US-ASCII Signed-off-by: Yaliang Wu <[email protected]> * Revert "the dev of [FEATURE]Auto reload model when cluster rebooted/node rejoin (#711)" This reverts commit 7a51dcc. Signed-off-by: Yaliang Wu <[email protected]> --------- Signed-off-by: Yaliang Wu <[email protected]>
1 parent 7ae4192 commit 407d501

File tree

7 files changed

+3
-1501
lines changed

7 files changed

+3
-1501
lines changed

common/src/main/java/org/opensearch/ml/common/CommonValue.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ public class CommonValue {
3232
public static final String ML_TASK_INDEX = ".plugins-ml-task";
3333
public static final Integer ML_MODEL_INDEX_SCHEMA_VERSION = 3;
3434
public static final Integer ML_TASK_INDEX_SCHEMA_VERSION = 1;
35-
36-
public static final String ML_MODEL_RELOAD_INDEX = ".plugins-ml-model-reload";
37-
public static final String NODE_ID_FIELD = "node_id";
38-
public static final String MODEL_LOAD_RETRY_TIMES_FIELD = "retry_times";
3935
public static final String USER_FIELD_MAPPING = " \""
4036
+ CommonValue.USER
4137
+ "\": {\n"

ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/regression/LogisticRegression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private void validateParameters() {
104104
throw new IllegalArgumentException("MiniBatchSize should not be negative.");
105105
}
106106

107-
// loggingInterval Log the loss after this many iterations. If -1 don't log anything.
107+
// loggingInterval: Log the loss after this many iterations. If -1 don't log anything.
108108
if (parameters.getLoggingInterval() != null && parameters.getLoggingInterval() < -1) {
109109
throw new IllegalArgumentException("Invalid Logging intervals");
110110
}

plugin/src/main/java/org/opensearch/ml/model/MLModelAutoReloader.java

Lines changed: 0 additions & 331 deletions
This file was deleted.

plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
import org.opensearch.ml.engine.algorithms.sample.LocalSampleCalculator;
100100
import org.opensearch.ml.indices.MLIndicesHandler;
101101
import org.opensearch.ml.indices.MLInputDatasetHandler;
102-
import org.opensearch.ml.model.MLModelAutoReloader;
103102
import org.opensearch.ml.model.MLModelCacheHelper;
104103
import org.opensearch.ml.model.MLModelManager;
105104
import org.opensearch.ml.rest.RestMLCreateModelMetaAction;
@@ -176,8 +175,6 @@ public class MachineLearningPlugin extends Plugin implements ActionPlugin {
176175
private MLModelChunkUploader mlModelChunkUploader;
177176
private MLEngine mlEngine;
178177

179-
private MLModelAutoReloader mlModelAutoReloader;
180-
181178
private Client client;
182179
private ClusterService clusterService;
183180
private ThreadPool threadPool;
@@ -355,9 +352,6 @@ public Collection<Object> createComponents(
355352
mlIndicesHandler
356353
);
357354

358-
mlModelAutoReloader = new MLModelAutoReloader(clusterService, threadPool, client, xContentRegistry, nodeHelper, settings);
359-
mlModelAutoReloader.autoReloadModel();
360-
361355
return ImmutableList
362356
.of(
363357
mlEngine,
@@ -379,8 +373,7 @@ public Collection<Object> createComponents(
379373
modelHelper,
380374
mlCommonsClusterEventListener,
381375
clusterManagerEventListener,
382-
mlCircuitBreakerService,
383-
mlModelAutoReloader
376+
mlCircuitBreakerService
384377
);
385378
}
386379

@@ -520,9 +513,7 @@ public List<Setting<?>> getSettings() {
520513
MLCommonsSettings.ML_COMMONS_MAX_ML_TASK_PER_NODE,
521514
MLCommonsSettings.ML_COMMONS_MAX_LOAD_MODEL_TASKS_PER_NODE,
522515
MLCommonsSettings.ML_COMMONS_TRUSTED_URL_REGEX,
523-
MLCommonsSettings.ML_COMMONS_NATIVE_MEM_THRESHOLD,
524-
MLCommonsSettings.ML_COMMONS_MODEL_AUTO_RELOAD_ENABLE,
525-
MLCommonsSettings.ML_MODEL_RELOAD_MAX_RETRY_TIMES
516+
MLCommonsSettings.ML_COMMONS_NATIVE_MEM_THRESHOLD
526517
);
527518
return settings;
528519
}

0 commit comments

Comments
 (0)