Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v3.28.0 #6662

Merged
merged 7 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ For details about compatibility between different releases, see the **Commitment

### Security

## [3.28.0] - unreleased
## [3.28.0] - 2023-10-31

### Added

Expand Down
2 changes: 1 addition & 1 deletion data/lorawan-devices
Submodule lorawan-devices updated 326 files
2 changes: 1 addition & 1 deletion data/lorawan-webhook-templates
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttn-stack",
"version": "3.27.2",
"version": "3.28.0",
"description": "The Things Stack",
"main": "index.js",
"repository": "https://github.com/TheThingsNetwork/lorawan-stack.git",
Expand Down
2 changes: 1 addition & 1 deletion pkg/events/batch/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (bp *batchPublisher) process(ctx context.Context) error {
flushed := false
for n := len(batch); n >= lowerBound; n = len(batch) {
toFlush := n
if upperBound := 2 * lowerBound; n > upperBound {
if upperBound := 2 * bp.targetSize; n > upperBound {
toFlush = upperBound
}
select {
Expand Down
5 changes: 4 additions & 1 deletion pkg/networkserver/grpc_asns.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ func (ns *NetworkServer) processApplicationUplinkTask(ctx context.Context, consu
}
cl := ttnpb.NewNsAsClient(conn)
if err := ns.sendApplicationUplinks(ctx, cl, ups...); err != nil {
log.FromContext(ctx).WithError(err).Error("Failed to send application uplinks")
log.FromContext(ctx).WithError(err).Warn("Failed to send application uplinks")
if !retryableUplinkError(err) {
return nil
}
return err
}
return nil
Expand Down
17 changes: 5 additions & 12 deletions pkg/networkserver/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,6 @@ func (ns *NetworkServer) submitApplicationUplinks(ctx context.Context, ups ...*t
))
if err := ns.uplinkSubmissionPool.Publish(ctx, ups); err != nil {
log.FromContext(ctx).WithError(err).Warn("Failed to enqueue application uplinks in submission pool")
if nonRetryableUplinkError(err) {
log.FromContext(ctx).Warn("Error is non-retryable, dropping application uplinks")
return
}
ns.enqueueApplicationUplinks(ctx, ups...)
return
}
Expand All @@ -430,8 +426,7 @@ func (ns *NetworkServer) handleUplinkSubmission(ctx context.Context, ups []*ttnp
}
if err := ns.sendApplicationUplinks(ctx, ttnpb.NewNsAsClient(conn), ups...); err != nil {
log.FromContext(ctx).WithError(err).Warn("Failed to send application uplinks to Application Server")
if nonRetryableUplinkError(err) {
log.FromContext(ctx).Warn("Error is non-retryable, dropping application uplinks")
if !retryableUplinkError(err) {
return
}
ns.enqueueApplicationUplinks(ctx, ups...)
Expand Down Expand Up @@ -471,12 +466,10 @@ var (
}
)

func nonRetryableUplinkError(err error) bool {
return errors.IsFailedPrecondition(err) ||
func retryableUplinkError(err error) bool {
return errors.IsCanceled(err) ||
errors.IsDeadlineExceeded(err) ||
errors.IsResourceExhausted(err) ||
errors.IsAborted(err) ||
errors.IsUnauthenticated(err) ||
errors.IsPermissionDenied(err) ||
errors.IsUnimplemented(err) ||
errors.IsInternal(err)
errors.IsUnavailable(err)
}
2 changes: 1 addition & 1 deletion pkg/version/ttn.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttn-lw",
"version": "3.27.2",
"version": "3.28.0",
"description": "The Things Stack for LoRaWAN JavaScript SDK",
"url": "https://github.com/TheThingsNetwork/lorawan-stack/tree/default/sdk/js",
"main": "dist/index.js",
Expand Down
Loading