Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.IllegalStateException #9

Closed
JPlanche opened this issue Mar 26, 2017 · 0 comments
Closed

Exception in thread "main" java.lang.IllegalStateException #9

JPlanche opened this issue Mar 26, 2017 · 0 comments
Assignees
Labels

Comments

@JPlanche
Copy link

Hello,

I run Fim version 1.2.2 on Ubuntu 16.04.2 LTS with java -version

openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

I had this error:

fim st -n
2017/03/26 17:39:18 - Info  - Scanning recursively local files, using 'do not hash' mode and automatic scaling
2017/03/26 17:39:40 - Info  - Scanned 274436 files (1 TB), during 00:00:21

Exception in thread "main" java.lang.IllegalStateException: Duplicated entries: Size=273632, MapSize=273585
	at org.fim.util.FileStateUtil.buildHashCodeMap(FileStateUtil.java:52)
	at org.fim.internal.StateComparator.searchForAddedOrModified(StateComparator.java:191)
	at org.fim.internal.StateComparator.compare(StateComparator.java:162)
	at org.fim.command.StatusCommand.execute(StatusCommand.java:56)
	at org.fim.Fim.run(Fim.java:258)
	at org.fim.Fim.main(Fim.java:75)

One strange thing is also that repertory has a size of 1,7T, so bigger than the 1 TB displayed.

@evrignaud evrignaud self-assigned this Mar 29, 2017
@evrignaud evrignaud added the bug label Mar 29, 2017
evrignaud added a commit that referenced this issue Mar 30, 2017
…earest GB boundary

- Use the International System of Units (SI) to compute file size (1000 instead of 1024)
evrignaud added a commit that referenced this issue Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants