public void run() { SSTableReader sstable; try { sstable = open(entry.getKey(), entry.getValue(), metadata); } catch (CorruptSSTableException ex) { FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); return; } catch (FSError ex) { FileUtils.handleFSError(ex); logger.error("Cannot read sstable {}; file system error, skipping table", entry, ex); return; } catch (IOException ex) { FileUtils.handleCorruptSSTable(new CorruptSSTableException(ex, entry.getKey().filenameFor(Component.DATA))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); return; } sstables.add(sstable); } };
public void uncaughtException(Thread t, Throwable e) { StorageMetrics.exceptions.inc(); logger.error("Exception in thread " + t, e); Tracing.trace("Exception in thread {}", t, e); for (Throwable e2 = e; e2 != null; e2 = e2.getCause()) { JVMStabilityInspector.inspectThrowable(e2); if (e2 instanceof FSError) { if (e2 != e) // make sure FSError gets logged exactly once. logger.error("Exception in thread " + t, e2); FileUtils.handleFSError((FSError) e2); } if (e2 instanceof CorruptSSTableException) { if (e2 != e) logger.error("Exception in thread " + t, e2); FileUtils.handleCorruptSSTable((CorruptSSTableException) e2); } } } });
public void run() { SSTableReader sstable; try { sstable = open(entry.getKey(), entry.getValue(), metadata, partitioner); } catch (CorruptSSTableException ex) { FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); return; } catch (FSError ex) { FileUtils.handleFSError(ex); logger.error("Cannot read sstable {}; file system error, skipping table", entry, ex); return; } catch (IOException ex) { logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); return; } sstables.add(sstable); } };
public void run() { SSTableReader sstable; try { sstable = open(entry.getKey(), entry.getValue(), metadata); } catch (CorruptSSTableException ex) { FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); return; } catch (FSError ex) { FileUtils.handleFSError(ex); logger.error("Cannot read sstable {}; file system error, skipping table", entry, ex); return; } catch (IOException ex) { FileUtils.handleCorruptSSTable(new CorruptSSTableException(ex, entry.getKey().filenameFor(Component.DATA))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); return; } sstables.add(sstable); } };
public void uncaughtException(Thread t, Throwable e) { StorageMetrics.exceptions.inc(); logger.error("Exception in thread " + t, e); Tracing.trace("Exception in thread {}", t, e); for (Throwable e2 = e; e2 != null; e2 = e2.getCause()) { JVMStabilityInspector.inspectThrowable(e2); if (e2 instanceof FSError) { if (e2 != e) // make sure FSError gets logged exactly once. logger.error("Exception in thread " + t, e2); FileUtils.handleFSError((FSError) e2); } if (e2 instanceof CorruptSSTableException) { if (e2 != e) logger.error("Exception in thread " + t, e2); FileUtils.handleCorruptSSTable((CorruptSSTableException) e2); } } } });
public void run() { SSTableReader sstable; try { sstable = open(entry.getKey(), entry.getValue(), metadata); } catch (CorruptSSTableException ex) { FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); return; } catch (FSError ex) { FileUtils.handleFSError(ex); logger.error("Cannot read sstable {}; file system error, skipping table", entry, ex); return; } catch (IOException ex) { FileUtils.handleCorruptSSTable(new CorruptSSTableException(ex, entry.getKey().filenameFor(Component.DATA))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); return; } sstables.add(sstable); } };
public void uncaughtException(Thread t, Throwable e) { StorageMetrics.exceptions.inc(); logger.error("Exception in thread {}", t, e); Tracing.trace("Exception in thread {}", t, e); for (Throwable e2 = e; e2 != null; e2 = e2.getCause()) { JVMStabilityInspector.inspectThrowable(e2); if (e2 instanceof FSError) { if (e2 != e) // make sure FSError gets logged exactly once. logger.error("Exception in thread {}", t, e2); FileUtils.handleFSError((FSError) e2); } if (e2 instanceof CorruptSSTableException) { if (e2 != e) logger.error("Exception in thread " + t, e2); FileUtils.handleCorruptSSTable((CorruptSSTableException) e2); } } } });
public void uncaughtException(Thread t, Throwable e) { StorageMetrics.exceptions.inc(); logger.error("Exception in thread {}", t, e); Tracing.trace("Exception in thread {}", t, e); for (Throwable e2 = e; e2 != null; e2 = e2.getCause()) { JVMStabilityInspector.inspectThrowable(e2); if (e2 instanceof FSError) { if (e2 != e) // make sure FSError gets logged exactly once. logger.error("Exception in thread {}", t, e2); FileUtils.handleFSError((FSError) e2); } if (e2 instanceof CorruptSSTableException) { if (e2 != e) logger.error("Exception in thread " + t, e2); FileUtils.handleCorruptSSTable((CorruptSSTableException) e2); } } } });
FileUtils.handleCorruptSSTable(new CorruptSSTableException(e, entry.getKey().filenameFor(Component.STATS))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, e); continue; FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); continue; FileUtils.handleCorruptSSTable(new CorruptSSTableException(ex, entry.getKey().filenameFor(Component.DATA))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); continue;
FileUtils.handleCorruptSSTable(new CorruptSSTableException(e, entry.getKey().filenameFor(Component.STATS))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, e); continue; FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); continue; FileUtils.handleCorruptSSTable(new CorruptSSTableException(ex, entry.getKey().filenameFor(Component.DATA))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); continue;
FileUtils.handleCorruptSSTable(new CorruptSSTableException(e, entry.getKey().filenameFor(Component.STATS))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, e); continue; FileUtils.handleCorruptSSTable(ex); logger.error("Corrupt sstable {}; skipping table", entry, ex); continue; FileUtils.handleCorruptSSTable(new CorruptSSTableException(ex, entry.getKey().filenameFor(Component.DATA))); logger.error("Cannot read sstable {}; other IO error, skipping table", entry, ex); continue;