Skip to content

[notify] Introduce StreamAllTransactions stream#620

Merged
liran-funaro merged 2 commits into
hyperledger:mainfrom
liran-funaro:notify-full-block
Jun 8, 2026
Merged

[notify] Introduce StreamAllTransactions stream#620
liran-funaro merged 2 commits into
hyperledger:mainfrom
liran-funaro:notify-full-block

Conversation

@liran-funaro

Copy link
Copy Markdown
Contributor

Type of change

  • New feature

Description

  • Introduce StreamAllTransactions stream to the notification service

Related issues

@liran-funaro liran-funaro added the enhancement New feature or request label Jun 3, 2026
@liran-funaro liran-funaro requested a review from cendhu June 3, 2026 14:24
@coveralls

coveralls commented Jun 3, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 91.5% (-0.001%) from 91.501% — liran-funaro:notify-full-block into hyperledger:main

@liran-funaro liran-funaro force-pushed the notify-full-block branch 5 times, most recently from c960635 to f26a171 Compare June 4, 2026 08:10
Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

@cendhu cendhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. In a separate PR, we should also update our loadgen to use this stream to avoid processing blocks.

Comment thread service/sidecar/notify.go Outdated
return events
}

func getMatchingNamespaces(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getMatching and filterNamespaces are confusing.Let's use filter everywhere as it denotes what we let in as per our context. My suggestion would be applyFilter or something similar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used filterAndBuildEvents() and filterNamespaces()

Comment thread service/sidecar/notify.go
Comment on lines +226 to +227
n.metrics.notifierActiveStreams.Inc()
defer n.metrics.notifierActiveStreams.Dec()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the MaxConcurrentStream and stream interceptor are applicable for this stream too automatically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It is tested in the integration test.

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
@liran-funaro

Copy link
Copy Markdown
Contributor Author

@cendhu There is a problem with the linter download. I ran the linter locally and it passes.

@liran-funaro liran-funaro merged commit 56aa904 into hyperledger:main Jun 8, 2026
48 of 52 checks passed
@liran-funaro liran-funaro deleted the notify-full-block branch June 8, 2026 07:04
ale-linux pushed a commit to hyperledger/fabric-x-sdk that referenced this pull request Jun 8, 2026
in preparation for
hyperledger/fabric-x-committer#620. After that
is merged, we can add an integration test to the SDK.

Signed-off-by: Arne Rutjes <arne123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[notification] Streaming API for Committed Transactions

3 participants