What constitutes a urologic emergency in a patient with nephrolithiasis

What constitutes a urologic emergency in a patient with nephrolithiasis? Describe the clinical presentation of obstructive pyelonephritis and the required management.