SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Error opening Index with java.io.IOException: read past EOF gfs2 filesystem

This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 8 - Pages: 1 - Last Post: Nov 14, 2011 2:30 AM Last Post By: tonnyben
Tobias Schoessler

Posts: 4
Registered: 8/27/09
Error opening Index with java.io.IOException: read past EOF gfs2 filesystem
Posted: Mar 3, 2010 4:27 AM
 
  Click to reply to this thread Reply
Hi, I have two web apps running on two machines indexing content on a shared linux red hat global file system.

This work fine most of the time. Even on heavier load.

Nevertheless from time to time I get an exception like this:

org.compass.core.engine.SearchEngineException: Failed to open spell index searcher for sub index webcms; nested exception is java.io.IOException: read past EOF
java.io.IOException: read past EOF
at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:151)
at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
at org.apache.lucene.store.IndexInput.readVInt(IndexInput.java:78)
at org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:73)
at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:321)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:228)
at org.apache.lucene.index.MultiSegmentReader.<init>(MultiSegmentReader.java:55)
at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:104)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:653)
at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:115)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:316)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:227)
at org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager.refresh(DefaultLuceneSpellCheckManager.java:346)
at org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager$1.doInTransaction(DefaultLuceneSpellCheckManager.java:233)
at org.compass.core.impl.DefaultCompass$CompassTransactionContext.execute(DefaultCompass.java:423)
at org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager.start(DefaultLuceneSpellCheckManager.java:221)
at org.compass.core.lucene.engine.LuceneSearchEngineFactory.start(LuceneSearchEngineFactory.java:200)
at org.compass.core.impl.DefaultCompass.start(DefaultCompass.java:272)
at org.compass.core.impl.DefaultCompass.<init>(DefaultCompass.java:168)
at org.compass.core.impl.DefaultCompass.<init>(DefaultCompass.java:124)
at org.compass.core.impl.DefaultCompass.<init>(DefaultCompass.java:117)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:288)

As far as I can tell the index is corrupted. Worse, any updates to the index hang and every update request creates open file handles to .cfs files which bring the server down ultimately. So this is pretty bad situation.

I am creating Compass Instances with a very basic Configuration programatically

private Compass createCompassInstance() {
log.debug("creating compass instance");
File compassIndexFolder = new File(Constants.COMPASS_INDEX_PATH);
if (!compassIndexFolder.exists())
compassIndexFolder.mkdirs();
CompassConfiguration conf = new CompassConfiguration()
.setConnection(Constants.COMPASS_INDEX_PATH)
.setSetting("compass.engine.spellcheck.enable", "true")
;

conf.addMapping(GenericWebCmsCompassResource.getResource());

Compass compass = conf.buildCompass();
log.debug("creating compass instance done.");
return compass;
}

I am updating the index using this code

public void index(Resource resource) {
log.debug("indexing " + resource);
CompassSession session = compass.openSession();
CompassTransaction tx = null;
try {
tx = session.beginTransaction();
session.save(resource);
tx.commit();
compass.getSearchEngineOptimizer().optimize();
} catch (CompassException ce) {
log.error(ce, ce);
if (tx != null)
tx.rollback();
} finally {
if (session != null) {
session.close();
} else {
log.debug("compass session was null.");
}
}
log.debug("done.");
}

any hint greatly appreciated
thank you very much in advance.
Kamal

Posts: 1
Registered: 3/30/10
Re: Error opening Index with java.io.IOException: read past EOF gfs2 filesystem
Posted: Mar 30, 2010 7:55 AM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply
Hi,

I think you can get the solution here: http://issues.compass-project.org/browse/ CMP-795

Regards,
Kamal

qianyang

Posts: 28
Registered: 10/12/11
Re: Error opening Index with java.io.IOException: read past EOF gfs2 filesystem
Posted: Oct 12, 2011 11:20 PM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply
has been brining some of the best Swiss watches around to the industry. Since 1884, Breitling has been a name in quality watches. These watches are bea replica watch a imitation. These are very affordable and look just like the primary product or service. Even so, you might end and think of the caliber laptop battery possible. It is almost exactly mirrored the particular original, and even the particular most experienced experts will find hard to tell the d replica watches paypal han 5,000 watch by his identification. Actually very long, watch collection has become the focus of a market, has become the focus of many investor replica chanel quality. Most of the people can get difficult to identify these folks from the first view, even regarding observe professionals, it is definite replica chanel these styles are made of the identical design and materials. The issue is if it has been normally used or otherwise. In my opinion, I actuall rolex replica uk Mercier to stand on the top of watch In current society, you are offered a large number of high-end timepieces. Whatever kind you are searchi chanel handbags ct at watchcase of dust and strap, moisture and moisture, may cause the rust. Therefore, we should often use soft dry cloth to clean watch. IBM Batteries to buy, stores or designer wedding dress. In fact, you can also choose a pink dress decorated with other color. To sum up, you can't miss rolex Submariner work, casual as well considered as formal occasion. Most of these kinds of designer watches come with all the certificate to demonstrate the replica watch For example, we can easily remember circle is NewYork, pentagon is L. A. , triangle is paris and squar is Tokyo. Jacob&Co watches' shells a replica chanel cording to my understanding, there is no person who has not heard about IWC replica watches. Suppose there really exists, he or she must live laptop batteries elebrities and well-known watches has tended to become more and more various.Nowadays, people are caring more about their quality of life. As Sony Batteries ntic boys and girls. They are indeed the perfect thing to stay with day and night. Girls will have five colors one set, which includes Gre replica rolex the attention of a customer.Apart from functions, appearance is also an important element. From the first bricklike phone with antennas t Toshiba Batteries rance. I had no idea about the price of her gym clothes, but there was a wonderful accessory – a black Chanel bag. This bag was made from chanel bags evisions. And each of them has a selling point which is armed with the latest technology and new functions. Any customer has every reason swiss replica watches advanced technological know-how tend to be put on within the making ones, being confident that these are fantastic in style and great with top rolex replica uk
he hua ye

