novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

WalletTest.autosaveDelayed is flaky #402

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On current master, sometimes the unit tests just never finish. I'm doing a "mvn 
clean install". Notice the NoSuchMethodError.

02:04:32 10 Wallet.autoSave: Auto-saving wallet, last seen block is null
02:04:32 10 Wallet.receivePending: Received a pending transaction 
9c5d68c312c06e164ccae73bdc8638ae694ff7b29b255aa54819d88bcb620f96 that spends 
0.00 BTC from our own wallet, and sends us 5.00 BTC
02:04:32 10 Wallet.receivePending: Wallet received transaction with an unknown 
source. Consider tagging tx!
02:04:32 10 Wallet.commitTx: commitTx of 
9c5d68c312c06e164ccae73bdc8638ae694ff7b29b255aa54819d88bcb620f96
02:04:32 10 Wallet.commitTx: ->pending: 
9c5d68c312c06e164ccae73bdc8638ae694ff7b29b255aa54819d88bcb620f96
Exception in thread "Wallet auto save thread" java.lang.NoSuchMethodError: 
com.google.bitcoin.core.Wallet.access$0()Lorg/slf4j/Logger;
    at com.google.bitcoin.core.Wallet$AutosaveThread.run(Wallet.java:460)
02:04:32 10 Wallet.receive: Received tx  for 5.00 BTC: 
9c5d68c312c06e164ccae73bdc8638ae694ff7b29b255aa54819d88bcb620f96 in block 
00c2a75c973d2b01b60b8480d84232f801de48fd6bfe33ee22273e16acfe9bbd
02:04:32 10 Wallet.receive:   <-pending
02:04:32 10 Wallet.processTxFromBestChain:   tx 
9c5d68c312c06e164ccae73bdc8638ae694ff7b29b255aa54819d88bcb620f96 ->unspent

Original issue reported on code.google.com by andreas....@gmail.com on 29 Apr 2013 at 12:14

GoogleCodeExporter commented 9 years ago
That's weird. Stack traces from the running VM would help (you can get them by 
sending the VM a SIGQUIT

Original comment by hearn@google.com on 29 Apr 2013 at 12:18

GoogleCodeExporter commented 9 years ago
Ok, will do that next time.

Original comment by andreas....@gmail.com on 29 Apr 2013 at 12:34

GoogleCodeExporter commented 9 years ago
The deadlock just happened again. See attached trace.

Original comment by andreas....@gmail.com on 3 Jul 2013 at 11:01

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by hearn@google.com on 4 Jul 2013 at 8:07

GoogleCodeExporter commented 9 years ago
I haven't seen this for a long time.

Original comment by mh.in.en...@gmail.com on 24 Nov 2013 at 11:21

GoogleCodeExporter commented 9 years ago
Yeah, but did you look at the trace file?

Original comment by andreas....@gmail.com on 24 Nov 2013 at 11:27

GoogleCodeExporter commented 9 years ago
I took some code out of autosaveDelayed test the other day that was causing 
flakyness (in a different but related way), I think ever since I refactored 
files out of the wallet it was flaky due to a race. So this bug didn't surprise 
me, but I think it's fixed now.

Original comment by hearn@google.com on 25 Nov 2013 at 10:31