OBJECTIVES: I. Determine the maximum tolerated dose of cytarabine when combined with UCN-01 in patients with refractory or relapsed acute myelogenous leukemia or myelodysplastic syndrome. II. Determine the dose limiting toxicity, pharmacokinetics, and pharmacodynamics of this regimen in these patients. III. Assess the antileukemia effect of this regimen in this patient population.