Affects Version/s: None
Fix Version/s: 0.21.0
Tests waste a lot of time in DataNode.shutdown. Typical logs look like:
In this example (and very commonly) the DataBlockScanner thread exits within 5-10ms after the first wait. The DN then sleeps an entire second before succeeding in shutting down.
Using exponential backoff from a short value like 2ms up to a maximum of 1000ms would solve this.
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|
|Fix Version/s||0.21.0 [ 12313563 ]|
|Resolution||Fixed [ 1 ]|
|Component/s||dfs [ 12310710 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|