Skip to content

Instantly share code, notes, and snippets.

View gbbafna's full-sized avatar

Gaurav Bafna gbbafna

  • aws
  • Bangalore
  • 15:02 (UTC +05:30)
View GitHub Profile
@gbbafna
gbbafna / gist:a0522da858abac1795f80ccfd426c375
Created July 6, 2023 15:05
Transient CorruptIndexException Exception while reading Segment Store Metadata
[2023-07-06T11:16:09,554][INFO ][o.o.i.t.t.TranslogTransferManager] [node-2] Downloading translog files with: Primary Term = 1, Generation = 550, Location = /home/ec2-user/opensearch-3.0.0-SNAPSHOT/data/nodes/0/indices/Pr3vqheZQZWm_6oMZap2Lw/2/translog
[2023-07-06T11:16:09,754][INFO ][o.o.i.t.RemoteFsTranslog ] [node-2] Downloaded translog files from remote for shard [so][2]
[2023-07-06T11:16:11,644][INFO ][o.o.i.s.RemoteSegmentStoreDirectory] [node-2] Reading latest Metadata file metadata__1__7__gizjKokBHKE7CGwW6h4e
[2023-07-06T11:16:11,702][WARN ][o.o.i.c.IndicesClusterStateService] [node-2] [so][1] marking and sending shard failed due to [failed to create shard]
org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=0 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(metadata__1__7__gizjKokBHKE7CGwW6h4e))
at org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:584) ~[lucene-core-9.7.0-snapshot-204acc3.jar:9.7.0-snapshot-20
[2023-06-29T05:06:16,041][INFO ][o.o.n.Node ] [node-2] version[3.0.0-SNAPSHOT], pid[27480], build[tar/b5e5c27a6cf9170e4205cab496b688ff9904af62/2023-06-27T05:01:09.150380Z], OS[Linux/5.10.93-87.444.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/20.0.1/20.0.1+9]
[2023-06-29T05:06:16,043][INFO ][o.o.n.Node ] [node-2] JVM home [/home/ec2-user/opensearch-3.0.0-SNAPSHOT/jdk], using bundled JDK [true]
[2023-06-29T05:06:16,043][INFO ][o.o.n.Node ] [node-2] JVM arguments [-Xshare:auto, -Dopensearch.networkaddress.cache.ttl=60, -Dopensearch.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.s