1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
{
"note": "No shard was specified in the explain API request, so this response explains a randomly chosen unassigned shard. There may be other unassigned shards in this cluster which cannot be assigned for different reasons. It may not be possible to assign this shard until one of the other shards is assigned correctly. To explain the allocation of other shards (whether assigned or unassigned) you must specify the target shard in the request to this API.",
"index": "test-bulk-example2",
"shard": 0,
"primary": true,
"current_state": "unassigned",
"unassigned_info": {
"reason": "ALLOCATION_FAILED",
"at": "2023-07-28T10:56:19.714Z",
"failed_allocation_attempts": 5,
"details": """failed shard on node [zQ8ojRb6TTecAdT8-z1jzQ]: failed to create shard, failure java.io.IOException: failed to write state to the first location tmp file /usr/share/elasticsearch/data/indices/TShZhtBJQrSj5Aji8pS9lA/0/state-3.st.tmp
at org.elasticsearch.gateway.MetadataStateFormat.writeStateToFirstLocation(MetadataStateFormat.java:111)
at org.elasticsearch.gateway.MetadataStateFormat.write(MetadataStateFormat.java:256)
at org.elasticsearch.gateway.MetadataStateFormat.writeAndCleanup(MetadataStateFormat.java:197)
at org.elasticsearch.index.shard.IndexShard.persistMetadata(IndexShard.java:3242)
at org.elasticsearch.index.shard.IndexShard.<init>(IndexShard.java:392)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:506)
at org.elasticsearch.indices.IndicesService.createShard(IndicesService.java:854)
at org.elasticsearch.indices.IndicesService.createShard(IndicesService.java:175)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createShard(IndicesClusterStateService.java:569)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createOrUpdateShard(IndicesClusterStateService.java:508)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createIndicesAndUpdateShards(IndicesClusterStateService.java:493)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyClusterState(IndicesClusterStateService.java:226)
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:538)
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:524)
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:497)
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428)
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:891)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:257)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1589)
Caused by: java.io.IOException: No space left on device
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:136)
at sun.nio.ch.IOUtil.write(IOUtil.java:101)
at sun.nio.ch.IOUtil.write(IOUtil.java:71)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:306)
at sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
at sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:400)
at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at org.apache.lucene.store.OutputStreamIndexOutput.getChecksum(OutputStreamIndexOutput.java:104)
at org.apache.lucene.codecs.CodecUtil.writeCRC(CodecUtil.java:643)
at org.apache.lucene.codecs.CodecUtil.writeFooter(CodecUtil.java:411)
at org.elasticsearch.gateway.MetadataStateFormat.doWriteToFirstLocation(MetadataStateFormat.java:132)
at org.elasticsearch.gateway.MetadataStateFormat.writeStateToFirstLocation(MetadataStateFormat.java:103)
... 22 more
Suppressed: java.io.IOException: No space left on device
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:136)
at sun.nio.ch.IOUtil.write(IOUtil.java:101)
at sun.nio.ch.IOUtil.write(IOUtil.java:71)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:306)
at sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
at sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:400)
at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at org.apache.lucene.store.OutputStreamIndexOutput.close(OutputStreamIndexOutput.java:92)
at org.elasticsearch.gateway.MetadataStateFormat.doWriteToFirstLocation(MetadataStateFormat.java:118)
... 23 more
Suppressed: java.io.IOException: No space left on device
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:136)
at sun.nio.ch.IOUtil.write(IOUtil.java:101)
at sun.nio.ch.IOUtil.write(IOUtil.java:71)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:306)
at sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
at sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:400)
at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at java.io.FilterOutputStream.close(FilterOutputStream.java:182)
at org.apache.lucene.store.OutputStreamIndexOutput.close(OutputStreamIndexOutput.java:83)
... 24 more
""",
"last_allocation_status": "no"
},
"can_allocate": "no",
"allocate_explanation": "Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster that hold an in-sync copy of its data. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.",
"node_allocation_decisions": [
{
"node_id": "zQ8ojRb6TTecAdT8-z1jzQ",
"node_name": "quickstart-es-data-nodes-0",
"transport_address": "10.233.99.170:9300",
"node_attributes": {
"k8s_node_name": "k-n3",
"xpack.installed": "true"
},
"node_decision": "no",
"store": {
"in_sync": true,
"allocation_id": "LhEB8sh8RGuN68DcI2cDoA"
},
"deciders": [
{
"decider": "max_retry",
"decision": "NO",
"explanation": """shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [POST /_cluster/reroute?retry_failed&metric=none] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2023-07-28T10:56:19.714Z], failed_attempts[5], failed_nodes[[zQ8ojRb6TTecAdT8-z1jzQ]], delayed=false, last_node[zQ8ojRb6TTecAdT8-z1jzQ], details[failed shard on node [zQ8ojRb6TTecAdT8-z1jzQ]: failed to create shard, failure java.io.IOException: failed to write state to the first location tmp file /usr/share/elasticsearch/data/indices/TShZhtBJQrSj5Aji8pS9lA/0/state-3.st.tmp
at org.elasticsearch.gateway.MetadataStateFormat.writeStateToFirstLocation(MetadataStateFormat.java:111)
at org.elasticsearch.gateway.MetadataStateFormat.write(MetadataStateFormat.java:256)
at org.elasticsearch.gateway.MetadataStateFormat.writeAndCleanup(MetadataStateFormat.java:197)
at org.elasticsearch.index.shard.IndexShard.persistMetadata(IndexShard.java:3242)
at org.elasticsearch.index.shard.IndexShard.<init>(IndexShard.java:392)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:506)
at org.elasticsearch.indices.IndicesService.createShard(IndicesService.java:854)
at org.elasticsearch.indices.IndicesService.createShard(IndicesService.java:175)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createShard(IndicesClusterStateService.java:569)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createOrUpdateShard(IndicesClusterStateService.java:508)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createIndicesAndUpdateShards(IndicesClusterStateService.java:493)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyClusterState(IndicesClusterStateService.java:226)
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:538)
at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:524)
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:497)
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:428)
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:154)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:891)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:257)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:223)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.lang.Thread.run(Thread.java:1589)
Caused by: java.io.IOException: No space left on device
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:136)
at sun.nio.ch.IOUtil.write(IOUtil.java:101)
at sun.nio.ch.IOUtil.write(IOUtil.java:71)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:306)
at sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
at sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:400)
at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at org.apache.lucene.store.OutputStreamIndexOutput.getChecksum(OutputStreamIndexOutput.java:104)
at org.apache.lucene.codecs.CodecUtil.writeCRC(CodecUtil.java:643)
at org.apache.lucene.codecs.CodecUtil.writeFooter(CodecUtil.java:411)
at org.elasticsearch.gateway.MetadataStateFormat.doWriteToFirstLocation(MetadataStateFormat.java:132)
at org.elasticsearch.gateway.MetadataStateFormat.writeStateToFirstLocation(MetadataStateFormat.java:103)
... 22 more
Suppressed: java.io.IOException: No space left on device
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:136)
at sun.nio.ch.IOUtil.write(IOUtil.java:101)
at sun.nio.ch.IOUtil.write(IOUtil.java:71)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:306)
at sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
at sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:400)
at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at org.apache.lucene.store.OutputStreamIndexOutput.close(OutputStreamIndexOutput.java:92)
at org.elasticsearch.gateway.MetadataStateFormat.doWriteToFirstLocation(MetadataStateFormat.java:118)
... 23 more
Suppressed: java.io.IOException: No space left on device
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:62)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:136)
at sun.nio.ch.IOUtil.write(IOUtil.java:101)
at sun.nio.ch.IOUtil.write(IOUtil.java:71)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:306)
at sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
at sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:400)
at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:251)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:245)
at java.io.FilterOutputStream.close(FilterOutputStream.java:182)
at org.apache.lucene.store.OutputStreamIndexOutput.close(OutputStreamIndexOutput.java:83)
... 24 more
], allocation_status[deciders_no]]]"""
}
]
},
{
"node_id": "zTKlxrOsSXKLbpY_gUWeGA",
"node_name": "quickstart-es-data-nodes-1",
"transport_address": "10.233.100.128:9300",
"node_attributes": {
"k8s_node_name": "k-n2",
"xpack.installed": "true"
},
"node_decision": "no",
"store": {
"in_sync": false,
"allocation_id": "3WcH3UclT0uuaLzBA8GJTg"
}
}
]
}
|