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

[fix] [Issue 485]Fixed panic caused by memory not aligned in arm32 arch #1286

Merged
merged 1 commit into from
Sep 18, 2024
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
4 changes: 2 additions & 2 deletions pulsar/ack_grouping_tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func TestNoCacheTracker(t *testing.T) {
}

type mockAcker struct {
sync.Mutex
ledgerIDs []int64
cumulativeLedgerID int64
sync.Mutex
ledgerIDs []int64
}

func (a *mockAcker) ack(ids []*pb.MessageIdData) {
Expand Down
7 changes: 3 additions & 4 deletions pulsar/default_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ import (
)

type defaultRouter struct {
lastBatchTimestamp int64
currentPartitionCursor uint32

lastBatchTimestamp int64
msgCounter uint32
cumulativeBatchSize uint32
msgCounter uint32
cumulativeBatchSize uint32
}

// NewDefaultRouter set the message routing mode for the partitioned producer.
Expand Down
2 changes: 1 addition & 1 deletion pulsar/internal/memory_limit_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ type MemoryLimitController interface {
}

type memoryLimitController struct {
currentUsage int64
limit int64
chCond *chCond
currentUsage int64

triggers []*thresholdTrigger
// valid range is (0, 1.0)
Expand Down
3 changes: 2 additions & 1 deletion pulsar/producer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func init() {
}

type partitionProducer struct {
lastSequenceID int64

state uAtomic.Int32
client *client
topic string
Expand All @@ -110,7 +112,6 @@ type partitionProducer struct {
connectClosedCh chan *connectionClosed
publishSemaphore internal.Semaphore
pendingQueue internal.BlockingQueue
lastSequenceID int64
schemaInfo *SchemaInfo
partitionIdx int32
metrics *internal.LeveledMetrics
Expand Down
Loading