This article explains the MGD issue stuck at 100% after commit or show| compare.
root@Router1-j1-vpn2> show system processes extensive no-forwarding last pid: 96556; load averages: 2.95, 2.22, 1.81 up 21+16:06:28 02:04:42 420 threads: 6 running, 384 sleeping, 2 zombie, 28 waiting CPU: 15.1% user, 0.0% nice, 7.6% system, 0.4% interrupt, 76.8% idle Mem: 1426M Active, 8268M Inact, 1449M Wired, 746M Buf, 20G Free Swap: 8192M Total, 8192M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 95818 root 103 0 746M 70M CPU2 2 10:08 99.66% mgd >>>>> Share the gcore of the mgd hogging the CPU. In this instance, it is PID 95818.
Please refer PR1648744 for solution.