Skip to content

Instantly share code, notes, and snippets.

View jdcasey's full-sized avatar

John Casey jdcasey

View GitHub Profile
@jdcasey
jdcasey / config.yml.j2
Created August 16, 2019 15:36
netmeter configuration
---
prefix: {{ node_prefix }}
delay: {{ metric_delay }}
{% if direct_carbon_metrics %}
send: carbon
carbon:
host: {{ graph_server }}
port: 2023
{% else %}
2019-02-27 20:50:49.826 [ERROR] [main] o.i.i.i.InvocationContextInterceptor - ISPN000136: Error executing command PutKeyValueCommand, writing keys [TrackingKey [build-13281]]
org.infinispan.persistence.spi.StoreUnavailableException: Store org.infinispan.persistence.file.SingleFileStore@2567c091 is unavailable
at org.infinispan.persistence.manager.PersistenceManagerImpl.pollStoreAvailability(PersistenceManagerImpl.java:198)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
```
ISPN000136: Error executing command GetKeyValueCommand, writing keys []
org.infinispan.persistence.keymappers.UnsupportedKeyTypeException: Unsupported key type: 'org.infinispan.commons.marshall.WrappedByteArray' on key: WrappedByteArray{bytes=[B0x0503040A00000032..[173], hashCode=-1848334903}
at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.key2Str(JdbcStringBasedStore.java:735)
at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.load(JdbcStringBasedStore.java:352)
at org.infinispan.persistence.support.DelegatingCacheLoader.load(DelegatingCacheLoader.java:48)
at org.infinispan.persistence.async.AsyncCacheLoader.load(AsyncCacheLoader.java:45)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStores(PersistenceManagerImpl.java:645)
at org.infinispan.persistence.internal.PersistenceUtil.loadAndCheckExpiration(PersistenceUtil.java:139)
at org.infinispan.persistence.internal.PersistenceUtil.lambda$loadAndComputeInDataContainer$0(PersistenceUtil.ja
@jdcasey
jdcasey / AddRemoteRepoThenModifyAndGenerateDiffEventTest.java
Created December 7, 2018 02:18
test class and DTO for sending repository changelog to Elasticsearch
/**
* Copyright (C) 2011-2018 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jdcasey
jdcasey / ThreadContext_EscapingResourceTest
Created January 25, 2018 05:49
test that demonstrates resources escaping control of weft ThreadContext
package org.commonjava.cdi.util.weft;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
@jdcasey
jdcasey / git-bisect.log.md
Created July 29, 2016 05:25
OctoPrint-1.2.14-git-bisect-for-1423

Notes

AT: 0fec3aeca956054f220763c3bb5e90b5c4de8c25

Started print, and it started heating up. I thought it was working fine since 1.2.14 wouldn't even display the temperature curves after hitting Print. However, after canceling the temperatures continued to ramp up no matter that I tried to set them to off, and then to 0. I had to reset the RAMPS board, and unplugged/reconnected the arduino to the Pi to be safe.

I think this might be a bug that's unrelated to the one we're pursuing. Probably worth testing when we reach a stable point again.

I retried the print, this time letting it go through, and it started printing fine. I canceled the print, and the temperatures fell off on a curve like you'd expect.

Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Changing monitoring state from 'Operational' to 'Printing'
Send: N0 M110 N0*125
Recv: ok
Recv: �����is not Last Line Number+1, Last Line: 2
Recv: Resend: 3
Recv: ok
Send: N3 T0*57
Recv: echo:Unknown command: ""
Recv: ok
Send: N4 M190 S70.0*69
Recv: Z�Y.J��not Last Line Number+1, Last Line: 2
Recv: Resend: 3
Recv: ok
@jdcasey
jdcasey / DockerKojiClientTest.java
Created January 8, 2016 18:51
example using jhttpc and causeway's koji client to talk to koji.
/**
* Copyright (C) 2015 Red Hat, Inc. (jdcasey@commonjava.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jdcasey
jdcasey / Gist.java
Created August 19, 2015 21:16
Examples for using Cartographer via AProx depgraph add-on and the AProx Java client API.
/**
* Copyright (C) 2011 Red Hat, Inc. (jdcasey@commonjava.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software