Electric shock - remedy an option?
Let me give you some food for thought:

Whether it is acceptable or not that dishwasher shocks you is up to you, but 99% of people would say no I believe.

The most likely reason for this is that your dishwasher machine is not properly grounded. One of the purposes of the ground wire in wall socket is to dispose of unnecessary electric energy that might appear into the ground (since this path has less resistance that your body). That way even if something is wrong and metal case of device is electrified, you wouldn't get shocked.
If you have read the manual to dishwasher, I guess on the first page there is a warning that you should only connect it to grounded socket.

There are devices that would protect you by switching off electricity if they detect current leakage. But I would solve the root cause (no proper grounding) but not the symptom.

No you shouldn't, at least before it is checked by technician. It might be the case that dishwasher itself is not usable any more, but I believe it's not the case in your situation.

It's because some of the electricity goes to metal case (probably from the filter circuit)


In any case, I would advise you to call qualified electrician so that he will check the real problem. What have I done is picked best guess from the information you provided.