Refactor audit service #222
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#222
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:refactoring/object-3610-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolve linters
bc50105195
toc631f5b904
WIP: Refactor audit serviceto Refactor audit service@ -49,2 +49,2 @@
var auditCtx context.Context
auditCtx, ap.prevAuditCanceler = context.WithCancel(context.Background())
cancelChannel := make(chan struct{})
ap.prevAuditCanceler = func() {
Can we describe somewhere (
prevAuditCanceler
doc?) that this function is (must) be called only once?Oh, it's my mistake that this function should be called once. Fixed.
@ -37,0 +39,4 @@
select {
case <-tCtx.Done(): // listen cancelled
return
case <-task.CancelChannel(): // new epoch
Handle task can exit with errors without closing the channel. Is my understanding right: this goroutine will continue to hang until the next epoch when we cancel previous audit explicitly?
Fixed.
c631f5b904
to53e4449cb9
53e4449cb9
toe2f13d03d7