Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.2.0
-
7.2.0-5227
-
Untriaged
-
-
0
-
Yes
Description
- Create a 4 node cluster
- Create a magma buckets with (bucket_history_retention_seconds=0,bucket_history_retention_bytes=200000000000,)
just default collection, vbuckets=64 - Create 10 million docs(doc_size = 2KB)
- Start deleting all the documents
- While deletes are going on start creating new 10 million docs as well
- At the end of above steps observed Magma fragmentation for few shards is more than 50%(test keeps checking for 300 seconds before asserting for fragmentation, manually checked after 20 mins it was still close to 60 percent)
Cbstats for 172.23.107.126(shard 8, magma.7)
rw_7:magma: {"ActiveBloomFilterSize":594654,"ActiveDataSize":501879104,"ActiveDiskUsage":959299584,"ActiveIndexBlocksSize":6554801,"BlockCacheHitRatio":96.63487243652344,"BlockCacheHits":1183897,"BlockCacheHitsPerSec":0.0,"BlockCacheMemUsed":14995408,"BlockCacheMisses":41227,"BlockCacheMissesPerSec":0.0,"BlockCacheQuota":26526679,"BloomFilterFPR":0.021259525790810585,"BloomFilterMemUsedRatio":0.0006566665833815932,"BloomFilterMemoryQuota":998034633,"BufferMemUsed":19712,"BytesIncoming":1436407827,"BytesIncomingPerSec":0.0,"BytesOutgoing":0,"BytesOutgoingPerSec":0.0,"BytesPerRead":53.40143966674805,"CheckpointOverhead":0,"CheckpointOverheadPeriod":600,"CheckpointOverheadRatio":0.0,"CompactQueueSize":0,"DataBlocksCompressSize":923505431,"DataBlocksCompressionRatio":1.552644356890631,"DataBlocksSize":1433875496,"DataBlocksSpaceReductionEstimate":35.59375039351394,"FlushQueueSize":8,"Fragmentation":0.5952277779579163,"FragmentationWithHistory":0.4768275320529938,
|
Data
https://cb-engineering.s3.amazonaws.com/data/172_23_107_221.tar.gz
https://cb-engineering.s3.amazonaws.com/data/172_23_107_76.tar.gz
https://cb-engineering.s3.amazonaws.com/data/172_23_107_126.tar.gz
https://cb-engineering.s3.amazonaws.com/data/172_23_107_237.tar.gz
QE-TEST:
guides/gradlew --refresh-dependencies testrunner -P jython=/opt/jython/bin/jython -P 'args=-i /tmp/temp_vol_3.ini bucket_storage=magma,bucket_eviction_policy=fullEviction,randomize_value=True,rerun=false,replicas=0,test_itr=10,enable_dp=false,get-cbcollect-info=True,autoCompactionDefined=true,bucket_history_retention_bytes=200000000000,upgrade_version=7.2.0-5225 -t storage.magma.magma_deletes.BasicDeleteTests.test_parallel_creates_deletes,num_items=10000000,mix_key_size=True,nodes_init=4,sdk_timeout=60,vbuckets=64,count_ts=False,process_concurrency=4,test_itr=1,GROUP=vb64;P0,skip_cleanup=True'
|