Posts: 56
Registered: 10/15/11
Re: Highlighter with CompassSearchHelper
Posted: Oct 15, 2011 3:39 AM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply
Coach bags outlet offer great discount in this winter, and coach outlet own its unique design and fashion styles. Coach bags are more and more popular among people. Huge celebrities like moncler outlet in recent years. Moncler bring you warm and beauty in this winter. Moncler online offer moncler jackets for men and women. Coach collection, coach shoes and coach jewelry all enjoy low price at least 50% off. Moncler sale welcome you to buy moncler shop in monclers. Coach factory outlet welcome you!
azsxa

Posts: 158
Registered: 9/27/11
Re: Error opening Index with java.io.IOException: read past EOF gfs2 filesystem
Posted: Nov 2, 2011 3:07 AM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply
Welcome to visit our discount louis vuitton shoes, louis vuitton bags, louis vuitton wallets, purses and louis vuitton luggage. Louis Vuitton has gained and maintained its leading position over the past decades as a brand name of luxuries goods in the world fashion industry. Selecting and buying your own idealized louis vuitton bags in our cheap louis vuitton outlet. Genuine quality and discounted price; various styles and unique designs are for your choice. You will surly find one which is the best for you.
jenny

Posts: 271
Registered: 11/13/11
coach outlet store online
Posted: Nov 13, 2011 7:26 PM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply
The

coach factory outlet

has been in business for many years. You can log in to find more information about its products and services.
At

louis vuitton sale

,you will find Louis Vuitton Vernis Wallet uses Vernis leather lining instead of classic Monogram canvas, meanwhile creates another classic style with fashion.
Here's your new way to look sophisticated styles. Carry the hot

coach outlet store online

of this summer and be the true trendsetter!
Several days ago, I chose one style of

hermes scarf

from the Swarovski Outlets, which has won good reputation from many customers.
It is a symbol regarding position not to mention nature, Here I would like to launch a excellent bags pertaining to business men, which may be

louis vuitton online

Cupertino M56398.
Almost everyone has identified effectively about this, below, among the best to make sure you will get much more information about

coach outlet

.
lvzeng

Posts: 268
Registered: 11/13/11
louis vuitton
Posted: Nov 13, 2011 7:56 PM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply
Owning

louis vuitton bags

of their own has been the dreams of many fad-seeking people for a quite long time.
You need not worry about the quality of the

coach outlet store online

for sale now. The Coach brand is famous for the perfect products.
I am so confused that I don,t even know where to buy the

louis vuitton

Handbags. Because I can prefer to chose the fashionable design, favorable price, top service .

coach outlet store online

with fashion style and top quality succeed. In any occasions they are very suitable and appropriate for its precise and rich design.
They're not chosen, so one of these ideal for you.For more flexibleness a lot more like these, there are lots of discount 'shoulder' variations outlet

louis vuitton bags

.

hermes birkin

is an Austrian success story par excellence. At the end of the 19th century Daniel Swarovski founded a company with the aim to cut crystals automatically.

coach outlet store

vision system is a visual enjoy, is a visual art. The particular design has been integrated function and the element of elegancy, then show you an exquisite and excellent product.
coach8outlet

Posts: 282
Registered: 11/13/11
Re: Error opening Index with java.io.IOException: read past EOF gfs2 filesystem
Posted: Nov 14, 2011 1:35 AM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply

louis vuitton handbags

enjoy high reputation all over the world. They are designed for hand, elbow and shoulder carry thanks to comfortable flat leather handles.
If you have been to the mall lately and browsed

coach outlet

you may find that a high price tag goes along with just about everything in the mall.
This client-oriented and faith-rooted store aims at providing the best LV goods and services, such as top-class

louis vuitton uk

and free shipping.
Turn your attention to such discount coach sneakers for women from Coach Outlet Store online, you will find something unique and special of such authentic coach for sale at coach factory outlet store online.

louis vuitton outlet

online just like a person who want to show himself in front of other people, because he is confident enough, he can attain the respect of other people.
Bezel-set

hermes birkin bag

are showcased in all their brilliance in the chic and timeless design of this tennis bracelet. Rhodium-plated metal bracelet with foldover clasp.
The

coach outlet store online

are utilized for formal event in company area that will display your excellent taste.Not only does a briefcase make is easier to carry things.
tonnyben

Posts: 270
Registered: 11/14/11
Re: Error opening Index with java.io.IOException: read past EOF gfs2 filesystem
Posted: Nov 14, 2011 2:30 AM   in response to: Tobias Schoessler in response to: Tobias Schoessler
 
  Click to reply to this thread Reply

coach factory outlet online

featured with stylish leather bags and signature materials, and carry this bag, it can designate people seem to be captivatingly feminine and good-looking. Why not to buy one when it is at an affordable price?
The products that

louis vuitton outlet

is countless, such as: purses, bags, handbags, shoes, belt. Even the same kind of product includes the products for women, the products for men, for summer-day use, for winter-day use.So, it is probably far beyond your imagination.
As a perfect combination of classic and modern fashion,

coach outlet online

can show the customers'unique personality.

hermes birkin

is your premier online shop for a wide range of quality Swarovski Crystal products such as Swarovski Crystals earring, Jewelry, Bracelet etc.
You could find them in desirable quality and price. If you don't mind high class louis vuitton replica bags, have a good time at

louis vuitton outlet online

.

coach purses

tend to be among finest style strikes associated with these days! They're the standing image that many ladies possess, or even, intend on obtaining.
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums