Skip to content

Instantly share code, notes, and snippets.

View indianwhocodes's full-sized avatar
🎯
Focusing

Ashwin Nair indianwhocodes

🎯
Focusing
View GitHub Profile
@1010sachin
1010sachin / buildMantaMonitorJava11.md
Last active October 24, 2019 19:00
SOLVED: Building manta-monitor with javac with error prone on JAVA 11

Problem Statement

Building the joyent/manta-monitor with JAVA 11, out of the box results in complie time errors something like:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project manta-monitor: Compilation failure
[ERROR] /Users/sachingupta/Documents/Joyent/java-manta-monitor/manta-monitor/src/main/java/com/joyent/manta/monitor/JettyServerBuilderModule.java:[18,8] cannot access java.lang.Object
[ERROR]   bad class file: /modules/java.base/java/lang/Object.class
[ERROR]     class file has wrong version 55.0, should be 53.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
@isaacdavis
isaacdavis / instructions.md
Last active March 28, 2019 00:05
Muskie log-fetching instructions

Retrieving muskie logs

These instructions are adapted from the comprehensive Manta Debugging Guide, with added clarification. See the debugging guide for more information on everything related to log-based debugging.

Log locations

Each zone maintains a log file for the current hour (a real-time log) at /var/log/muskie.log. At the top of every hour, the past hour's log file (now a historical log) is uploaded to the datacenter's manta at /poseidon/stor/logs/COMPONENT/YYYY/MM/DD/HH/SHORTZONE.log, where:

  • COMPONENT varies based on the component you’re looking for
  • YYYY, MM, DD, and HH represent the year, month, day, and hour for the entries in the log file
  • SHORTZONE is the first 8 characters of the zone’s uuid.
@mdwhatcott
mdwhatcott / auto-run.py
Created February 20, 2014 05:41
Auto-run `go test` in the console
#!/usr/bin/env python
"""
This script scans the current working directory for changes to .go files and
runs `go test` in each folder where *_test.go files are found. It does this
indefinitely or until a KeyboardInterrupt is raised (<Ctrl+c>). This script
passes the verbosity command line argument (-v) to `go test`.
"""