Skip to content

Spooky orderwatcher bug #3

Description

@sigtot

Spooky bug ahead

Something in the order watcher is causing a panic. The following two logs happened on two separate elevators (simultaneously?).

Elev 10.100.23.229

INFO[2241] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2251] ORDER WATCHER   Received db and synced        took=0.042s
INFO[2261] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2268] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic="order del"
INFO[2268] ORDER INDICATORS Got order delivered         
INFO[2271] ORDER WATCHER   Received db and synced        took=0.042s
INFO[2275] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic="order del"
INFO[2275] ORDER INDICATORS Got order delivered         
INFO[2281] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2283] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic="order del"
INFO[2291] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2294] PUBLISHER       Discovered new subscriber     IP="10.100.23.243:21277" topic=ack
INFO[2301] ORDER WATCHER   Received db and synced        took=0.031s
INFO[2308] PUBLISHER       Discovered new subscriber     IP="10.100.23.243:21277" topic=ack
INFO[2311] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2321] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2331] ORDER WATCHER   Received db and synced        took=0.041s
INFO[2341] ORDER WATCHER   Received db and synced        took=0.042s
INFO[2347] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic=ack
INFO[2347] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:17887" topic="order del"
panic: bucket name required

goroutine 180 [running]:
github.com/sigtot/sanntid/orderwatcher.okOrPanic(...)
	/home/student/go/src/github.com/sigtot/sanntid/orderwatcher/order_watcher.go:238
github.com/sigtot/sanntid/orderwatcher.StartOrderWatcher.func1(0xc00005f7a0, 0xc0000e7400, 0xc0002352c0, 0xc000174000, 0xc00018dce0, 0xc00018cc00, 0xc00014e440, 0x11, 0xc0000683c0, 0xc0001d0240)
	/home/student/go/src/github.com/sigtot/sanntid/orderwatcher/order_watcher.go:76 +0x14d0
created by github.com/sigtot/sanntid/orderwatcher.StartOrderWatcher
	/home/student/go/src/github.com/sigtot/sanntid/orderwatcher/order_watcher.go:54 +0x232

DB dump

Note, none of the buckets had any orders
image

Elev 10.100.23.243

INFO[2235] ORDER WATCHER   Received db and synced        took=0.039s
INFO[2245] ORDER WATCHER   Received db and synced        took=0.029s
INFO[2255] ORDER WATCHER   Received db and synced        took=0.036s
INFO[2265] ORDER WATCHER   Received db and synced        took=0.033s
INFO[2270] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic="order del"
INFO[2270] ORDER INDICATORS Got order delivered         
INFO[2275] ORDER WATCHER   Received db and synced        took=0.031s
INFO[2277] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic="order del"
INFO[2277] ORDER INDICATORS Got order delivered         
INFO[2285] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic="order del"
INFO[2285] ORDER WATCHER   Received db and synced        took=0.046s
INFO[2292] PUBLISHER       Discovered new subscriber     IP="10.100.23.243:21277" topic=ack
INFO[2295] ORDER WATCHER   Received db and synced        took=0.035s
INFO[2305] ORDER WATCHER   Received db and synced        took=0.041s
INFO[2315] ORDER WATCHER   Received db and synced        took=0.031s
INFO[2325] ORDER WATCHER   Received db and synced        took=0.037s
INFO[2335] ORDER WATCHER   Received db and synced        took=0.035s
INFO[2345] ORDER WATCHER   Received db and synced        took=0.041s
INFO[2349] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:28081" topic=ack
INFO[2349] PUBLISHER       Discovered new subscriber     IP="10.100.23.216:17887" topic="order del"
panic: bucket name required

goroutine 122 [running]:
github.com/sigtot/sanntid/orderwatcher.okOrPanic(...)
	/home/student/go/src/github.com/sigtot/sanntid/orderwatcher/order_watcher.go:238
github.com/sigtot/sanntid/orderwatcher.StartOrderWatcher.func1(0xc00005ecc0, 0xc0000e7400, 0xc0001b2d20, 0xc000174000, 0xc0001a5260, 0xc0001a4cc0, 0xc0001ec440, 0x11, 0xc0000682a0, 0xc00020a3c0)
	/home/student/go/src/github.com/sigtot/sanntid/orderwatcher/order_watcher.go:76 +0x14d0
created by github.com/sigtot/sanntid/orderwatcher.StartOrderWatcher
	/home/student/go/src/github.com/sigtot/sanntid/orderwatcher/order_watcher.go:54 +0x232

DB dump

Note, none of the buckets had any orders. The b8:ac:6f:a3:98:ce bucket was completely empty.
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions