Skip to content

Instantly share code, notes, and snippets.

[2016-01-21 11:12:12,770][WARN ][action.index ] [Stature] unexpected error during the primary phase for action [indices:data/write/index]
org.elasticsearch.indices.IndexMissingException: [repos-1] missing
at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:789)
at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:707)
at org.elasticsearch.cluster.metadata.MetaData.concreteSingleIndex(MetaData.java:763)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.checkBlocks(TransportShardReplicationOperationAction.java:390)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.doRun(TransportShardReplicationOperationAction.java:351)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction.doExecute(TransportShardReplicationOperationAc
[Unit]
Description=blablabla
Requires=docker.service
After=syslog.target network.target docker.service
[Service]
Restart=always
ExecStart=/usr/bin/mon binaire de start.... option option
ExecStop=/usr/bin/mon binaire de stop stop option option
TimeoutSec=30
2016-03-29 07:36:23.637 [error] <0.18828.467> CRASH REPORT Process <0.18828.467> with 0 neighbours exited with reason: no match of right hand value {error,{db_open,"IO error: lock /var/lib/riak/anti_entropy/867766597165223607683437869425293042920709947392/LOCK: already held by process"}} in hashtree:new_segment_store/2 line 675 in gen_server:init_it/6 line 328
2016-03-29 07:36:23 =CRASH REPORT====
crasher:
initial call: riak_kv_index_hashtree:init/1
pid: <0.18828.467>
registered_name: []
exception exit: {{{badmatch,{error,{db_open,"IO error: lock /var/lib/riak/anti_entropy/1050454301831586472458898473514828420377701515264/LOCK: already held by process"}}},[{hashtree,new_segment_store,2,[{file,"src/hashtree.erl"},{line,675}]},{hashtree,new,2,[{file,"src/hashtree.erl"},{line,246}]},{riak_kv_index_hashtree,do_new_tree,3,[{file,"src/riak_kv_index_hashtree.erl"},{line,610}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{riak_kv_index_hashtree,init_trees,3,[{file,"src/riak_kv_index_hashtree.

Our RIAK install

On production we have tqo 5 nodes rings called ClusterA and ClusterB. THe two clustesr use replication on both directions.

Naming conv

In our internal naming micro-services are called "component" (Example : The catalog micro-services will be called the catalog component or just "catalog").

The global new architecture

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2016:
# Sébastien Pasche, sebastien.pasche@leshop.ch
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
@classmethod
def instances(
cls,
riak_client=None,
component_name='',
revers_index_name='keys',
debug=False
):
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2013:
# Sébastien Pasche, sebastien.pasche@leshop.ch
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
2016-05-28 11:39:19.882 [warning] <0.30426.2881>@riak_repl_aae_source:send_missing:646 not_found returned for fullsync client get on Bucket: {<<"kv_1d">>,<<"ssrs-caches">>} Key:<<"STATIC_ASSETS_GET_CACHE-/ReportServer?%2FReports%2F01_ECU%2FMgt_SynchroZones&rs%3ASessionID=stcftfjhfwqg1kjvitvqmqby&rs%3AFormat=HTML4.0&rs%3AImageID=02962f86-62f8-46c4-a3a6-e8f75c44aadf">>
Comme tu n'y est pas forcément des mois, je diminue le nombre d'addresse
Café / thé & small food
----------
Les meilleures scones du monde dans l'un des plus beau café
Bon Papillon
Howe street