Skip to content

Commit 8f991f6

Browse files
committed
fix(blockassembly): log columnar->row fallback at debug level
A rolling-deploy mismatch where one block-assembly replica predates bsv-blockchain#889 silently drops to the row path; without a log line operators investigating "why is this batch slow" can't tell the fallback fired. Debug level keeps it out of normal log volume but available when needed.
1 parent 58eca84 commit 8f991f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

services/blockassembly/Client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ func (s *Client) sendBatchColumnar(ctx context.Context, batch []*batchItem) {
466466
// independently. Costs one wasted RPC per batch against a
467467
// persistently-old server; acceptable for the simpler code path.
468468
if status.Code(err) == codes.Unimplemented {
469+
s.logger.Debugf("[blockassembly] columnar AddTxBatch unimplemented on peer; falling back to row-oriented batch (rolling deploy?): %v", err)
469470
s.sendBatchRowOriented(ctx, batch)
470471
return
471472
}

0 commit comments

Comments
 (0)