Skip to content

Instantly share code, notes, and snippets.

View umeshdangat's full-sized avatar

Umesh Dangat umeshdangat

View GitHub Profile
[2018-09-18T14:58:39,141][DEBUG][o.e.a.s.TransportSearchAction] [10-40-10-64-uswest1adevc.dev.yelpcorp.com] [125071] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: [10-40-11-210-uswest1adevc.dev.yelpcorp.com][10.40.11.210:14901][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: concurrent_modification_exception: Removal from the cache failed! This is probably due to a query which has been modified after having been put into the cache or a badly implemented clone(). Query class: [class com.o19s.es.ltr.query.RankerQuery], query: [rankerquery:]
at org.apache.lucene.search.LRUQueryCache.evictIfNecessary(LRUQueryCache.java:338) ~[lucene-core-7.3.1.jar:7.3.1 ae0705edb59eaa567fe13ed3a222fdadc7153680 - caomanhdat - 2018-05-09 09:27:24]
at org.apache.lucene.search.LRUQueryCache.putIfAbsent(LRUQueryCache.java:317) ~[lucene-core-7.3.1.jar:7.3.1 ae0705edb59eaa567fe13ed3a222fdadc7153680 - caomanhdat - 2018-05-09
@umeshdangat
umeshdangat / gist:da1948e693754dc3575750218195d0b6
Created September 1, 2018 00:09
scriptfeature_diff_param_names_ltr_vs_es_script
"model": {
"name": "my_simple_linear_model_1",
"feature_set": {
"name": "simple_painless_features",
"features": [
{
"name": "feature1",
"params": [
"feature1_param"
],
{
"error": {
"root_cause": [
{
"type": "unsupported_operation_exception",
"reason": "This Weight cannot work outside the RankerQuery context: you must call scorer(context, vectorSupplier)"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
@umeshdangat
umeshdangat / ProfileWeight breaks derived expressions
Created August 8, 2018 21:30
ProfileWeight breaks derived expressions
org.elasticsearch.transport.RemoteTransportException: [node-0][127.0.0.1:9300][indices:data/read/search[phase/query]]
Caused by: java.lang.UnsupportedOperationException: This Weight cannot work outside the RankerQuery context: you must call scorer(context, vectorSupplier)
at com.o19s.es.ltr.query.FeatureVectorWeight.scorer(FeatureVectorWeight.java:39) ~[?:?]
at org.apache.lucene.search.Weight.scorerSupplier(Weight.java:113) ~[lucene-core-7.3.1.jar:7.3.1 ae0705edb59eaa567fe13ed3a222fdadc7153680 - caomanhdat - 2018-05-09 09:27:24]
at org.elasticsearch.search.profile.query.ProfileWeight.scorerSupplier(ProfileWeight.java:66) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.profile.query.ProfileWeight.scorer(ProfileWeight.java:53) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at com.o19s.es.ltr.query.RankerQuery$RankerWeight.scorer(RankerQuery.java:257) ~[?:?]
at com.o19s.es.ltr.query.RankerQuery$RankerWeight.scorer(RankerQuery.java:191) ~[?:?]
at org.apache.lucene.search.
@umeshdangat
umeshdangat / id_rsa.pub
Created August 1, 2018 15:01
public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLo0Kvp8ixWZy9kWn/qGCzBFvUQc5Ve0yxCrNHT5jDKMn1DLMA2JKhLnKpgEfdWwXoIdug4LcW1uqBAa39hGwNb2y0pXloijqyARpnf8GgQvpfxteB7Okc92lkDC8o2dhzrTAmiEmH8ptk1xjBpSigNHfhze3Y64y2Zja2koYKh97Igss1ZxwFjNIs/nV5zk/01BLkE/qbDb7dBRaQJLQtP40/iIsDJWrD3Euu5u+Wckjlep5swUQra/9M9+bMXhEXsLyUG/GEgrQmyGhFPuW3dkuUfdb8zoqFnTT2iZgDr7intRB9TtXuLQqrr0rxBts4af37VB+P4fhRGq/3dYuv umesh@C02VR3V9HTD8
{
"name": "feature_one_lunch",
"params": [
"feature_one_lunch_query",
"feature_one_lunch_language",
"feature_one_lunch_clicks",
"feature_one_lunch_impressions"
],
"template_language": "mustache",
"template": {
@umeshdangat
umeshdangat / gist:29d77590a2711326181a0ab68e2054d1
Created November 10, 2017 23:33 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
@umeshdangat
umeshdangat / GlobalOrdinalMapping_advanceExact_failed
Created August 30, 2017 19:10
GlobalOrdinalMapping advanceExact failing test
2> REPRODUCE WITH: gradle :core:integTest -Dtests.seed=12650C8218D1B008 -Dtests.class=org.elasticsearch.search.profile.aggregation.AggregationProfilerIT -Dtests.security.manager=true -Dtests.locale=en-US -Dtests.timezone=America/Los_Angeles
2> REPRODUCE WITH: gradle :core:integTest -Dtests.seed=12650C8218D1B008 -Dtests.class=org.elasticsearch.search.profile.aggregation.AggregationProfilerIT -Dtests.security.manager=true -Dtests.locale=en-US -Dtests.timezone=America/Los_Angeles
2> NOTE: test params are: codec=Asserting(Lucene70): {_field_names=PostingsFormat(name=Asserting), _id=PostingsFormat(name=Asserting), tag=PostingsFormat(name=Asserting), string_field=PostingsFormat(name=Asserting)}, docValues:{_seq_no=DocValuesFormat(name=Lucene70), number=DocValuesFormat(name=Lucene70), tag=DocValuesFormat(name=Asserting), _primary_term=DocValuesFormat(name=Asserting), _version=DocValuesFormat(name=Lucene70), string_field=DocValuesFormat(name=Lucene70)}, maxPointsInLeafNode=1065, maxMBSortInHeap=6.359576999794083,
@umeshdangat
umeshdangat / jstack
Last active August 30, 2017 21:05
GlobalOrdinals:getOrdinals
"elasticsearch[ip][search][T#13]" #153 daemon prio=5 os_prio=0 tid=0x00007fb5e0102800 nid=0xd6c8 runnable [0x00007fb002c83000]
java.lang.Thread.State: RUNNABLE
at java.lang.ThreadLocal$ThreadLocalMap.getEntryAfterMiss(ThreadLocal.java:444)
at java.lang.ThreadLocal$ThreadLocalMap.getEntry(ThreadLocal.java:419)
at java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:298)
at java.lang.ThreadLocal.get(ThreadLocal.java:163)
at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:78)
at org.apache.lucene.index.CodecReader.getSortedSetDocValues(CodecReader.java:250)
at org.apache.lucene.index.FilterLeafReader.getSortedSetDocValues(FilterLeafReader.java:460)
at org.apache.lucene.index.DocValues.getSortedSet(DocValues.java:302)
"caused_by" : {
"type" : "script_exception",
"reason" : "runtime error",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Can't load fielddata on [qa_data] because fielddata is unsupported on fields of type [binary]. Use doc values instead."
},