This study aims at evaluating efficacy and safety of berberine- amoxicillin containing quadruple therapy(berberine, amoxicillin, esomeprazole and bismuth) versus tetracycline-furazolidone quadruple therapy (tetracycline, furazolidone, esomeprazole and bismuth) in H. pylori rescue therapy. It is hypothesized that berberine-amoxicillin containing quadruple therapy is non-inferior to tetracycline-furazolidone quadruple therapy. Patients with confirmed failure of H. pylori eradication will be randomized to one of the treatments described above. At week 6 follow-up visits, a urea breath test,rapid urease test or helicobacter pylori stool antigen test will be performed to confirm eradication.