public void untrackAll(JobID jobId) {
        checkNotNull(jobId);

        synchronized (lock) {
            Set<BlobKey> keysToRemove = blobKeyByJob.remove(jobId);
            if (keysToRemove != null) {
                for (BlobKey key : keysToRemove) {
                    untrack(jobId, key);
                }
            }
        }
    }
@Test
    void testUntrackAll() {
        tracker.track(jobId, BlobKey.createKey(BlobType.PERMANENT_BLOB), 1L);

        JobID anotherJobId = new JobID();
        tracker.track(anotherJobId, BlobKey.createKey(BlobType.PERMANENT_BLOB), 1L);

        assertThat(tracker.getBlobKeysByJobId(jobId)).hasSize(2);
        tracker.untrackAll(jobId);

        assertThat(tracker.getBlobKeysByJobId(jobId)).isEmpty();
        assertThat(tracker.getBlobKeysByJobId(anotherJobId)).hasSize(1);
    }