GitHub user zzcclp opened a pull request:
https://github.com/apache/carbondata/pull/2091
[CARBONDATA-2258] Separate visible and invisible segments info into two
files to reduce the size of tablestatus file.
The size of the tablestatus file is getting larger, there are many places
will scan this file and it will impact the performance of reading this file.
According to the discussion on
[thread](http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/The-size-of-the-tablestatus-file-is-getting-larger-does-it-impact-the-performance-of-reading-this-fi-td41941.html),
it can *append* the
invisible segment list to the file called 'tablestatus.history' when execute
command 'CLEAN FILES FOR TABLE' (in method
'SegmentStatusManager.deleteLoadsAndUpdateMetadata') every time, separate
visible and invisible segments into two files(tablestatus file and
tablestatus.history file).
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [ ] Any interfaces changed?
- [ ] Any backward compatibility impacted?
- [ ] Document update required?
- [ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests
are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance
test report.
- Any additional information to help reviewers in testing this
change.
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zzcclp/carbondata CARBONDATA-2258
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2091.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2091
----
commit 46301958107bd7ee2800eb891d19c885772b6a6c
Author: Zhang Zhichao <441586683@...>
Date: 2018-03-22T17:39:36Z
[CARBONDATA-2258] Separate visible and invisible segments info into two
files to reduce the size of tablestatus file.
The size of the tablestatus file is getting larger, there are many places
will scan this file and it will impact the performance of reading this file.
According to the discussion on
[thread|http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/The-size-of-the-tablestatus-file-is-getting-larger-does-it-impact-the-performance-of-reading-this-fi-td41941.html],
it can *append* the
invisible segment list to the file called 'tablestatus.history' when execute
command 'CLEAN FILES FOR TABLE' (in method
'SegmentStatusManager.deleteLoadsAndUpdateMetadata') every time, separate
visible and invisible segments into two files(tablestatus file and
tablestatus.history file).
----
---