Skip to content

Instantly share code, notes, and snippets.

@markrmiller
markrmiller / readme.md
Created October 2, 2026 01:53
Solr7104 final focused matrix: targeted execution outside host/JMH locks and exclusive bulk controls

Issue7104 focused proof. Original-policy RED: an individual target timed out behind a held lane. Final matrix GREEN: installed and checkout individual ordinary/heavy/stress targets finish while the holder owns its private host ticket and actual JMH file lock. Bulk/beast/JMH/mixed lane controls serialize. The holder takes the fixture JMH file lock directly, so independent host-wide orphan-process simulations cannot invalidate fixture setup. Targeted peer applies the real production JMH lock script; bulk controls assert the host lane. Existing HostTestLaneJmhFunctionalTest separately covers production orphan/lock safeguards. The final full gate reruns this matrix on the committed tree.

@markrmiller
markrmiller / fleet-instructions-check.log
Created October 2, 2026 01:50
Solr7104: fleet agent/review policy alignment, immutable installer tests and disposable deployment verification
[DEPRECATION WARNING]: community.general.yaml has been deprecated. The plugin
has been superseded by the option `result_format=yaml` in callback plugin
ansible.builtin.default from ansible-core 2.13 onwards. This feature will be
removed from community.general in version 12.0.0. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [Align targeted iteration policy in all agent harnesses] ******************
TASK [Gathering Facts] *********************************************************
ok: [pm3090cf]
@markrmiller
markrmiller / client-utils-target.log
Created October 2, 2026 01:43
Solr issue7104 targeted test admission: original-policy RED, concurrent controls GREEN, actual targeted SolrJ XML
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/home/markmiller/.gradle/wrapper/dists/gradle-9.6.1-bin/4ticwg1pgcbps2hj28r8so764/gradle-9.6.1/lib/native-platform-0.22-milestone-29.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.6.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
Daemon child-launch preflight: healthy daemonPid=2307294 daemonStart=1790903504430 javaHome=/usr/lib/jvm/java-25-openjdk
Daemon child-launch preflight: healthy daemonPid=2307294 daemonStart=1790903504430 javaHome=/
@markrmiller
markrmiller / shutdown-proof.md
Created September 20, 2026 00:03
Solr shutdown shard-response classification proof

Shutdown shard-response classification proof

Measured change: 40a1bd3b5d8391400cddc033de282bd6f6b221e6

The Jenkins failure was ChaosMonkeyNothingIsSafeTest.expectedAllReplicaOutageRejectsAndRecovers observing an HTTP 500 while every replica was intentionally stopped. Two server paths produced the same externally incorrect classification:

  1. HttpShardHandler.take() received InterruptedException from the shutdown interrupter after its request core's CoreContainer had shut down.
  2. A distributed coordinator received ConnectException: Connection refused from a shard that had just stopped, and SearchHandler.shardFailure() used its default 500 status.

The change maps only those two shutdown-specific paths to 503. An unrelated thread interrupt and a non-connect I/O failure retain 500.

@markrmiller
markrmiller / build_pylucene.sh
Created August 3, 2025 00:04
build pylucene
#!/usr/bin/env bash
set -Eeuo pipefail
trap 'echo "❌ failed at line ${LINENO}" >&2' ERR
LUCENE_VER=10.0.0
WORKDIR=$(pwd)/pylucene-trunk
PYLUCENE=$WORKDIR/lucene-pylucene
LUCENE_DIR=$PYLUCENE/lucene-java-$LUCENE_VER
JAVA_HOME=/usr/lib/jvm/java-21-openjdk
JDK_PKG=jdk21-openjdk
@torch.no_grad()
def __call__(
self,
video_path: str,
audio_path: str,
video_out_path: str,
video_mask_path: str = None,
num_frames: int = 16,
video_fps: int = 25,
audio_sample_rate: int = 16000,
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
#!/bin/bash
# Define Solr version
SOLR_VERSION="9.5.0"
SOLR_COLLECTION="testCreateWithDefaultConfigSet"
SOLR_ZK="localhost:14332/solr"
SOLR_DIR="solr-$SOLR_VERSION"
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
import tkinter as tk
import os
import glob
from pathlib import Path
from tkinter import filedialog
from PIL import Image, ImageTk
class ImageManager: