(PluginInfo info)
| 376 | } |
| 377 | |
| 378 | @Override |
| 379 | public void init(PluginInfo info) { |
| 380 | dataDir = (String) info.initArgs.get("dir"); |
| 381 | defaultSyncLevel = SyncLevel.getSyncLevel((String) info.initArgs.get("syncLevel")); |
| 382 | |
| 383 | numRecordsToKeep = objToInt(info.initArgs.get("numRecordsToKeep"), 100); |
| 384 | maxNumLogsToKeep = objToInt(info.initArgs.get("maxNumLogsToKeep"), 10); |
| 385 | if (info.initArgs.get("numVersionBuckets") != null) { |
| 386 | log.warn("numVersionBuckets is obsolete"); |
| 387 | } |
| 388 | |
| 389 | if (info.initArgs.get("versionBucketLockTimeoutMs") != null) { |
| 390 | log.warn("versionBucketLockTimeoutMs is mostly replaced by docLockTimeoutMs"); |
| 391 | } |
| 392 | int timeoutMs = |
| 393 | objToInt( |
| 394 | info.initArgs.getOrDefault( |
| 395 | "docLockTimeoutMs", info.initArgs.get("versionBucketLockTimeoutMs")), |
| 396 | EnvUtils.getPropertyAsLong("solr.update.docLockTimeoutMs", 0L).intValue()); |
| 397 | updateLocks = new UpdateLocks(timeoutMs); |
| 398 | |
| 399 | log.info( |
| 400 | "Initializing UpdateLog: dataDir={} defaultSyncLevel={} numRecordsToKeep={} maxNumLogsToKeep={}", |
| 401 | dataDir, |
| 402 | defaultSyncLevel, |
| 403 | numRecordsToKeep, |
| 404 | maxNumLogsToKeep); |
| 405 | } |
| 406 | |
| 407 | private final AtomicBoolean initialized = new AtomicBoolean(); |
| 408 |
nothing calls this directly
no test coverage detected