You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(rowbuffer): add circuit breaker and concurrent flush limiting (#71)
- Add circuit breaker using sony/gobreaker to protect against cascading
failures when ClickHouse is unavailable. Configurable via
bufferCircuitBreakerMaxFailures and bufferCircuitBreakerTimeout.
- Add semaphore to limit concurrent flush operations, configurable via
bufferMaxConcurrentFlushes (default: 10).
- Add metrics: inflight_flushes, circuit_open, circuit_rejections_total
- Fix RPC batch fetching to automatically chunk requests exceeding the
100 block limit imposed by most RPC nodes.
- Fix BlocksProcessed metric to correctly count all blocks in a batch
by moving increment to processors.
- Fix block not found diff calculation: use diff > 0 && diff <= 5 to
correctly distinguish blocks that might appear soon from blocks that
should already exist.
- Add comprehensive tests for circuit breaker, concurrent flushes,
semaphore limiting, and block diff calculation.
0 commit comments