update compression to snappy
set cancel mode
add test