Skip to content

OpenADS v1.09.72

Choose a tag to compare

@FiveTechSoft FiveTechSoft released this 01 Oct 21:23
· 172 commits to main since this release
f464c91

OpenADS v1.09.72

macOS: the unit-test hang is fixed

On macOS the unit tests (and applications appending to a table that was
already open) stalled for good. Cause: macOS flock() and fcntl() byte
locks share one lock list, and a held flock makes every fcntl byte
lock on the same file fail with EAGAIN. The engine took a flock on every
table open and fcntl locks for appends, so appends waited forever.

On macOS the "table is open elsewhere" guard (error 7040) now uses an
fcntl lock on a sentinel byte instead of flock. Behavior is the same,
and it no longer collides with record/append locks. Linux and Windows are
unchanged. Byte-lock waits on macOS are also bounded (30 s) and log errno
details if they time out.

The macOS unit-test step now finishes in about two minutes (it used to
hit the CI cap). In macOS CI, 13 test cases that need two handles in the
SAME process to refuse each other's lock are marked expected-to-fail
(doctest::may_fail, "process-scoped locks"): macOS has no per-handle
locks, so same-process handles do not conflict. They still run and are
reported. Cross-process locking works. A follow-up will restore
same-process conflicts on macOS.

Sync with Pritpal Bedi's v1.09.71-mtfix23 (src, include, tests, docs)

Merged from the fork test build v1.09.71-mtfix23 (PR #178). Only src/,
include/, tests/ and docs/ were taken; this repository's CI and
release workflows are kept as they were. See
release-notes-1.09.71-mtfix23.md for the fork's own notes. Highlights:
case-insensitive LOCAL tag lookup, order-0/empty natural focus, REMOTE
natural-Skip reanchoring, engine append retry/probes, opt-in CDX lock
diagnostics (OPENADS_LOCK_DIAG), and the ADS client header in all
packages.

Known: the fork reports two failures it could not fix (an Exclusive-held
OpenIndex returning 6106 instead of 7040, and a REMOTE create/index storm
count mismatch). They did not fail in this repository's CI.

Packages

  • openads-1.09.72-windows-x64.zip
  • openads-1.09.72-windows-x86.zip
  • openads-1.09.72-linux-x64.tar.gz
  • openads-1.09.72-macos-universal.tar.gz (arm64 + x86_64)

macOS: el bloqueo de las pruebas esta corregido

En macOS flock() y los bloqueos de bytes fcntl() comparten la misma
lista, y un flock activo hace fallar con EAGAIN cualquier bloqueo
fcntl sobre el mismo fichero. Las altas esperaban sin fin. Ahora la
guarda "tabla abierta por otro" (error 7040) usa un fcntl sobre un byte
centinela. Linux y Windows no cambian. Se sincroniza ademas con la
version de prueba v1.09.71-mtfix23 de Pritpal Bedi (solo src, include,
tests y docs).